From 05a0f6925d7d99ab0ef006928623a9ffe8f00e22 Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Wed, 2 Oct 2024 23:49:49 +0100 Subject: [PATCH] Some more bugfixes --- .silktouch/33127b0b72527d00.stout | Bin 172636 -> 155420 bytes sources/SDL/SDL/SDL3/SDL3/ISdl.gen.cs | 16069 ++++ .../SDL/SDL/SDL3/SDL3/SDL_ArrayOrder.gen.cs | 23 + .../SDL/SDL/SDL3/SDL3/SDL_AssertData.gen.cs | 39 + .../SDL/SDL/SDL3/SDL3/SDL_AssertState.gen.cs | 27 + .../SDL/SDL/SDL3/SDL3/SDL_AtomicInt.gen.cs | 22 + .../SDL/SDL3/SDL3/SDL_AudioDeviceEvent.gen.cs | 43 + .../SDL/SDL/SDL3/SDL3/SDL_AudioSpec.gen.cs | 19 + .../SDL/SDL/SDL3/SDL3/SDL_BitmapOrder.gen.cs | 25 + .../SDL/SDL/SDL3/SDL3/SDL_BlendFactor.gen.cs | 32 + .../SDL/SDL/SDL3/SDL3/SDL_BlendMode.gen.cs | 28 + .../SDL/SDL3/SDL3/SDL_BlendOperation.gen.cs | 27 + .../SDL3/SDL3/SDL_CameraDeviceEvent.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_CameraPosition.gen.cs | 15 + .../SDL/SDL/SDL3/SDL3/SDL_CameraSpec.gen.cs | 20 + .../SDL/SDL3/SDL3/SDL_ChromaLocation.gen.cs | 26 + .../SDL/SDL3/SDL3/SDL_ClipboardEvent.gen.cs | 28 + sources/SDL/SDL/SDL3/SDL3/SDL_Color.gen.cs | 37 + .../SDL/SDL3/SDL3/SDL_ColorPrimaries.gen.cs | 30 + .../SDL/SDL/SDL3/SDL3/SDL_ColorRange.gen.cs | 25 + .../SDL/SDL/SDL3/SDL3/SDL_ColorType.gen.cs | 25 + .../SDL/SDL/SDL3/SDL3/SDL_Colorspace.gen.cs | 115 + .../SDL/SDL/SDL3/SDL3/SDL_CommonEvent.gen.cs | 19 + .../SDL/SDL/SDL3/SDL3/SDL_DateFormat.gen.cs | 15 + sources/SDL/SDL/SDL3/SDL3/SDL_DateTime.gen.cs | 30 + .../SDL/SDL3/SDL3/SDL_DialogFileFilter.gen.cs | 26 + .../SDL/SDL/SDL3/SDL3/SDL_DisplayEvent.gen.cs | 28 + .../SDL/SDL/SDL3/SDL3/SDL_DisplayMode.gen.cs | 29 + .../SDL3/SDL3/SDL_DisplayOrientation.gen.cs | 27 + .../SDL/SDL/SDL3/SDL3/SDL_DropEvent.gen.cs | 39 + sources/SDL/SDL/SDL3/SDL3/SDL_Event.gen.cs | 128 + .../SDL/SDL/SDL3/SDL3/SDL_EventAction.gen.cs | 30 + .../SDL/SDL/SDL3/SDL3/SDL_EventType.gen.cs | 134 + sources/SDL/SDL/SDL3/SDL3/SDL_FColor.gen.cs | 25 + sources/SDL/SDL/SDL3/SDL3/SDL_FPoint.gen.cs | 13 + sources/SDL/SDL/SDL3/SDL3/SDL_FRect.gen.cs | 19 + sources/SDL/SDL/SDL3/SDL3/SDL_Finger.gen.cs | 20 + .../SDL/SDL3/SDL3/SDL_FlashOperation.gen.cs | 25 + sources/SDL/SDL/SDL3/SDL3/SDL_FlipMode.gen.cs | 25 + sources/SDL/SDL/SDL3/SDL3/SDL_Folder.gen.cs | 38 + .../SDL_GLContextResetNotification.gen.cs | 18 + sources/SDL/SDL/SDL3/SDL3/SDL_GLattr.gen.cs | 50 + .../SDL/SDL3/SDL3/SDL_GLcontextFlag.gen.cs | 16 + .../SDL3/SDL3/SDL_GLcontextReleaseFlag.gen.cs | 24 + .../SDL/SDL/SDL3/SDL3/SDL_GLprofile.gen.cs | 15 + sources/SDL/SDL/SDL3/SDL3/SDL_GUID.gen.cs | 29 + .../SDL/SDL/SDL3/SDL3/SDL_GamepadAxis.gen.cs | 23 + .../SDL/SDL3/SDL3/SDL_GamepadAxisEvent.gen.cs | 54 + .../SDL/SDL3/SDL3/SDL_GamepadBinding.gen.cs | 69 + .../SDL3/SDL3/SDL_GamepadBindingType.gen.cs | 26 + .../SDL/SDL3/SDL3/SDL_GamepadButton.gen.cs | 39 + .../SDL3/SDL3/SDL_GamepadButtonEvent.gen.cs | 37 + .../SDL3/SDL3/SDL_GamepadButtonLabel.gen.cs | 25 + .../SDL3/SDL3/SDL_GamepadDeviceEvent.gen.cs | 31 + .../SDL3/SDL3/SDL_GamepadSensorEvent.gen.cs | 46 + .../SDL3/SDL3/SDL_GamepadTouchpadEvent.gen.cs | 40 + .../SDL/SDL/SDL3/SDL3/SDL_GamepadType.gen.cs | 34 + .../SDL/SDL3/SDL3/SDL_HapticCondition.gen.cs | 90 + .../SDL/SDL3/SDL3/SDL_HapticConstant.gen.cs | 51 + .../SDL/SDL/SDL3/SDL3/SDL_HapticCustom.gen.cs | 60 + .../SDL/SDL3/SDL3/SDL_HapticDirection.gen.cs | 32 + .../SDL/SDL/SDL3/SDL3/SDL_HapticEffect.gen.cs | 37 + .../SDL/SDL3/SDL3/SDL_HapticLeftRight.gen.cs | 32 + .../SDL/SDL3/SDL3/SDL_HapticPeriodic.gen.cs | 65 + .../SDL/SDL/SDL3/SDL3/SDL_HapticRamp.gen.cs | 54 + .../SDL/SDL/SDL3/SDL3/SDL_HintPriority.gen.cs | 25 + .../SDL/SDL3/SDL3/SDL_HitTestResult.gen.cs | 22 + sources/SDL/SDL/SDL3/SDL3/SDL_IOStatus.gen.cs | 28 + .../SDL3/SDL3/SDL_IOStreamInterface.gen.cs | 35 + .../SDL/SDL/SDL3/SDL3/SDL_InitFlags.gen.cs | 31 + .../SDL/SDL/SDL3/SDL3/SDL_JoyAxisEvent.gen.cs | 54 + .../SDL/SDL/SDL3/SDL3/SDL_JoyBallEvent.gen.cs | 39 + .../SDL/SDL3/SDL3/SDL_JoyBatteryEvent.gen.cs | 27 + .../SDL/SDL3/SDL3/SDL_JoyButtonEvent.gen.cs | 43 + .../SDL/SDL3/SDL3/SDL_JoyDeviceEvent.gen.cs | 31 + .../SDL/SDL/SDL3/SDL3/SDL_JoyHatEvent.gen.cs | 43 + .../SDL3/SDL_JoystickConnectionState.gen.cs | 25 + .../SDL/SDL/SDL3/SDL3/SDL_JoystickType.gen.cs | 32 + .../SDL3/SDL3/SDL_KeyboardDeviceEvent.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_KeyboardEvent.gen.cs | 47 + sources/SDL/SDL/SDL3/SDL3/SDL_Keymod.gen.cs | 29 + sources/SDL/SDL/SDL3/SDL3/SDL_Keysym.gen.cs | 31 + sources/SDL/SDL/SDL3/SDL3/SDL_Locale.gen.cs | 26 + .../SDL/SDL/SDL3/SDL3/SDL_LogCategory.gen.cs | 36 + .../SDL/SDL/SDL3/SDL3/SDL_LogPriority.gen.cs | 19 + .../SDL3/SDL3/SDL_MatrixCoefficients.gen.cs | 37 + .../SDL3/SDL3/SDL_MessageBoxButtonData.gen.cs | 27 + .../SDL3/SDL_MessageBoxButtonFlags.gen.cs | 29 + .../SDL/SDL3/SDL3/SDL_MessageBoxColor.gen.cs | 29 + .../SDL3/SDL_MessageBoxColorScheme.gen.cs | 23 + .../SDL3/SDL3/SDL_MessageBoxColorType.gen.cs | 33 + .../SDL/SDL3/SDL3/SDL_MessageBoxData.gen.cs | 37 + .../SDL/SDL3/SDL3/SDL_MessageBoxFlags.gen.cs | 27 + .../SDL/SDL3/SDL3/SDL_MouseButtonEvent.gen.cs | 48 + .../SDL/SDL3/SDL3/SDL_MouseDeviceEvent.gen.cs | 25 + .../SDL/SDL3/SDL3/SDL_MouseMotionEvent.gen.cs | 41 + .../SDL3/SDL3/SDL_MouseWheelDirection.gen.cs | 18 + .../SDL/SDL3/SDL3/SDL_MouseWheelEvent.gen.cs | 39 + .../SDL/SDL/SDL3/SDL3/SDL_PackedLayout.gen.cs | 31 + .../SDL/SDL/SDL3/SDL3/SDL_PackedOrder.gen.cs | 31 + sources/SDL/SDL/SDL3/SDL3/SDL_Palette.gen.cs | 27 + sources/SDL/SDL/SDL3/SDL3/SDL_PathInfo.gen.cs | 28 + sources/SDL/SDL/SDL3/SDL3/SDL_PathType.gen.cs | 16 + sources/SDL/SDL/SDL3/SDL3/SDL_PenAxis.gen.cs | 30 + .../SDL/SDL3/SDL3/SDL_PenButtonEvent.gen.cs | 44 + .../SDL3/SDL3/SDL_PenCapabilityInfo.gen.cs | 28 + .../SDL/SDL3/SDL3/SDL_PenMotionEvent.gen.cs | 54 + .../SDL/SDL/SDL3/SDL3/SDL_PenSubtype.gen.cs | 29 + .../SDL/SDL/SDL3/SDL3/SDL_PenTipEvent.gen.cs | 59 + .../SDL/SDL/SDL3/SDL3/SDL_PixelFormat.gen.cs | 78 + .../SDL/SDL3/SDL3/SDL_PixelFormatEnum.gen.cs | 561 + .../SDL/SDL/SDL3/SDL3/SDL_PixelType.gen.cs | 40 + sources/SDL/SDL/SDL3/SDL3/SDL_Point.gen.cs | 13 + .../SDL/SDL/SDL3/SDL3/SDL_PowerState.gen.cs | 27 + .../SDL/SDL/SDL3/SDL3/SDL_PropertyType.gen.cs | 28 + .../SDL/SDL/SDL3/SDL3/SDL_QuitEvent.gen.cs | 22 + sources/SDL/SDL/SDL3/SDL3/SDL_Rect.gen.cs | 25 + .../SDL/SDL3/SDL3/SDL_RendererFlags.gen.cs | 23 + .../SDL/SDL/SDL3/SDL3/SDL_RendererInfo.gen.cs | 43 + .../SDL_RendererLogicalPresentation.gen.cs | 27 + .../SDL/SDL/SDL3/SDL3/SDL_ScaleMode.gen.cs | 25 + sources/SDL/SDL/SDL3/SDL3/SDL_Scancode.gen.cs | 270 + .../SDL/SDL/SDL3/SDL3/SDL_SensorEvent.gen.cs | 43 + .../SDL/SDL/SDL3/SDL3/SDL_SensorType.gen.cs | 29 + .../SDL/SDL3/SDL3/SDL_StorageInterface.gen.cs | 55 + sources/SDL/SDL/SDL3/SDL3/SDL_Surface.gen.cs | 28 + .../SDL/SDL/SDL3/SDL3/SDL_SystemCursor.gen.cs | 43 + .../SDL/SDL/SDL3/SDL3/SDL_SystemTheme.gen.cs | 25 + .../SDL/SDL3/SDL3/SDL_TextEditingEvent.gen.cs | 34 + .../SDL/SDL3/SDL3/SDL_TextInputEvent.gen.cs | 34 + .../SDL/SDL3/SDL3/SDL_TextureAccess.gen.cs | 25 + .../SDL/SDL3/SDL3/SDL_ThreadPriority.gen.cs | 20 + .../SDL/SDL/SDL3/SDL3/SDL_TimeFormat.gen.cs | 29 + .../SDL/SDL3/SDL3/SDL_TouchDeviceType.gen.cs | 25 + .../SDL/SDL3/SDL3/SDL_TouchFingerEvent.gen.cs | 42 + .../SDL3/SDL_TransferCharacteristics.gen.cs | 41 + .../SDL/SDL/SDL3/SDL3/SDL_UserEvent.gen.cs | 37 + sources/SDL/SDL/SDL3/SDL3/SDL_Version.gen.cs | 34 + sources/SDL/SDL/SDL3/SDL3/SDL_Vertex.gen.cs | 24 + .../SDL3/SDL3/SDL_VirtualJoystickDesc.gen.cs | 69 + .../SDL/SDL/SDL3/SDL3/SDL_WindowEvent.gen.cs | 31 + .../SDL/SDL/SDL3/SDL3/SDL_errorcode.gen.cs | 28 + .../SDL/SDL/SDL3/SDL3/SDL_hid_bus_type.gen.cs | 27 + .../SDL/SDL3/SDL3/SDL_hid_device_info.gen.cs | 45 + sources/SDL/SDL/SDL3/SDL3/Sdl.gen.cs | 72934 ++++++++++++++++ sources/SDL/SDL/Sdl.gen.cs | 49 + .../SilkTouch/SilkTouch/Clang/ClangScraper.cs | 2 +- .../SilkTouch/Mods/ExtractNestedTyping.cs | 120 +- .../SilkTouch/Mods/TransformFunctions.cs | 4 +- .../SDL/SDL3/SDL3/SDL_AssertDataTests.gen.cs | 44 + .../SDL/SDL3/SDL3/SDL_AtomicIntTests.gen.cs | 36 + .../SDL3/SDL_AudioDeviceEventTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_AudioSpecTests.gen.cs | 36 + .../SDL3/SDL_CameraDeviceEventTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_CameraSpecTests.gen.cs | 36 + .../SDL3/SDL3/SDL_ClipboardEventTests.gen.cs | 36 + tests/SDL/SDL/SDL3/SDL3/SDL_ColorTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_CommonEventTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_DateTimeTests.gen.cs | 36 + .../SDL3/SDL_DialogFileFilterTests.gen.cs | 44 + .../SDL3/SDL3/SDL_DisplayEventTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_DisplayModeTests.gen.cs | 44 + .../SDL/SDL3/SDL3/SDL_DropEventTests.gen.cs | 44 + tests/SDL/SDL/SDL3/SDL3/SDL_EventTests.gen.cs | 36 + .../SDL/SDL/SDL3/SDL3/SDL_FColorTests.gen.cs | 36 + .../SDL/SDL/SDL3/SDL3/SDL_FPointTests.gen.cs | 36 + tests/SDL/SDL/SDL3/SDL3/SDL_FRectTests.gen.cs | 36 + .../SDL/SDL/SDL3/SDL3/SDL_FingerTests.gen.cs | 36 + tests/SDL/SDL/SDL3/SDL3/SDL_GUIDTests.gen.cs | 36 + .../SDL3/SDL_GamepadAxisEventTests.gen.cs | 36 + .../SDL3/SDL3/SDL_GamepadBindingTests.gen.cs | 36 + .../SDL3/SDL_GamepadButtonEventTests.gen.cs | 36 + .../SDL3/SDL_GamepadDeviceEventTests.gen.cs | 36 + .../SDL3/SDL_GamepadSensorEventTests.gen.cs | 36 + .../SDL3/SDL_GamepadTouchpadEventTests.gen.cs | 39 + .../SDL3/SDL3/SDL_HapticConditionTests.gen.cs | 36 + .../SDL3/SDL3/SDL_HapticConstantTests.gen.cs | 36 + .../SDL3/SDL3/SDL_HapticCustomTests.gen.cs | 44 + .../SDL3/SDL3/SDL_HapticDirectionTests.gen.cs | 36 + .../SDL3/SDL3/SDL_HapticEffectTests.gen.cs | 44 + .../SDL3/SDL3/SDL_HapticLeftRightTests.gen.cs | 36 + .../SDL3/SDL3/SDL_HapticPeriodicTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_HapticRampTests.gen.cs | 36 + .../SDL3/SDL_IOStreamInterfaceTests.gen.cs | 44 + .../SDL3/SDL3/SDL_JoyAxisEventTests.gen.cs | 36 + .../SDL3/SDL3/SDL_JoyBallEventTests.gen.cs | 36 + .../SDL3/SDL3/SDL_JoyBatteryEventTests.gen.cs | 36 + .../SDL3/SDL3/SDL_JoyButtonEventTests.gen.cs | 36 + .../SDL3/SDL3/SDL_JoyDeviceEventTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_JoyHatEventTests.gen.cs | 36 + .../SDL3/SDL_KeyboardDeviceEventTests.gen.cs | 36 + .../SDL3/SDL3/SDL_KeyboardEventTests.gen.cs | 36 + .../SDL/SDL/SDL3/SDL3/SDL_KeysymTests.gen.cs | 36 + .../SDL/SDL/SDL3/SDL3/SDL_LocaleTests.gen.cs | 44 + .../SDL3/SDL_MessageBoxButtonDataTests.gen.cs | 47 + .../SDL_MessageBoxColorSchemeTests.gen.cs | 39 + .../SDL3/SDL3/SDL_MessageBoxColorTests.gen.cs | 36 + .../SDL3/SDL3/SDL_MessageBoxDataTests.gen.cs | 44 + .../SDL3/SDL_MouseButtonEventTests.gen.cs | 36 + .../SDL3/SDL_MouseDeviceEventTests.gen.cs | 36 + .../SDL3/SDL_MouseMotionEventTests.gen.cs | 36 + .../SDL3/SDL3/SDL_MouseWheelEventTests.gen.cs | 36 + .../SDL/SDL/SDL3/SDL3/SDL_PaletteTests.gen.cs | 44 + .../SDL/SDL3/SDL3/SDL_PathInfoTests.gen.cs | 36 + .../SDL3/SDL3/SDL_PenButtonEventTests.gen.cs | 36 + .../SDL3/SDL_PenCapabilityInfoTests.gen.cs | 36 + .../SDL3/SDL3/SDL_PenMotionEventTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_PenTipEventTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_PixelFormatTests.gen.cs | 44 + tests/SDL/SDL/SDL3/SDL3/SDL_PointTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_QuitEventTests.gen.cs | 36 + tests/SDL/SDL/SDL3/SDL3/SDL_RectTests.gen.cs | 36 + .../SDL3/SDL3/SDL_RendererInfoTests.gen.cs | 44 + .../SDL/SDL3/SDL3/SDL_SensorEventTests.gen.cs | 36 + .../SDL3/SDL_StorageInterfaceTests.gen.cs | 44 + .../SDL/SDL/SDL3/SDL3/SDL_SurfaceTests.gen.cs | 44 + .../SDL3/SDL_TextEditingEventTests.gen.cs | 44 + .../SDL3/SDL3/SDL_TextInputEventTests.gen.cs | 44 + .../SDL3/SDL_TouchFingerEventTests.gen.cs | 36 + .../SDL/SDL3/SDL3/SDL_UserEventTests.gen.cs | 44 + .../SDL/SDL/SDL3/SDL3/SDL_VersionTests.gen.cs | 36 + .../SDL/SDL/SDL3/SDL3/SDL_VertexTests.gen.cs | 36 + .../SDL3/SDL_VirtualJoystickDescTests.gen.cs | 44 + .../SDL/SDL3/SDL3/SDL_WindowEventTests.gen.cs | 36 + .../SDL3/SDL3/SDL_hid_device_infoTests.gen.cs | 44 + tests/SDL/SDL/SDL3/SDL_DateTimeTests.gen.cs | 8 +- tests/SDL/SDL/SDL3/SDL_GUIDTests.gen.cs | 8 +- tests/SDL/SDL/SDL3/SDL_VersionTests.gen.cs | 8 +- 228 files changed, 97733 insertions(+), 82 deletions(-) create mode 100644 sources/SDL/SDL/SDL3/SDL3/ISdl.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_ArrayOrder.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_AssertData.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_AssertState.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_AtomicInt.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_AudioDeviceEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_AudioSpec.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_BitmapOrder.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_BlendFactor.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_BlendMode.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_BlendOperation.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_CameraDeviceEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_CameraPosition.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_CameraSpec.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_ChromaLocation.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_ClipboardEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Color.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_ColorPrimaries.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_ColorRange.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_ColorType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Colorspace.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_CommonEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_DateFormat.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_DateTime.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_DialogFileFilter.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_DisplayEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_DisplayMode.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_DisplayOrientation.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_DropEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Event.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_EventAction.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_EventType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_FColor.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_FPoint.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_FRect.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Finger.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_FlashOperation.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_FlipMode.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Folder.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GLContextResetNotification.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GLattr.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GLcontextFlag.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GLcontextReleaseFlag.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GLprofile.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GUID.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadAxis.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadAxisEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadBinding.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadBindingType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButton.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonLabel.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadDeviceEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadSensorEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadTouchpadEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_GamepadType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HapticCondition.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HapticConstant.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HapticCustom.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HapticDirection.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HapticEffect.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HapticLeftRight.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HapticPeriodic.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HapticRamp.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HintPriority.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_HitTestResult.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_IOStatus.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_IOStreamInterface.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_InitFlags.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_JoyAxisEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_JoyBallEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_JoyBatteryEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_JoyButtonEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_JoyDeviceEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_JoyHatEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_JoystickConnectionState.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_JoystickType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_KeyboardDeviceEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_KeyboardEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Keymod.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Keysym.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Locale.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_LogCategory.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_LogPriority.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MatrixCoefficients.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonData.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonFlags.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColor.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorScheme.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxData.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxFlags.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MouseButtonEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MouseDeviceEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MouseMotionEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MouseWheelDirection.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_MouseWheelEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PackedLayout.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PackedOrder.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Palette.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PathInfo.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PathType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PenAxis.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PenButtonEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PenCapabilityInfo.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PenMotionEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PenSubtype.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PenTipEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PixelFormat.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PixelFormatEnum.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PixelType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Point.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PowerState.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_PropertyType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_QuitEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Rect.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_RendererFlags.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_RendererInfo.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_RendererLogicalPresentation.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_ScaleMode.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Scancode.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_SensorEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_SensorType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_StorageInterface.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Surface.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_SystemCursor.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_SystemTheme.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_TextEditingEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_TextInputEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_TextureAccess.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_ThreadPriority.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_TimeFormat.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_TouchDeviceType.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_TouchFingerEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_TransferCharacteristics.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_UserEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Version.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_Vertex.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_VirtualJoystickDesc.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_WindowEvent.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_errorcode.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_hid_bus_type.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/SDL_hid_device_info.gen.cs create mode 100644 sources/SDL/SDL/SDL3/SDL3/Sdl.gen.cs create mode 100644 sources/SDL/SDL/Sdl.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_AssertDataTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_AtomicIntTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_AudioDeviceEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_AudioSpecTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_CameraDeviceEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_CameraSpecTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_ClipboardEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_ColorTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_CommonEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_DateTimeTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_DialogFileFilterTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_DisplayEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_DisplayModeTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_DropEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_EventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_FColorTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_FPointTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_FRectTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_FingerTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_GUIDTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_GamepadAxisEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_GamepadBindingTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_GamepadDeviceEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_GamepadSensorEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_GamepadTouchpadEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_HapticConditionTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_HapticConstantTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_HapticCustomTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_HapticDirectionTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_HapticEffectTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_HapticLeftRightTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_HapticPeriodicTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_HapticRampTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_IOStreamInterfaceTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_JoyAxisEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_JoyBallEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_JoyBatteryEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_JoyButtonEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_JoyDeviceEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_JoyHatEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_KeyboardDeviceEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_KeyboardEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_KeysymTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_LocaleTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonDataTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorSchemeTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxDataTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_MouseButtonEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_MouseDeviceEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_MouseMotionEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_MouseWheelEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_PaletteTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_PathInfoTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_PenButtonEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_PenCapabilityInfoTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_PenMotionEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_PenTipEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_PixelFormatTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_PointTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_QuitEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_RectTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_RendererInfoTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_SensorEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_StorageInterfaceTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_SurfaceTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_TextEditingEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_TextInputEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_TouchFingerEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_UserEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_VersionTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_VertexTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_VirtualJoystickDescTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_WindowEventTests.gen.cs create mode 100644 tests/SDL/SDL/SDL3/SDL3/SDL_hid_device_infoTests.gen.cs diff --git a/.silktouch/33127b0b72527d00.stout b/.silktouch/33127b0b72527d00.stout index e1b05a0fcb8549998cac7c983275302aaa889e75..587f9fcf97ac214bd764889151de2bc4af2ed582 100644 GIT binary patch delta 21052 zcmZ{sXJ8dY+lI4C=%GYNLK^9Xl8{gWgixgkgeJWzpmaj-NL7&@0vW{s0TB^Fzyqw( z<)yxK1(YI15GhK)f(rWj-Ltdjd(J+4P>(7MXWxqr4ldo+uC}#>$j0@RrGj^ zj(2Jz8jWZii@N5G?y6Gl%M}yzkoq3ioy<~V+hi?N{9H#b>S{f9nabB}dUAhVi9=iL$8$DH2%WVE< zJfi3E;RT9T8G4v&`ivA6{pD=2;`I<4iBcWWV=`K9Rx=g-I=E+QHAJf;%Ey{3e|9I8 z`YrQxH+ieyK#JdLSH_z|RjT~Xl+wi>bJ=xII-#NLLuDeo-)SVfN> zZ+7kyqQwjQ_|#-A6b%~biLSNTw^a0T+xuxQM9biUsXz27y4^|*{qO_MQI^7sov{$Ut%`Q4vJ-crOlv)Y#XkPcnE9$5MFO(Zz z_+R|rok+&;RHeK~l`1IOllN?IeZ+$s`y7ORBG?y%@q@nID!wKh{TfSda!HThEx^3 zySUD*k%%3~O>lHv<&8^Ks_mwvual9wf)9VxT)vyE=O?!ImK9x)=#8=*sr=1TRatrU z{T4MrswPr=$cdRP^%&RNTiU2-tt&rPln>F@`0#P(3f)eG*B);%cqbS=(ujs12r>ly_Z0(vXZ*5UT z`HbN@x7X^py@mf-TN^3)IPi`Wr84or&e`8s6_|Er)FCB{oCpRuH6R*s8Tym{IX>tqGh}_bKs#&l`5Y3<>A+mI)Rj9!u|X3 z0+mW?G5)X0Na;xN>CAQZsI{F~ne^KuUnI8U*-qh&E8Sj?b-jDMv>FPP1_W1+MuDN; z8u##o^$?A%a3bEUK|~!%}4YJMj#(CBIU9co5q2~o%66!mpSm6~%v^GQdlw3h;1yU!0)sVjv) zjgzx?gQCs>;Tm$Wq3W0yBW`IQATc|_Id8Zge|w~;Id9jTG^>n2jfc@Oj_2*)8=tEh zFC+|@EQeqcYIUZ*x1QbnDWz7vgH$?t&M^X3-`=XqIwHp3t|Dv1hu>S5xYJ#w?nGa& zFS~XCYK&zgz*Xn&IF{-K+(;{C=;m%4}b{pl}N$$0Orl4mfLl?b>Xj4S_-4H{!YvHblr`C#4LrnU50-{qfR2&b+w4RvQE5k}hL>;r+j9!@CR{q;xMK?Xkzug$o z2Hr~5dh1cfU`=bSvT=p?PwS6t88nu+!1!C&tj+AfU9Yv6gxDM}F;TP+iu~1Ao2`o6 zSkQ6T2xR?`*1#G?gzps~G}Hcw@LFIuMRC}ih*%QiZp z1sZuJv{@=UVqOXTRb(q5%Lj>gv``Na5wGY)#rpwTabv!p)=yE77G0j)4^%}^j_%D` zq*oC6po~tXwP6a_b3rVWk5of%_hZ{vS_LDrtY#e;J~}obPTspI$nqW$$rrR>1xZK4~HW93{k$w8)bvF6{^IzE4lNwA||}m9yvgdF#cO3QKHptEkx`efZnYWt_@W{*M;Je9Ky}f20j%T4=QTIRjh5@lXHh7R?|zl zMt-Dws6AArZAq4=|QTYu~COOK$F7_Y|^8$T|i>{xZFSaVl23rm|6` zpRM>WvWecZ$piHW;2OH4;J~uFiMMOXk%63S@(9%kx$Bf^t(@bO0;73>afgLv4d9_h`QkkAFq%b!QtcWlcWH z1BBNn53|6aKoq;w5BLQ9aKZQ(J2zRc!v; z_vaXh-A2v)!i8Tj?p9`|c1&e=-za-W?vRh;<0!IsJI&gIJlS{Pnw%nbqGmqcMTyaR zh*7qKW*tc;@9*|@EV4i0;~0NuI=cHOYRbV<@-E)Rh4axY{vD0SZDJ?w9o5Rp-P+7) zhpgOrIkMBnAp2Su&DzV|tJmVBT#LtfyGLtQ>E%V4u^3MA-Q3gPOL^n7WUtC2Ky~)K z2ou=aQ!8Tp-d*dfT9dN6=kWRfiU8nKy9pQotYu)vJwu(9tI_o@{W;rHG+WYfJpVCDs;Owdaj zEBk5FRYTr9ViZjPupJ-A-fQIqy`nK|fR?JVe+6{O*oNF-Z{xRGJ~kl!uWJWYHY;#Y zHGgFPgO6imgbvcGtJt#L#oEfVyPTPL^~UnSnzfnyU|{Yg`OcsZx}XlfZ_6j?RgG7M zYOkmwdlh`rR=!VLR>Zjm6o z)D%n^MMr7rs^=D8{PQC`tIgfhBtCG_9;kj;y|Mqa5uQk(7PtQQX<-TD%I4 z`SHX~`MljgNX{o7q4Zf=WffXpv*oKb5XwcvWH(bt%$$yi@$ek2zDiE+@AtX9gndZL zC4`dl-JH?$Z7ov;d(Vh`C|?G6Y1~imXbCE`FXp}X3n6sf*|@F?v`Q*;Jo?lX89I$n ztgT8hVkREdYm2l}D!J#|h!5noeuE_IkZRfP;(o}Ud+IsY+IJSN^@|+$wGJ6zL_X(Q z^EU?=?Q-4My27{S5At1)FFHj&MjoAVZf|)pe75el^F7U9HL_{Mp>OIST!65gdnhd5 z+46ciqg;Du8aOk* zs6uBp99<^A=ZQc_o_MHofzxu3QQXj?RPwKB3r^KV@)45uTW#R5JXnQ%&Q9(jN7+?` z>~}=qm|VfAvBy2kb{tImPJUaL?kG;&oTtZ&p%1mP#?yUT5mj)`=hq%QCys-1h?qWK z_Y;pEXfGI3ztnscGiFJ<)KcE7xHn&qH}3yO3sT8Xi)Ftklc{KoJfL~>0?y3AMxP^E zj7t77Fyn98U(TB)kIm8Q9{hRC-GqpL`t|dEZw;KB(^Q%J2Mqb~IrkMuX6wHGbjp2S zFD==bVt&u*>|>mjW5vkZTHr^+&uXghJ#(8qkqve}BL)u2bycYSv#nFTU%!D9a)t^G zuk=QNeCOx9WAbP$N-oj;jq~4V6;yii_uqXZM_(JXQf`l^OAWkqY@$LFuMTZ3U)VZB zI2I=w*RE>8D!97Ay>0#o_CaYiZKVkuiYpr3ue)dAF|O&Qz1J&nE)Fwp+;l(1Ykx`Z z?|pa}I2Bt<#2-6Oej+d0IVl(??r05F>*h7ORo;6^0_WfmW6(YK@ENnb{$}s<6tKG6bIvdY4jGNtFwWb1z_Ac&eqS(CCX%NvN&yh2f4pE?^q;7 z*t>e@j>5XNy~x@+$t8ooASjOl9v9qQ*R3s0|H~ikkQeM_8o&uO&cN$_>w=q)j5zw7 zK9@&Nqjyo=+Om8WICS%KIuU2i3dZ%~dbGOqr6aEGc~0#p6O)jiJK1;G)2_0+olCR` zeP53hS59Fe_`S4lO#z)3bwIlDF&@ zzA_!jL(XJg9;U#n<@B<~vOwKh-cEj1a9FMzcM!MFtp*O2);=-m;?e)gz3F^}>>E3= zdZivFu#YKg+z!>NsIIym-smT}PpE)>0-FxpC$AF5sET@L70(+pK3Mi_ilYhg+!be3 zi*n!BoKEX|mPc|RlC^BZL?(j;PDe$I4Kcd4)lA4NJymvvm*viVK=L(`ZA=f7v<@=iGuXRq;4=bfrz;|jWO_o)F9_d5HXq483RE`G29Iz=JX6Z zlaoI?RNSp+^*6VLh-)&7aT#xhiyQSVj{8Hzotn+Kg0~{Y$5|G~jUwW1&1GEDf)H`7 zfyHshh`28E?3^@?)Pv7uBVx|ZXAIOMH7>YyM9k+483PBYra6|leniZz#dap=R8EX| z(8#(bE+lzy*>+AqPg3pUW)d-jau@?oN%aF)l!$4O%b3BqUFL8F{_20F?~q+ zufEMi{y4pY*(Ka$BK-Qhc04D0Wd(7svDGEqZ6dDY3dZ4Wia7D2Uap>OE;pTso0w+j^3AQehYM81oL`YGn<}eY_(&`89T@m+mgPoHWRyDJIT)-mcosD)TCv;ncc$jY0#g#1L zv`uzSy#10jCb*zQOp{OT40J8EL~v7!kV9MSNY3e<6~&5HR`a;KMcj~Wc24}=N>4Sr zf}32#Jp0VfYQ`h?23nYUe7O-uO!ywg%x!B;zuXTaX5L;qlk@lC za1qko>T_<45tp`~ac7SvicRe-jyq(;eRjak3A_MJG5dncWW@OX$Ij$DJP|6kw72Tw zdKqy;57{{>o2jh|_sociJ;E5Nl8N;lbhQ^P&a5*6|2XOe%o%ykk2X5oLnBxmx5Iez z6ehNIw62hwX~Y#j!MNS$W9aU2SB7Vg$95+iS!XoMznPZ-Z&&?88+Y!A+j8H|1~&T-*R8@Tb2SD1ATzxeiF+I{ZGt_BzKc z2dd?R8-WD2#!nV(pxX~rAU6XEe4;T>dV&I;pvU0kt{~B~3o%-ngLI)>93(KlupKnN zD}hGnNB4!Rgakhe*1Xmr234yC(y9p2RvtEF3L6Yd^5YlWlLYEAqeGXS93EULNKnRpUqS{dFIpPu} zfgK=F*=mGRsZRS`rX=P7+#?$UwNf!$swAc%>^&RfRxH)C$K^@_f33nmw`!?gCUMD< zz>ks`h_AmQ#K&+n%{>;^E(y$n)MaZbYK)|tz(q^~H>ENVTBdr-#)V8`UWN8+s|~_61cGu10jT}>4>YK#NcPw_69->RSZ``iSfmc4{R4@e%l8@R6PV-4JB|}GjE_2 zMTKzF+!H0b6@EnEtQNGt@Jq8ghnu5BUu@~5gT;sAtW5#eNC~Xp$_a*u#PNEd`Q&n^ zl)x*kouK(0YALa6ywzTAnG(Gq(@B>Xa885FYPoGnU@JJkwr+xZstyv|Iwj@{7_>G< zI;f(?M5}YSf=b}FjttD3XuV$KJ}NPVIx!|-lGQ*irxG){Gh?8t)-gMRORB`g<3|Lx zi-NKmMXw<$F>RH=cKE@J4O~CjT2Z*eO3bbvjDgXrW?SyE5>u@gV_>!_hC8jqtmw@c z7_JpWl@YpMRk;=5mMeiz@e^CpKBV(n)g-v>O2inb(jG*aX?hit;OZ+8`=O9~5cqyJ zL9|%Jv8p02#S*b}kd1&M8!EzQSQT+imavOMY#5~3Fv7SvOISrn z{2uLtMqA132rkePk(=d7NS#(dr}Y!b)2udfrIygZ(VnP)U>hpR&a^Nt*%H=stPT5Z zhMs7)ksG%}tQ~J7;NQlZ1UGMq_;I3*fQK7OSHxXh!jh-hFqpZj`?!-!#QJHT1in@Y z5CyaJ3TE@Tpi5Nz3>#(Xx{BhaE>YuVc~YjgE8y+=(ZJyDF0s$%*jSjnA%t<8m$1ff z+c3A=t6IvfUc%13F!g5v{n=wEa0Qy!J%?

PvL|3~UuAmd~9e!!!K|n~aNWHO?uglu(ioB)#_pNC<%t2)%?JQfQ${37|j{N+1|&C`zvf7{wr=h=_pT zfo!FNARPqhO^Tq@fMO7%aKG8J&;3~Q-dcB^@4UCp{o}3se&08J_RQo*!QP734^`@% z+ObSoSCh$9!4$cuWzTT|p}pf3lgUvvnNs2ZnlobT=#0TRF)`h829M5(8I+efAUh^; zM8?>x!P#SSV!8~?99}EAb=SHv*8gIc#3c4rHPv@po90S8PMrR1DK`dV*K#ovQc>C=(&cWFn0fx~krmc3EXa zfSrlCGFc#xwe5UA4v@is>_kPb za#Ou5b4N85$kb{T*c?FKfp+drL|Pt_VmO8#7SQ%9hTW8V0n> z@S`@drA2OgL2G=tWLg^_Wk7CJ8Y^{&4s&Q+szBCpYZuWGknQa#E=%!H11w$gx(Vck z()G*V2c#Rc2X!P{j*ed-Xm(w4jqPCW{cC3!Gh*9 z<;tTKKsw<}Zx8103q5+Xd7Y|vn1gi|_w$4Vs{^(JwYZ~}HxLP4sFqdk4N!`J*pW&* z#sUSc*rEH0SRnlgza%QH;wMIDo*&Te-CIENC{LeZEE89h7xi}LYSV=;A*Y!@B-h)T z0uNEr0M&2S-$0uOG;+ONS?MEa`(wZQ?KRLg0j)i?-dtDt30i~6{g;@4w8Nf~rWG1( zdUHhU&LKcL3qSG%wRm+~k=veyoBbnz^aK3J`=HbS*auZz8!M2%Eo?AtB;bz0fFO6e zf$NqCTJomopK1Z^8vLlsn#FZ}S3wJ{|MiOQKF(`g1ubN2dM!S79e_sOT%;8loo-LL zf7jFp8ec1@ozAjHGe$-HnNf%M-u8F+btBdro6;V(%jw_M7sc)TM~!B^0M`hLOP-Xs z?93CiZXX+L!_2(x&?HfV7f1Ula{*Zba~^eGF$W#>unhj8z-Z=u8_#qB;!!9vb*{Gr z9nBZCN9)cli~?F$pivhi%YkE^1#QND#ncdJ&UWO+7IlD?Jn4jSNOG;*mN35WZt6gv z5;)S6^@~&;ELTnjik{Od;I6V3n9~F7*mM*|LaKGnYsxT=1Vdy^O_3h2Y zZ$({Rh!`}U&xO%YcrxwMH+w1OE;H(p~tGyUCWj%>`}Kntt2epo^4q zv13!^d@n(qV{C4jeTGji)u8gIlM73Vg86j%gLsi(s&jF7{fP2U)q!9D?Q7{=_1S0%03HP0WuMg)bYVmqSa8=OjX=0b)Onv=5<-#Pvd|) z5oQ?bYQp+=Qavndif4&bCthj#bSNO7LaO9V($mirZx&Ds=GWoRa|E~G-isMMfjb4b z)U6!rUkkn;{Qk%g$W0}Mzq9~kQ#(?%6u!t5w6JpfCS?Gv3e+XF;FhQo<7oEa&cSW- zfHuPp8jDSVz2=LTb3}q0i#zYk2Bae(sq+L|m;x)5_G*eijvMn&6wh)oAjzX=z-Aad znWaXSe>zl&8U@I?_8=$JR{fSORjOJN{~abW&7M<99ROHQz>=qq!c^6b#W^T0mOow_ z-+9j#Tpd3Uxc`86UcbNZ-1t4< z1_PJ6E9LuKEyh7Hw$8B+w+8a5z7-UoiquY4P{xQ1uea;{bU5Hj0Z08NXHyR<{@Ub9 z%0$5oyS9AJR$wwaO3fB@QGK;|N9BNE_PuqhAMg3q?PwwPw2KN8a-8a*HE>ppi;DF5 z>!N0WKPF3Pq589}MhjLzk zdw2LXV+eq6LK{&JwOByB>TUkA*ijqgr3@0>FK*}Gs0&=ajU`vYsP3v~k&lunkc~r% z5>@~*9a^2*OzdPl^!$5L!0P34c^xFchOOW!f_yXM<3{~2Q?0(CCkT(cW%OFGQ zhX5PdK=sg`gelpAxjS@GYrcW!SBK=2`2!79FLT7?D%#ozB|>oB|1NOn7i!}mS1MO~ z7^(CVxPgy6stp4i|0p0Yl#_a>UMxQWhU4rS)-_|qgQ6LH&3FiXoIGp}B*5I!I7%_T zPp7}$Icf?pSJ*LkXlJ994WjHv2Btm#18_s&EQ4HjNU@r>DMqOzdgfmvO`ZAei7%u` z{e)(x8md0p^H^oP$kXNB^cemjJ;07O(&pAxj7!vo_0J{ohc1PXB6TOLxztm(iR>|;4-11$++9`$}WK$_v-43_JE6p!jf^j8z>_MZtkp4XJ~-?1qw@Udeieo5Iq!qoraTf<0)|_9Xut z9c#zYddDkmUhM-9&RF17vw^ zL0iQ*IL?0_|G6J<6+22_)Lt>p@#oxMxFZ#4*+8Qnzd)8=T7Cy>!DFVkyTEtlS@zYX zm*$_Od?0#JNPy!fV*%OFj>Sc9p5vVq<7528A2f#uKyHU0`FzN!h3c;@Nl{`&ny=it zH{J%kq4rFTcT<(i0yo0_{g|qN`yPJek$tVRQb*vH?y8W?uc`SCg<4`Qx~pOw+^v0Y z`4xUQ|1LChf8vl~gIlUm+K=57;~KJ0@mIB(YDHg@9o)E$K z&0!13le~e->#1}UxCi-*_VRuABlwXQ{Jd7M;J@jmG!)Ezc_SnF?dt)1n5Q{&OdqAT zV0P*DW4b@^%0aQIHwD_EzDjc?k-v)Go;k^lFVWlK;TfOD#|+Ma=hXl6m9_Y<@i*4+ zBHC4p@29j?b>5<`y&Ce={x1ZWFp!SA*@@W}B{YE<8b#L*kQ+BmwUOUx~%_&t}wCNL+XaOBINDH*9 zK~GPzHt347argMkm$JkO#GF>-${MwYQJS5vR2AtZ1{}K70GP$V|&AS#|?nz-UcARGbBGefZ$b{FK`nmNUKuv^hU`!BJgXGE-?Ucp2k| zG^zx=NGLD=xUrcBm;0fb-yE2W^+~w)$;RjHno3gUS*H>u^4uF2NUas5Mwx{9#jg+R z-4WV%?*heJPi_8crIX<8I2eC}|4ms#Vru5X7v5}PGIVGEb&9)Sn!mmI z$S!77i8p%!Ot$$swDYX>N_hd!S(Fm%WJj|6HZ@#3w?Xj`ye$ZePK|Nb z=o{;}yRxXLHg9O^Jgvd4X+u%e-LqPk@LHpy7+jQkYNv{nAi+y5-8#{(riDw=Fg9vQ9coUP?ceoApVZNPULj2*F;wef# zr}^CxM*cBTRT$C`CY;)K&Ir4&Z+L!3Ag7}MHR)L|8znu|G1!j zu4{SMmD&O|I;40U|Jx99O-@ROFMp`XrfM=jI9V9KK8>FwoF{(b#lYc7UH%{aSk;qC z&=*;^jY)UJ);tRb{|;b&jbLk&Yjf{fPf#+hezAi$G;Jo2S<9H|xsvjr;J;cJ)TM2=vreJye24Lodm`x!bNn^P52Sc~A8nF=Mzs zv3Bu(nSZDAE>8W_WyL+!Kwh0L+WW=UF5Yck;dHweZnzNiV*Pu;1Pl|LvC*^Kz1@a? zKp%x^gYp5x;9Ag~?F1zC=kCyp!jO5A#oj z`@kb@N#Rbo9wjyhlVuOR=!ku*L78%uSa zEsI!?-C#744O*5koh=(#kbNnK#)hk%VD`ABQ7^Ki1^E}o68Zba1h6c3gD+cKkUwP{ zk>4WMo6QX|__D_Z`7U`hKDWAvJ}C=bkbQ7Gkqvs6ntHp+W*1~no=9YG@KD7>BYR$u z-E}gN4b~S?C$jJb*;VstY;)zwzAW3*Xir%IgZ$5@()e5mBkDzV!5}+%I*|=#mhOD<8x_Dl%Bini$V6axiq%fX|^}>_cn5u4Km2j zoloTF&+%aiz6M`*${^o!A&t)sGh&>|av5YtE+(=;H4~@TyKI?3_5?GHZFX7|!shxI z^&)#`kiT{rmA@o_-3&JPvWW)ysf@aEgoh`d;kbU(t8rwW^g)d8pH=0+r+aN!3 zHI2`9`>DZt?y~C!*)!J=*^d5dh|ZSHH^_dtmdNhwuLkLC*@J`Zl+S5wb6TN0*12rP zLB6)0$X~qL8>dRym4o~?8)$q6=A5vBd`QXC9AsbqlE%g%)nzQZ)zTPKvQ7u%eDf78 z4*N5}*doYs9b_kOCbB`bBeoy1We3^sd`)D7b0GB%eQRuLH@yAME>sW{y3M(ZXe`N*+b-~75U(&pKSX{vIuW zHA*zrKiU6-{9XHLeBB1b8iX3>DY6X+19Uw|43HOUEL5@^2-$9ji0q@G#@E{Sjs~s;m^k00k##0nD|& z_hBjFMge5W5b|rDqVc(MNUTt@Z3x+pXJ~Bw*+EITQ8yJO_Ym?O&XV~dtXG6lH?oZg z`De}%`3H{qvaMFW>?cD0(DO9DZYwe;ov6f|B8@`G#v%;jd66DO_ZNv{Tv=U&0ajfm z1^|(fIIff(M#$cLi^ev;x#+;~zeD4*#OlUgM0Ok@yVEZ;wmIdhAG>Nj zrjV^i$Zvh0$Pc(4%3Nv~bt8L_kbnPI8lQEjVSH=KRwQJveL!QIqkr~c4Xx9%>`6j? z*GDuye>_`D-$%*9BxIL)LS%QUX&jx&`Xpo*Jf*SCTkd+Wy)}(Cm4!;k4}C`DJKyuh zdY2VT$p8EWjn9QkVl|OnOUQ0kLS%FElDYVy1KSs6RFG_6!XSUXBnAN&lPG|!VM6xS zS41{QnQH5uQdTh`duS<<&BaV?ZoIM9%3>xAkoqq%fK}5ZmJ!*|gaM+!{!F=YBC*0c7zL28gRf3;-G^@ev{0pOEe9NM!3S zs9&wg%Ni&QaMy_#z$%3jgG=^7VSu74!~pQV^LDpR%`@2{o z`*?lh`cQUXA^UY4kqss+Up)JjZCDs!UOY8G1LK@QwqhZ>X9FS|99iQ0MK)t0`&j~! z?V4b)Wla{c8JL+!oy9865_5vA%fbLTAdMjffcNNPLX)*w$WCcSWW(F}0G80uSZ!sI z76xbr)^24{DvcwAmtOK1ADF7(FyjfBcqkUzq7Y3NrnHT^hUmk3w zHGnMo!T^=J5(8XnVw@())-Png>_%jR15BJ$$@VW~ZwG-TrRMcNMPN;hCl|5`4EeLc zFihry#p@kxU0Du>K|1udFGzU?s<6t;*VX7pvMvlGz3xMf6sSKg)3;T!Kn(fw;U5Vi zRu|YMJ3t}+`>Ik_ieZp0{p|<>f70T_#y2-=N|uaakSNe#6HDUCKsokSbI95;4D!w( zS`Y>jvKo3*$oes4e>s@Q9^Aq>W|CcG$UgQSk-fWxu}PH0WXNtcl*o2!Y1D~qDMR+1 zVMI1K%NpqQE!)bFU6e^=b9WiL*U~sQl+|Szz+nV2KzJ)-hbw!`ki7zYrj*{!z-lIT zSF+Cx+4V;g*=>MAcJ=%f>T= zKOaYcpGZ_|>RefWhTM$twsWmAG?BBcK|^+xNw%}O6iwtT>(G!p4cwzPS2W1ceAuEs zs-s>ZvLFrNkEasgpiA>bxU5V=c&`}*I0)3L>q*P%H01vE5rGRLwIKGitx+SgOby|m z%_hJ>t>(ju(+#++S3`Kkc?3Af)*|&9ku__`&0Rp?f^^NB1@<gRo30Ie`m8 zH(%BS6jM4}mbxK)-xmb9Rq-ZzhAekOc;ZF^98_;&-jMxn$o*y$feW^`Ae`)E;~T(B8Ti;Fi_jvO~5H9rfS(HhuoKk30!!)5vz9-Sty6xaYqSUc(U=<;! z0p2E6t)(X|`{t0F3IFnr&6NyKHN+T~m2=3wcZR@)7aF11qh$#l!ZXeh;9N<^veJz2 zBH2iX@LT5zaCn{}x`!;KLvH^|wsZAY8K9`EinStZ>M+2aD}(@6X&nP;-CMJXEUv>S z?_ak)3fI`h=^arP*dh1HO#&C*WYoZ_k(G7`&%I56!&3~Aw5+y6?mu@4TzG*YrYPBN zhulf`30$k|PRy&aKVeB(P1bA}s){G_l@DTnx{9Cd%R}0wj#KDEE#6#|qKM7oTY9Y4qvK0@x zF7Qv;+ng^r@a1iI!?8A@YWMv+53*Oky#pfXG zY&X?UpZsKZ9!97P(s`S!8%%os_|+ua^bkG?j8rzm;oX2(&}5+=a{mF7l+9eO*JGg9 zduvF_iam^w2U<;=BXHp!1L2+{){QLP!w4_I6=-t=tAfv8Z&lg5hwxlbm)Z;m3tyDZ zmDPL5eGJ}Ko4HmIpI9Aa1s}pQ;opL`8EzHw3Ak+GL%6Fu0nVL#44iz9c-AF*`7pv> zPeKH4>0`0U#^NSR`VcvzcfUut3?@pEA*eT^d&S>%UN zb_bH8crBX`w#EM*cFSr%$Q~1E zJDY(5Fc{|>Sp$f0ubKonNCCwmlWYP+?#yTc7q0!nF=^Qii166j1i1NKwT52PvM3O_ gYwHlWpbhkMPwiL^w3jB+HTd6pSte6e?r${x2OjrUpa1{> diff --git a/sources/SDL/SDL/SDL3/SDL3/ISdl.gen.cs b/sources/SDL/SDL/SDL3/SDL3/ISdl.gen.cs new file mode 100644 index 0000000000..b1f051bebf --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/ISdl.gen.cs @@ -0,0 +1,16069 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public unsafe partial interface ISdl +{ + public partial interface Static + { + [NativeFunction("SDL3", EntryPoint = "AcquireCameraFrame")] + static abstract Surface* AcquireCameraFrame( + SDL_Camera* camera, + [NativeTypeName("Uint64 *")] ulong* timestampNS + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AcquireCameraFrame")] + static abstract Ptr AcquireCameraFrame( + Ref camera, + [NativeTypeName("Uint64 *")] Ref timestampNS + ); + + [NativeFunction("SDL3", EntryPoint = "AddEventWatch")] + static abstract int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] + static abstract int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMapping")] + static abstract int AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMapping")] + static abstract int AddGamepadMapping([NativeTypeName("const char *")] Ref mapping); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromFile")] + static abstract int AddGamepadMappingsFromFile( + [NativeTypeName("const char *")] sbyte* file + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromFile")] + static abstract int AddGamepadMappingsFromFile( + [NativeTypeName("const char *")] Ref file + ); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromIO")] + static abstract int AddGamepadMappingsFromIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] + static abstract int AddGamepadMappingsFromIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ); + + [NativeFunction("SDL3", EntryPoint = "AddHintCallback")] + static abstract int AddHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] + static abstract int AddHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "AddTimer")] + static abstract uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + void* param2 + ); + + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] + static abstract uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + Ref param2 + ); + + [NativeFunction("SDL3", EntryPoint = "AddVulkanRenderSemaphores")] + static abstract int AddVulkanRenderSemaphores( + SDL_Renderer* renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] + static abstract int AddVulkanRenderSemaphores( + Ref 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 = "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 = "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("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "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 = "AtomicGet")] + static abstract int AtomicGet(AtomicInt* a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + static abstract int AtomicGet(Ref a); + + [NativeFunction("SDL3", EntryPoint = "AtomicGetPtr")] + static abstract void* AtomicGetPtr(void** a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] + static abstract Ptr AtomicGetPtr(Ref2D a); + + [NativeFunction("SDL3", EntryPoint = "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 = "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 = "AttachVirtualJoystick")] + static abstract uint AttachVirtualJoystick( + JoystickType type, + int naxes, + int nbuttons, + int nhats + ); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "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( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + static abstract MaybeBool AudioDevicePaused( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + static abstract int AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [NativeFunction("SDL3", EntryPoint = "BindAudioStream")] + static abstract int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream* stream + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + static abstract int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref stream + ); + + [NativeFunction("SDL3", EntryPoint = "BindAudioStreams")] + static abstract int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream** streams, + int num_streams + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] + static abstract int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref2D streams, + int num_streams + ); + + [NativeFunction("SDL3", EntryPoint = "BlitSurface")] + static abstract int BlitSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] + static abstract int BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect + ); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceScaled")] + static abstract int BlitSurfaceScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect, + ScaleMode scaleMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] + static abstract int BlitSurfaceScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect, + ScaleMode scaleMode + ); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUnchecked")] + static abstract int BlitSurfaceUnchecked( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] + static abstract int BlitSurfaceUnchecked( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUncheckedScaled")] + static abstract int BlitSurfaceUncheckedScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] + static abstract int BlitSurfaceUncheckedScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ); + + [NativeFunction("SDL3", EntryPoint = "BroadcastCondition")] + static abstract int BroadcastCondition(SDL_Condition* cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] + static abstract int BroadcastCondition(Ref cond); + + [NativeFunction("SDL3", EntryPoint = "CaptureMouse")] + static abstract int CaptureMouse([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] + static abstract int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled); + + [NativeFunction("SDL3", EntryPoint = "CleanupTLS")] + static abstract void CleanupTLS(); + + [NativeFunction("SDL3", EntryPoint = "ClearAudioStream")] + static abstract int ClearAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + static abstract int ClearAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "ClearClipboardData")] + static abstract int ClearClipboardData(); + + [NativeFunction("SDL3", EntryPoint = "ClearComposition")] + static abstract void ClearComposition(); + + [NativeFunction("SDL3", EntryPoint = "ClearError")] + static abstract void ClearError(); + + [NativeFunction("SDL3", EntryPoint = "ClearProperty")] + static abstract int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] + static abstract int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ); + + [NativeFunction("SDL3", EntryPoint = "CloseAudioDevice")] + static abstract void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [NativeFunction("SDL3", EntryPoint = "CloseCamera")] + static abstract void CloseCamera(SDL_Camera* camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseCamera")] + static abstract void CloseCamera(Ref camera); + + [NativeFunction("SDL3", EntryPoint = "CloseGamepad")] + static abstract void CloseGamepad(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseGamepad")] + static abstract void CloseGamepad(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "CloseHaptic")] + static abstract void CloseHaptic(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseHaptic")] + static abstract void CloseHaptic(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "CloseIO")] + static abstract int CloseIO(SDL_IOStream* context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + static abstract int CloseIO(Ref context); + + [NativeFunction("SDL3", EntryPoint = "CloseJoystick")] + static abstract void CloseJoystick(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] + static abstract void CloseJoystick(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "CloseSensor")] + static abstract void CloseSensor(SDL_Sensor* sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseSensor")] + static abstract void CloseSensor(Ref sensor); + + [NativeFunction("SDL3", EntryPoint = "CloseStorage")] + static abstract int CloseStorage(SDL_Storage* storage); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + static abstract int CloseStorage(Ref storage); + + [NativeFunction("SDL3", EntryPoint = "ComposeCustomBlendMode")] + static abstract BlendMode ComposeCustomBlendMode( + BlendFactor srcColorFactor, + BlendFactor dstColorFactor, + BlendOperation colorOperation, + BlendFactor srcAlphaFactor, + BlendFactor dstAlphaFactor, + BlendOperation alphaOperation + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertAudioSamples")] + static abstract int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const Uint8 *")] byte* src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec, + [NativeTypeName("Uint8 **")] byte** dst_data, + int* dst_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] + static abstract int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const Uint8 *")] Ref src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec, + [NativeTypeName("Uint8 **")] Ref2D dst_data, + Ref dst_len + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertEventToRenderCoordinates")] + static abstract int ConvertEventToRenderCoordinates(SDL_Renderer* renderer, Event* @event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] + static abstract int ConvertEventToRenderCoordinates( + Ref renderer, + Ref @event + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertPixels")] + static abstract int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] + static abstract int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertPixelsAndColorspace")] + static abstract int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + void* dst, + int dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] + static abstract int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + Ref dst, + int dst_pitch + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurface")] + static abstract Surface* ConvertSurface( + Surface* surface, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] + static abstract Ptr ConvertSurface( + Ref surface, + [NativeTypeName("const SDL_PixelFormat *")] Ref format + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurfaceFormat")] + static abstract Surface* ConvertSurfaceFormat( + Surface* surface, + PixelFormatEnum pixel_format + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + static abstract Ptr ConvertSurfaceFormat( + Ref surface, + PixelFormatEnum pixel_format + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurfaceFormatAndColorspace")] + static abstract Surface* ConvertSurfaceFormatAndColorspace( + Surface* surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [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 = "CopyProperties")] + static abstract int CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ); + + [NativeFunction("SDL3", EntryPoint = "CreateAudioStream")] + static abstract SDL_AudioStream* CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] + static abstract Ptr CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ); + + [NativeFunction("SDL3", EntryPoint = "CreateColorCursor")] + static abstract SDL_Cursor* CreateColorCursor(Surface* surface, int hot_x, int hot_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateColorCursor")] + static abstract Ptr CreateColorCursor( + Ref surface, + int hot_x, + int hot_y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + static abstract Ptr CreateCondition(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + static abstract SDL_Condition* CreateConditionRaw(); + + [NativeFunction("SDL3", EntryPoint = "CreateCursor")] + static abstract SDL_Cursor* CreateCursor( + [NativeTypeName("const Uint8 *")] byte* data, + [NativeTypeName("const Uint8 *")] byte* mask, + int w, + int h, + int hot_x, + int hot_y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCursor")] + static abstract Ptr CreateCursor( + [NativeTypeName("const Uint8 *")] Ref data, + [NativeTypeName("const Uint8 *")] Ref mask, + int w, + int h, + int hot_x, + int hot_y + ); + + [NativeFunction("SDL3", EntryPoint = "CreateDirectory")] + static abstract int CreateDirectory([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] + static abstract int CreateDirectory([NativeTypeName("const char *")] Ref path); + + [NativeFunction("SDL3", EntryPoint = "CreateHapticEffect")] + static abstract int CreateHapticEffect( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] + static abstract int CreateHapticEffect( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + static abstract Ptr CreateMutex(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + static abstract SDL_Mutex* CreateMutexRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] + static abstract Ptr CreatePalette(int ncolors); + + [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 = "CreatePopupWindow")] + static abstract SDL_Window* CreatePopupWindow( + SDL_Window* parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] + static abstract Ptr CreatePopupWindow( + Ref parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "CreateProperties")] + static abstract uint CreateProperties(); + + [NativeFunction("SDL3", EntryPoint = "CreateRenderer")] + static abstract SDL_Renderer* CreateRenderer( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Uint32")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] + static abstract Ptr CreateRenderer( + Ref window, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Uint32")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + static abstract Ptr CreateRendererWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + static abstract SDL_Renderer* CreateRendererWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + static abstract Ptr CreateRWLock(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + static abstract SDL_RWLock* CreateRWLockRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + static abstract Ptr CreateSemaphore( + [NativeTypeName("Uint32")] uint initial_value + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + static abstract SDL_Semaphore* CreateSemaphoreRaw( + [NativeTypeName("Uint32")] uint initial_value + ); + + [NativeFunction("SDL3", EntryPoint = "CreateSoftwareRenderer")] + static abstract SDL_Renderer* CreateSoftwareRenderer(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSoftwareRenderer")] + static abstract Ptr CreateSoftwareRenderer(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "CreateStorageDirectory")] + static abstract int CreateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] + static abstract int CreateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] + static abstract Ptr CreateSurface(int width, int height, PixelFormatEnum format); + + [NativeFunction("SDL3", EntryPoint = "CreateSurfaceFrom")] + static abstract Surface* CreateSurfaceFrom( + void* pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] + static abstract Ptr CreateSurfaceFrom( + Ref pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] + static abstract Surface* CreateSurfaceRaw(int width, int height, PixelFormatEnum format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + static abstract Ptr CreateSystemCursor(SystemCursor id); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + static abstract SDL_Cursor* CreateSystemCursorRaw(SystemCursor id); + + [NativeFunction("SDL3", EntryPoint = "CreateTexture")] + static abstract SDL_Texture* CreateTexture( + SDL_Renderer* renderer, + PixelFormatEnum format, + int access, + int w, + int h + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + static abstract Ptr CreateTexture( + Ref renderer, + PixelFormatEnum format, + int access, + int w, + int h + ); + + [NativeFunction("SDL3", EntryPoint = "CreateTextureFromSurface")] + static abstract SDL_Texture* CreateTextureFromSurface( + SDL_Renderer* renderer, + Surface* surface + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] + static abstract Ptr CreateTextureFromSurface( + Ref renderer, + Ref surface + ); + + [NativeFunction("SDL3", EntryPoint = "CreateTextureWithProperties")] + static abstract SDL_Texture* CreateTextureWithProperties( + SDL_Renderer* renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + static abstract Ptr CreateTextureWithProperties( + Ref renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [NativeFunction("SDL3", EntryPoint = "CreateThread")] + static abstract SDL_Thread* CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + void* data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + static abstract Ptr CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + Ref data + ); + + [NativeFunction("SDL3", EntryPoint = "CreateThreadWithStackSize")] + static abstract SDL_Thread* CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const size_t")] nuint stacksize, + void* data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + static abstract Ptr CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const size_t")] nuint stacksize, + Ref data + ); + + [return: NativeTypeName("SDL_TLSID")] + [NativeFunction("SDL3", EntryPoint = "CreateTLS")] + static abstract uint CreateTLS(); + + [NativeFunction("SDL3", EntryPoint = "CreateWindow")] + static abstract SDL_Window* CreateWindow( + [NativeTypeName("const char *")] sbyte* title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] + static abstract Ptr CreateWindow( + [NativeTypeName("const char *")] Ref title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [NativeFunction("SDL3", EntryPoint = "CreateWindowAndRenderer")] + static abstract int CreateWindowAndRenderer( + [NativeTypeName("const char *")] sbyte* title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + SDL_Window** window, + SDL_Renderer** renderer + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] + static abstract int CreateWindowAndRenderer( + [NativeTypeName("const char *")] Ref title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + Ref2D window, + Ref2D renderer + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + static abstract Ptr CreateWindowWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + static abstract SDL_Window* CreateWindowWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + static abstract MaybeBool CursorVisible(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + static abstract int CursorVisibleRaw(); + + [NativeFunction("SDL3", EntryPoint = "DateTimeToTime")] + static abstract int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] DateTime* dt, + [NativeTypeName("SDL_Time *")] long* ticks + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] + static abstract int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] Ref dt, + [NativeTypeName("SDL_Time *")] Ref ticks + ); + + [NativeFunction("SDL3", EntryPoint = "Delay")] + static abstract void Delay([NativeTypeName("Uint32")] uint ms); + + [NativeFunction("SDL3", EntryPoint = "DelayNS")] + static abstract void DelayNS([NativeTypeName("Uint64")] ulong ns); + + [NativeFunction("SDL3", EntryPoint = "DelEventWatch")] + static abstract void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] + static abstract void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "DelHintCallback")] + static abstract void DelHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] + static abstract void DelHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "DestroyAudioStream")] + static abstract void DestroyAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] + static abstract void DestroyAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "DestroyCondition")] + static abstract void DestroyCondition(SDL_Condition* cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCondition")] + static abstract void DestroyCondition(Ref cond); + + [NativeFunction("SDL3", EntryPoint = "DestroyCursor")] + static abstract void DestroyCursor(SDL_Cursor* cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCursor")] + static abstract void DestroyCursor(Ref cursor); + + [NativeFunction("SDL3", EntryPoint = "DestroyHapticEffect")] + static abstract void DestroyHapticEffect(SDL_Haptic* haptic, int effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] + static abstract void DestroyHapticEffect(Ref haptic, int effect); + + [NativeFunction("SDL3", EntryPoint = "DestroyMutex")] + static abstract void DestroyMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyMutex")] + static abstract void DestroyMutex(Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "DestroyPalette")] + static abstract void DestroyPalette(Palette* palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPalette")] + static abstract void DestroyPalette(Ref palette); + + [NativeFunction("SDL3", EntryPoint = "DestroyPixelFormat")] + static abstract void DestroyPixelFormat(PixelFormat* format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] + static abstract void DestroyPixelFormat(Ref format); + + [NativeFunction("SDL3", EntryPoint = "DestroyProperties")] + static abstract void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [NativeFunction("SDL3", EntryPoint = "DestroyRenderer")] + static abstract void DestroyRenderer(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRenderer")] + static abstract void DestroyRenderer(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "DestroyRWLock")] + static abstract void DestroyRWLock(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRWLock")] + static abstract void DestroyRWLock(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "DestroySemaphore")] + static abstract void DestroySemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySemaphore")] + static abstract void DestroySemaphore(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "DestroySurface")] + static abstract void DestroySurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySurface")] + static abstract void DestroySurface(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "DestroyTexture")] + static abstract void DestroyTexture(SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + static abstract void DestroyTexture(Ref texture); + + [NativeFunction("SDL3", EntryPoint = "DestroyWindow")] + static abstract void DestroyWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] + static abstract void DestroyWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "DestroyWindowSurface")] + static abstract int DestroyWindowSurface(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + static abstract int DestroyWindowSurface(Ref window); + + [NativeFunction("SDL3", EntryPoint = "DetachThread")] + static abstract void DetachThread(SDL_Thread* thread); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] + static abstract void DetachThread(Ref thread); + + [NativeFunction("SDL3", EntryPoint = "DetachVirtualJoystick")] + static abstract int DetachVirtualJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "DisableScreenSaver")] + static abstract int DisableScreenSaver(); + + [NativeFunction("SDL3", EntryPoint = "DuplicateSurface")] + static abstract Surface* DuplicateSurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] + static abstract Ptr DuplicateSurface(Ref surface); + + [return: NativeTypeName("SDL_EGLConfig")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + static abstract Ptr EGLGetCurrentEGLConfig(); + + [return: NativeTypeName("SDL_EGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + static abstract void* EGLGetCurrentEGLConfigRaw(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + static abstract Ptr EGLGetCurrentEGLDisplay(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + static abstract void* EGLGetCurrentEGLDisplayRaw(); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "EGLGetProcAddress")] + static abstract delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] + static abstract delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ); + + [return: NativeTypeName("SDL_EGLSurface")] + [NativeFunction("SDL3", EntryPoint = "EGLGetWindowEGLSurface")] + static abstract void* EGLGetWindowEGLSurface(SDL_Window* window); + + [return: NativeTypeName("SDL_EGLSurface")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + static abstract Ptr EGLGetWindowEGLSurface(Ref window); + + [NativeFunction("SDL3", EntryPoint = "EGLSetEGLAttributeCallbacks")] + static abstract void EGLSetEGLAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + delegate* unmanaged platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] + delegate* unmanaged surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] + delegate* unmanaged contextAttribCallback + ); + + [NativeFunction("SDL3", EntryPoint = "EnableScreenSaver")] + static abstract int EnableScreenSaver(); + + [NativeFunction("SDL3", EntryPoint = "EnumerateDirectory")] + static abstract int EnumerateDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] + static abstract int EnumerateDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "EnumerateProperties")] + static abstract int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] + static abstract int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "EnumerateStorageDirectory")] + static abstract int EnumerateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] + static abstract int EnumerateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "Error")] + static abstract int Error(Errorcode code); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + static abstract MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + static abstract int EventEnabledRaw([NativeTypeName("Uint32")] uint type); + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRect")] + static abstract int FillSurfaceRect( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("Uint32")] uint color + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] + static abstract int FillSurfaceRect( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("Uint32")] uint color + ); + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRects")] + static abstract int FillSurfaceRects( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int count, + [NativeTypeName("Uint32")] uint color + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] + static abstract int FillSurfaceRects( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int count, + [NativeTypeName("Uint32")] uint color + ); + + [NativeFunction("SDL3", EntryPoint = "FilterEvents")] + static abstract void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FilterEvents")] + static abstract void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "FlashWindow")] + static abstract int FlashWindow(SDL_Window* window, FlashOperation operation); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + static abstract int FlashWindow(Ref window, FlashOperation operation); + + [NativeFunction("SDL3", EntryPoint = "FlipSurface")] + static abstract int FlipSurface(Surface* surface, FlipMode flip); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] + static abstract int FlipSurface(Ref surface, FlipMode flip); + + [NativeFunction("SDL3", EntryPoint = "FlushAudioStream")] + static abstract int FlushAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + static abstract int FlushAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "FlushEvent")] + static abstract void FlushEvent([NativeTypeName("Uint32")] uint type); + + [NativeFunction("SDL3", EntryPoint = "FlushEvents")] + static abstract void FlushEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [NativeFunction("SDL3", EntryPoint = "FlushRenderer")] + static abstract int FlushRenderer(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + static abstract int FlushRenderer(Ref renderer); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadConnected")] + static abstract int GamepadConnected(SDL_Gamepad* gamepad); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] + static abstract MaybeBool GamepadConnected(Ref gamepad); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + static abstract MaybeBool GamepadEventsEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + static abstract int GamepadEventsEnabledRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasAxis")] + static abstract int GamepadHasAxis(SDL_Gamepad* gamepad, GamepadAxis axis); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] + static abstract MaybeBool GamepadHasAxis(Ref gamepad, GamepadAxis axis); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasButton")] + static abstract int GamepadHasButton(SDL_Gamepad* gamepad, GamepadButton button); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] + static abstract MaybeBool GamepadHasButton( + Ref gamepad, + GamepadButton button + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasSensor")] + static abstract int GamepadHasSensor(SDL_Gamepad* gamepad, SensorType type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] + static abstract MaybeBool GamepadHasSensor(Ref gamepad, SensorType type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadSensorEnabled")] + static abstract int GamepadSensorEnabled(SDL_Gamepad* gamepad, SensorType type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] + static abstract MaybeBool GamepadSensorEnabled( + Ref gamepad, + SensorType type + ); + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetAssertionHandler")] + static abstract delegate* unmanaged GetAssertionHandler( + void** puserdata + ); + + [return: NativeTypeName("SDL_AssertionHandler")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] + static abstract delegate* unmanaged GetAssertionHandler( + Ref2D puserdata + ); + + [return: NativeTypeName("const SDL_AssertData *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + static abstract Ptr GetAssertionReport(); + + [return: NativeTypeName("const SDL_AssertData *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + static abstract AssertData* GetAssertionReportRaw(); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioCaptureDevices")] + static abstract uint* GetAudioCaptureDevices(int* count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + static abstract Ptr GetAudioCaptureDevices(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetAudioDeviceFormat")] + static abstract int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioSpec* spec, + int* sample_frames + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] + static abstract int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref spec, + Ref sample_frames + ); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + static abstract Ptr GetAudioDeviceName( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + static abstract sbyte* GetAudioDeviceNameRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + static abstract Ptr GetAudioDriver(int index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + static abstract sbyte* GetAudioDriverRaw(int index); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioOutputDevices")] + static abstract uint* GetAudioOutputDevices(int* count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + static abstract Ptr GetAudioOutputDevices(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamAvailable")] + static abstract int GetAudioStreamAvailable(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] + static abstract int GetAudioStreamAvailable(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamData")] + static abstract int GetAudioStreamData(SDL_AudioStream* stream, void* buf, int len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamData")] + static abstract int GetAudioStreamData(Ref stream, Ref buf, int len); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamDevice")] + static abstract uint GetAudioStreamDevice(SDL_AudioStream* stream); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamDevice")] + static abstract uint GetAudioStreamDevice(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFormat")] + static abstract int GetAudioStreamFormat( + SDL_AudioStream* stream, + AudioSpec* src_spec, + AudioSpec* dst_spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] + static abstract int GetAudioStreamFormat( + Ref stream, + Ref src_spec, + Ref dst_spec + ); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFrequencyRatio")] + static abstract float GetAudioStreamFrequencyRatio(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] + static abstract float GetAudioStreamFrequencyRatio(Ref stream); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamProperties")] + static abstract uint GetAudioStreamProperties(SDL_AudioStream* stream); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] + static abstract uint GetAudioStreamProperties(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamQueued")] + static abstract int GetAudioStreamQueued(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamQueued")] + static abstract int GetAudioStreamQueued(Ref stream); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + static abstract Ptr GetBasePath(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + static abstract sbyte* GetBasePathRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetBooleanProperty")] + static abstract int GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_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 = "GetCameraDevicePosition")] + static abstract CameraPosition GetCameraDevicePosition( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id + ); + + [return: NativeTypeName("SDL_CameraDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "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 = "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 + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + static abstract Ptr GetCameraDriver(int index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + static abstract sbyte* GetCameraDriverRaw(int index); + + [NativeFunction("SDL3", EntryPoint = "GetCameraFormat")] + static abstract int GetCameraFormat(SDL_Camera* camera, CameraSpec* spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + static abstract int GetCameraFormat(Ref camera, Ref spec); + + [return: NativeTypeName("SDL_CameraDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraInstanceID")] + static abstract uint GetCameraInstanceID(SDL_Camera* camera); + + [return: NativeTypeName("SDL_CameraDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] + static abstract uint GetCameraInstanceID(Ref camera); + + [NativeFunction("SDL3", EntryPoint = "GetCameraPermissionState")] + static abstract int GetCameraPermissionState(SDL_Camera* camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] + static abstract int GetCameraPermissionState(Ref camera); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraProperties")] + static abstract uint GetCameraProperties(SDL_Camera* camera); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] + static abstract uint GetCameraProperties(Ref camera); + + [NativeFunction("SDL3", EntryPoint = "GetClipboardData")] + static abstract void* GetClipboardData( + [NativeTypeName("const char *")] sbyte* mime_type, + [NativeTypeName("size_t *")] nuint* size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] + static abstract Ptr GetClipboardData( + [NativeTypeName("const char *")] Ref mime_type, + [NativeTypeName("size_t *")] Ref size + ); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + static abstract Ptr GetClipboardText(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + static abstract sbyte* GetClipboardTextRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetClosestFullscreenDisplayMode")] + static abstract DisplayMode* GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] int include_high_density_modes + ); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] + static abstract Ptr GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes + ); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCacheLineSize")] + static abstract int GetCPUCacheLineSize(); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCount")] + static abstract int GetCPUCount(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + static abstract Ptr GetCurrentAudioDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + static abstract sbyte* GetCurrentAudioDriverRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + static abstract Ptr GetCurrentCameraDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + static abstract sbyte* GetCurrentCameraDriverRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + static abstract Ptr GetCurrentDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + static abstract DisplayMode* GetCurrentDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentDisplayOrientation")] + static abstract DisplayOrientation GetCurrentDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentRenderOutputSize")] + static abstract int GetCurrentRenderOutputSize(SDL_Renderer* renderer, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] + static abstract int GetCurrentRenderOutputSize( + Ref renderer, + Ref w, + Ref h + ); + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetCurrentThreadID")] + static abstract ulong GetCurrentThreadID(); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentTime")] + static abstract int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] + static abstract int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + static abstract Ptr GetCurrentVideoDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + static abstract sbyte* GetCurrentVideoDriverRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + static abstract Ptr GetCursor(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + static abstract SDL_Cursor* GetCursorRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfWeek")] + static abstract int GetDayOfWeek(int year, int month, int day); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfYear")] + static abstract int GetDayOfYear(int year, int month, int day); + + [NativeFunction("SDL3", EntryPoint = "GetDaysInMonth")] + static abstract int GetDaysInMonth(int year, int month); + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetDefaultAssertionHandler")] + static abstract delegate* unmanaged< + AssertData*, + void*, + AssertState> GetDefaultAssertionHandler(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + static abstract Ptr GetDefaultCursor(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + static abstract SDL_Cursor* GetDefaultCursorRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + static abstract Ptr GetDesktopDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + static abstract DisplayMode* GetDesktopDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayBounds")] + static abstract int GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] + static abstract int GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayContentScale")] + static abstract float GetDisplayContentScale( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForPoint")] + static abstract uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Point* point); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForPoint")] + static abstract uint GetDisplayForPoint( + [NativeTypeName("const SDL_Point *")] Ref point + ); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForRect")] + static abstract uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Rect* rect); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForRect")] + static abstract uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref rect); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForWindow")] + static abstract uint GetDisplayForWindow(SDL_Window* window); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForWindow")] + static abstract uint GetDisplayForWindow(Ref window); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + static abstract Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint displayID); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + static abstract sbyte* GetDisplayNameRaw([NativeTypeName("SDL_DisplayID")] uint displayID); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayProperties")] + static abstract uint GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayID); + + [return: NativeTypeName("SDL_DisplayID *")] + [NativeFunction("SDL3", EntryPoint = "GetDisplays")] + static abstract uint* GetDisplays(int* count); + + [return: NativeTypeName("SDL_DisplayID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplays")] + static abstract Ptr GetDisplays(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayUsableBounds")] + static abstract int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] + static abstract int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + static abstract Ptr GetError(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + static abstract sbyte* GetErrorRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetEventFilter")] + static abstract int GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + void** userdata + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] + static abstract MaybeBool GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + Ref2D userdata + ); + + [NativeFunction("SDL3", EntryPoint = "GetFloatProperty")] + static abstract float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float default_value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFloatProperty")] + static abstract float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float default_value + ); + + [return: NativeTypeName("const SDL_DisplayMode **")] + [NativeFunction("SDL3", EntryPoint = "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( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref count + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForAxis")] + static abstract sbyte* GetGamepadAppleSFSymbolsNameForAxis( + SDL_Gamepad* gamepad, + GamepadAxis axis + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForAxis")] + static abstract Ptr GetGamepadAppleSFSymbolsNameForAxis( + Ref gamepad, + GamepadAxis axis + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForButton")] + static abstract sbyte* GetGamepadAppleSFSymbolsNameForButton( + SDL_Gamepad* gamepad, + GamepadButton button + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForButton")] + static abstract Ptr GetGamepadAppleSFSymbolsNameForButton( + Ref gamepad, + GamepadButton button + ); + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxis")] + static abstract short GetGamepadAxis(SDL_Gamepad* gamepad, GamepadAxis axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxis")] + static abstract short GetGamepadAxis(Ref gamepad, GamepadAxis axis); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxisFromString")] + static abstract GamepadAxis GetGamepadAxisFromString( + [NativeTypeName("const char *")] sbyte* str + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxisFromString")] + static abstract GamepadAxis GetGamepadAxisFromString( + [NativeTypeName("const char *")] Ref str + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadBindings")] + static abstract GamepadBinding** GetGamepadBindings(SDL_Gamepad* gamepad, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadBindings")] + static abstract Ptr2D GetGamepadBindings( + Ref gamepad, + Ref count + ); + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadButton")] + static abstract byte GetGamepadButton(SDL_Gamepad* gamepad, GamepadButton button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + static abstract byte GetGamepadButton(Ref gamepad, GamepadButton button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonFromString")] + static abstract GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] sbyte* str + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] + static abstract GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] Ref str + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabel")] + static abstract GamepadButtonLabel GetGamepadButtonLabel( + SDL_Gamepad* gamepad, + GamepadButton button + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonLabel")] + static abstract GamepadButtonLabel GetGamepadButtonLabel( + Ref gamepad, + GamepadButton button + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabelForType")] + static abstract GamepadButtonLabel GetGamepadButtonLabelForType( + GamepadType type, + GamepadButton button + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadConnectionState")] + static abstract JoystickConnectionState GetGamepadConnectionState(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] + static abstract JoystickConnectionState GetGamepadConnectionState(Ref gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadFirmwareVersion")] + static abstract ushort GetGamepadFirmwareVersion(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFirmwareVersion")] + static abstract ushort GetGamepadFirmwareVersion(Ref gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + static abstract Ptr GetGamepadFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + static abstract SDL_Gamepad* GetGamepadFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + static abstract Ptr GetGamepadFromPlayerIndex(int player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + static abstract SDL_Gamepad* GetGamepadFromPlayerIndexRaw(int player_index); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceGuid")] + static abstract Guid GetGamepadInstanceGuid( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceID")] + static abstract uint GetGamepadInstanceID(SDL_Gamepad* gamepad); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] + static abstract uint GetGamepadInstanceID(Ref 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 = "GetGamepadInstancePlayerIndex")] + static abstract int GetGamepadInstancePlayerIndex( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceProduct")] + static abstract ushort GetGamepadInstanceProduct( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceProductVersion")] + static abstract ushort GetGamepadInstanceProductVersion( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceType")] + static abstract GamepadType GetGamepadInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceVendor")] + static abstract ushort GetGamepadInstanceVendor( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadJoystick")] + static abstract SDL_Joystick* GetGamepadJoystick(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] + static abstract Ptr GetGamepadJoystick(Ref gamepad); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMapping")] + static abstract sbyte* GetGamepadMapping(SDL_Gamepad* gamepad); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] + static abstract Ptr GetGamepadMapping(Ref gamepad); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + static abstract Ptr GetGamepadMappingForGuid( + [NativeTypeName("SDL_JoystickGUID")] Guid guid + ); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + static abstract sbyte* GetGamepadMappingForGuidRaw( + [NativeTypeName("SDL_JoystickGUID")] Guid guid + ); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMappings")] + static abstract sbyte** GetGamepadMappings(int* count); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappings")] + static abstract Ptr2D GetGamepadMappings(Ref count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadName")] + static abstract sbyte* GetGamepadName(SDL_Gamepad* gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] + static abstract Ptr GetGamepadName(Ref gamepad); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadPath")] + static abstract sbyte* GetGamepadPath(SDL_Gamepad* gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] + static abstract Ptr GetGamepadPath(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPlayerIndex")] + static abstract int GetGamepadPlayerIndex(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndex")] + static abstract int GetGamepadPlayerIndex(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPowerInfo")] + static abstract PowerState GetGamepadPowerInfo(SDL_Gamepad* gamepad, int* percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] + static abstract PowerState GetGamepadPowerInfo(Ref gamepad, Ref percent); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProduct")] + static abstract ushort GetGamepadProduct(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProduct")] + static abstract ushort GetGamepadProduct(Ref gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProductVersion")] + static abstract ushort GetGamepadProductVersion(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] + static abstract ushort GetGamepadProductVersion(Ref gamepad); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProperties")] + static abstract uint GetGamepadProperties(SDL_Gamepad* gamepad); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] + static abstract uint GetGamepadProperties(Ref gamepad); + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepads")] + static abstract uint* GetGamepads(int* count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepads")] + static abstract Ptr GetGamepads(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorData")] + static abstract int GetGamepadSensorData( + SDL_Gamepad* gamepad, + SensorType type, + float* data, + int num_values + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] + static abstract int GetGamepadSensorData( + Ref gamepad, + SensorType type, + Ref data, + int num_values + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorDataRate")] + static abstract float GetGamepadSensorDataRate(SDL_Gamepad* gamepad, SensorType type); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorDataRate")] + static abstract float GetGamepadSensorDataRate(Ref gamepad, SensorType type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSerial")] + static abstract sbyte* GetGamepadSerial(SDL_Gamepad* gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSerial")] + static abstract Ptr GetGamepadSerial(Ref gamepad); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSteamHandle")] + static abstract ulong GetGamepadSteamHandle(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSteamHandle")] + static abstract ulong GetGamepadSteamHandle(Ref gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + static abstract Ptr GetGamepadStringForAxis(GamepadAxis axis); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + static abstract sbyte* GetGamepadStringForAxisRaw(GamepadAxis axis); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + static abstract Ptr GetGamepadStringForButton(GamepadButton button); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + static abstract sbyte* GetGamepadStringForButtonRaw(GamepadButton button); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + static abstract Ptr GetGamepadStringForType(GamepadType type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + static abstract sbyte* GetGamepadStringForTypeRaw(GamepadType type); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTouchpadFinger")] + static abstract int GetGamepadTouchpadFinger( + SDL_Gamepad* gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] byte* state, + float* x, + float* y, + float* pressure + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] + static abstract int GetGamepadTouchpadFinger( + Ref gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] Ref state, + Ref x, + Ref y, + Ref pressure + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadType")] + static abstract GamepadType GetGamepadType(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] + static abstract GamepadType GetGamepadType(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTypeFromString")] + static abstract GamepadType GetGamepadTypeFromString( + [NativeTypeName("const char *")] sbyte* str + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] + static abstract GamepadType GetGamepadTypeFromString( + [NativeTypeName("const char *")] Ref str + ); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadVendor")] + static abstract ushort GetGamepadVendor(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendor")] + static abstract ushort GetGamepadVendor(Ref gamepad); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalMouseState")] + static abstract uint GetGlobalMouseState(float* x, float* y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] + static abstract uint GetGlobalMouseState(Ref x, Ref y); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalProperties")] + static abstract uint GetGlobalProperties(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + static abstract Ptr GetGrabbedWindow(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + static abstract SDL_Window* GetGrabbedWindowRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetHapticEffectStatus")] + static abstract int GetHapticEffectStatus(SDL_Haptic* haptic, int effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + static abstract int GetHapticEffectStatus(Ref haptic, int effect); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetHapticFeatures")] + static abstract uint GetHapticFeatures(SDL_Haptic* haptic); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] + static abstract uint GetHapticFeatures(Ref haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + static abstract Ptr GetHapticFromInstanceID( + [NativeTypeName("SDL_HapticID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + static abstract SDL_Haptic* GetHapticFromInstanceIDRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ); + + [return: NativeTypeName("SDL_HapticID")] + [NativeFunction("SDL3", EntryPoint = "GetHapticInstanceID")] + static abstract uint GetHapticInstanceID(SDL_Haptic* haptic); + + [return: NativeTypeName("SDL_HapticID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] + static abstract uint GetHapticInstanceID(Ref haptic); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + static abstract Ptr GetHapticInstanceName( + [NativeTypeName("SDL_HapticID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + static abstract sbyte* GetHapticInstanceNameRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHapticName")] + static abstract sbyte* GetHapticName(SDL_Haptic* haptic); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + static abstract Ptr GetHapticName(Ref haptic); + + [return: NativeTypeName("SDL_HapticID *")] + [NativeFunction("SDL3", EntryPoint = "GetHaptics")] + static abstract uint* GetHaptics(int* count); + + [return: NativeTypeName("SDL_HapticID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHaptics")] + static abstract Ptr GetHaptics(Ref count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHint")] + static abstract sbyte* GetHint([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHint")] + static abstract Ptr GetHint([NativeTypeName("const char *")] Ref name); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetHintBoolean")] + static abstract int GetHintBoolean( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] + static abstract MaybeBool GetHintBoolean( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetIOProperties")] + static abstract uint GetIOProperties(SDL_IOStream* context); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOProperties")] + static abstract uint GetIOProperties(Ref context); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetIOSize")] + static abstract long GetIOSize(SDL_IOStream* context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOSize")] + static abstract long GetIOSize(Ref context); + + [NativeFunction("SDL3", EntryPoint = "GetIOStatus")] + static abstract IOStatus GetIOStatus(SDL_IOStream* context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOStatus")] + static abstract IOStatus GetIOStatus(Ref context); + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxis")] + static abstract short GetJoystickAxis(SDL_Joystick* joystick, int axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxis")] + static abstract short GetJoystickAxis(Ref joystick, int axis); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxisInitialState")] + static abstract int GetJoystickAxisInitialState( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16 *")] short* state + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] + static abstract MaybeBool GetJoystickAxisInitialState( + Ref joystick, + int axis, + [NativeTypeName("Sint16 *")] Ref state + ); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickBall")] + static abstract int GetJoystickBall(SDL_Joystick* joystick, int ball, int* dx, int* dy); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] + static abstract int GetJoystickBall( + Ref joystick, + int ball, + Ref dx, + Ref dy + ); + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickButton")] + static abstract byte GetJoystickButton(SDL_Joystick* joystick, int button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + static abstract byte GetJoystickButton(Ref joystick, int button); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickConnectionState")] + static abstract JoystickConnectionState GetJoystickConnectionState(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] + static abstract JoystickConnectionState GetJoystickConnectionState( + Ref joystick + ); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickFirmwareVersion")] + static abstract ushort GetJoystickFirmwareVersion(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFirmwareVersion")] + static abstract ushort GetJoystickFirmwareVersion(Ref joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + static abstract Ptr GetJoystickFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + static abstract SDL_Joystick* GetJoystickFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + static abstract Ptr GetJoystickFromPlayerIndex(int player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + static abstract SDL_Joystick* GetJoystickFromPlayerIndexRaw(int player_index); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickGuid")] + static abstract Guid GetJoystickGuid(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_JoystickGUID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] + static abstract Guid GetJoystickGuid(Ref joystick); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickGuidInfo")] + static abstract void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] ushort* vendor, + [NativeTypeName("Uint16 *")] ushort* product, + [NativeTypeName("Uint16 *")] ushort* version, + [NativeTypeName("Uint16 *")] ushort* crc16 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] + static abstract void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] Ref vendor, + [NativeTypeName("Uint16 *")] Ref product, + [NativeTypeName("Uint16 *")] Ref version, + [NativeTypeName("Uint16 *")] Ref crc16 + ); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickHat")] + static abstract byte GetJoystickHat(SDL_Joystick* joystick, int hat); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] + static abstract byte GetJoystickHat(Ref joystick, int hat); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceGuid")] + static abstract Guid GetJoystickInstanceGuid( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceID")] + static abstract uint GetJoystickInstanceID(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] + static abstract uint GetJoystickInstanceID(Ref 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 + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + static abstract Ptr GetJoystickInstancePath( + [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 = "GetJoystickInstancePlayerIndex")] + static abstract int GetJoystickInstancePlayerIndex( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceProduct")] + static abstract ushort GetJoystickInstanceProduct( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceProductVersion")] + static abstract ushort GetJoystickInstanceProductVersion( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceType")] + static abstract JoystickType GetJoystickInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceVendor")] + static abstract ushort GetJoystickInstanceVendor( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickName")] + static abstract sbyte* GetJoystickName(SDL_Joystick* joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + static abstract Ptr GetJoystickName(Ref joystick); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickPath")] + static abstract sbyte* GetJoystickPath(SDL_Joystick* joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] + static abstract Ptr GetJoystickPath(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPlayerIndex")] + static abstract int GetJoystickPlayerIndex(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndex")] + static abstract int GetJoystickPlayerIndex(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPowerInfo")] + static abstract PowerState GetJoystickPowerInfo(SDL_Joystick* joystick, int* percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] + static abstract PowerState GetJoystickPowerInfo( + Ref joystick, + Ref percent + ); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProduct")] + static abstract ushort GetJoystickProduct(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProduct")] + static abstract ushort GetJoystickProduct(Ref joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProductVersion")] + static abstract ushort GetJoystickProductVersion(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] + static abstract ushort GetJoystickProductVersion(Ref joystick); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProperties")] + static abstract uint GetJoystickProperties(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] + static abstract uint GetJoystickProperties(Ref joystick); + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetJoysticks")] + static abstract uint* GetJoysticks(int* count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoysticks")] + static abstract Ptr GetJoysticks(Ref count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickSerial")] + static abstract sbyte* GetJoystickSerial(SDL_Joystick* joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickSerial")] + static abstract Ptr GetJoystickSerial(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickType")] + static abstract JoystickType GetJoystickType(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickType")] + static abstract JoystickType GetJoystickType(Ref joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickVendor")] + static abstract ushort GetJoystickVendor(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] + static abstract ushort GetJoystickVendor(Ref joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + static abstract Ptr GetKeyboardFocus(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + static abstract SDL_Window* GetKeyboardFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + static abstract Ptr GetKeyboardInstanceName( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + static abstract sbyte* GetKeyboardInstanceNameRaw( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ); + + [return: NativeTypeName("SDL_KeyboardID *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboards")] + static abstract uint* GetKeyboards(int* count); + + [return: NativeTypeName("SDL_KeyboardID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] + static abstract Ptr GetKeyboards(Ref count); + + [return: NativeTypeName("const Uint8 *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboardState")] + static abstract byte* GetKeyboardState(int* numkeys); + + [return: NativeTypeName("const Uint8 *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] + static abstract Ptr GetKeyboardState(Ref numkeys); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromName")] + static abstract int 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); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromScancode")] + static abstract int GetKeyFromScancode(Scancode scancode); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] + static abstract Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] + static abstract sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key); + + [NativeFunction("SDL3", EntryPoint = "GetLogOutputFunction")] + static abstract void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + void** userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] + static abstract void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + Ref2D userdata + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetMasksForPixelFormatEnum")] + static abstract int GetMasksForPixelFormatEnum( + PixelFormatEnum format, + int* bpp, + [NativeTypeName("Uint32 *")] uint* Rmask, + [NativeTypeName("Uint32 *")] uint* Gmask, + [NativeTypeName("Uint32 *")] uint* Bmask, + [NativeTypeName("Uint32 *")] uint* Amask + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + static abstract MaybeBool GetMasksForPixelFormatEnum( + PixelFormatEnum format, + Ref bpp, + [NativeTypeName("Uint32 *")] Ref Rmask, + [NativeTypeName("Uint32 *")] Ref Gmask, + [NativeTypeName("Uint32 *")] Ref Bmask, + [NativeTypeName("Uint32 *")] Ref Amask + ); + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffects")] + static abstract int GetMaxHapticEffects(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffects")] + static abstract int GetMaxHapticEffects(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffectsPlaying")] + static abstract int GetMaxHapticEffectsPlaying(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffectsPlaying")] + static abstract int GetMaxHapticEffectsPlaying(Ref haptic); + + [return: NativeTypeName("SDL_MouseID *")] + [NativeFunction("SDL3", EntryPoint = "GetMice")] + static abstract uint* GetMice(int* count); + + [return: NativeTypeName("SDL_MouseID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMice")] + static abstract Ptr GetMice(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetModState")] + static abstract Keymod GetModState(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + static abstract Ptr GetMouseFocus(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + static abstract SDL_Window* GetMouseFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + static abstract Ptr GetMouseInstanceName( + [NativeTypeName("SDL_MouseID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + static abstract sbyte* GetMouseInstanceNameRaw( + [NativeTypeName("SDL_MouseID")] uint instance_id + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetMouseState")] + static abstract uint GetMouseState(float* x, float* y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] + static abstract uint GetMouseState(Ref x, Ref y); + + [NativeFunction("SDL3", EntryPoint = "GetNaturalDisplayOrientation")] + static abstract DisplayOrientation GetNaturalDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [NativeFunction("SDL3", EntryPoint = "GetNumAudioDrivers")] + static abstract int GetNumAudioDrivers(); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetNumberProperty")] + static abstract long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long default_value + ); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumberProperty")] + static abstract long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long default_value + ); + + [NativeFunction("SDL3", EntryPoint = "GetNumCameraDrivers")] + static abstract int GetNumCameraDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpadFingers")] + static abstract int GetNumGamepadTouchpadFingers(SDL_Gamepad* gamepad, int touchpad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpadFingers")] + static abstract int GetNumGamepadTouchpadFingers(Ref gamepad, int touchpad); + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpads")] + static abstract int GetNumGamepadTouchpads(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpads")] + static abstract int GetNumGamepadTouchpads(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetNumHapticAxes")] + static abstract int GetNumHapticAxes(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumHapticAxes")] + static abstract int GetNumHapticAxes(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickAxes")] + static abstract int GetNumJoystickAxes(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickAxes")] + static abstract int GetNumJoystickAxes(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickBalls")] + static abstract int GetNumJoystickBalls(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickBalls")] + static abstract int GetNumJoystickBalls(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickButtons")] + static abstract int GetNumJoystickButtons(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickButtons")] + static abstract int GetNumJoystickButtons(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickHats")] + static abstract int GetNumJoystickHats(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickHats")] + static abstract int GetNumJoystickHats(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumRenderDrivers")] + static abstract int GetNumRenderDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetNumVideoDrivers")] + static abstract int GetNumVideoDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetPathInfo")] + static abstract int GetPathInfo( + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] + static abstract int GetPathInfo( + [NativeTypeName("const char *")] Ref path, + Ref info + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "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 = "GetPenFromGuid")] + static abstract uint GetPenFromGuid(Guid guid); + + [NativeFunction("SDL3", EntryPoint = "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 = "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 = "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 = "GetPenType")] + static abstract PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceCounter")] + static abstract ulong GetPerformanceCounter(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceFrequency")] + static abstract ulong GetPerformanceFrequency(); + + [NativeFunction("SDL3", EntryPoint = "GetPixelFormatEnumForMasks")] + static abstract PixelFormatEnum GetPixelFormatEnumForMasks( + int bpp, + [NativeTypeName("Uint32")] uint Rmask, + [NativeTypeName("Uint32")] uint Gmask, + [NativeTypeName("Uint32")] uint Bmask, + [NativeTypeName("Uint32")] uint Amask + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] + static abstract Ptr GetPixelFormatName(PixelFormatEnum format); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] + static abstract sbyte* GetPixelFormatNameRaw(PixelFormatEnum format); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + static abstract Ptr GetPlatform(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + static abstract sbyte* GetPlatformRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetPowerInfo")] + static abstract PowerState GetPowerInfo(int* seconds, int* percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] + static abstract PowerState GetPowerInfo(Ref seconds, Ref percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] + static abstract Ptr GetPreferredLocales(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] + static abstract Locale* GetPreferredLocalesRaw(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "GetPrefPath")] + static abstract sbyte* GetPrefPath( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app + ); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] + static abstract Ptr GetPrefPath( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app + ); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetPrimaryDisplay")] + static abstract uint GetPrimaryDisplay(); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + static abstract Ptr GetPrimarySelectionText(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + static abstract sbyte* GetPrimarySelectionTextRaw(); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetPropertyType")] + static abstract PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] + static abstract PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ); + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadInstanceType")] + static abstract GamepadType GetRealGamepadInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadType")] + static abstract GamepadType GetRealGamepadType(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] + static abstract GamepadType GetRealGamepadType(Ref gamepad); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersection")] + static abstract int GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int* X1, + int* Y1, + int* X2, + int* Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] + static abstract MaybeBool GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersectionFloat")] + static abstract int GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* rect, + float* X1, + float* Y1, + float* X2, + float* Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] + static abstract MaybeBool GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPoints")] + static abstract int GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Point* points, + int count, + [NativeTypeName("const SDL_Rect *")] Rect* clip, + Rect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_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")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPointsFloat")] + static abstract int GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count, + [NativeTypeName("const SDL_FRect *")] FRect* clip, + FRect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_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")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersection")] + static abstract int GetRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] + static abstract MaybeBool GetRectIntersection( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersectionFloat")] + static abstract int GetRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] + static abstract MaybeBool GetRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B, + Ref result + ); + + [NativeFunction("SDL3", EntryPoint = "GetRectUnion")] + static abstract int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] + static abstract int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ); + + [NativeFunction("SDL3", EntryPoint = "GetRectUnionFloat")] + static abstract int GetRectUnionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] + static abstract int 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")] + [NativeFunction("SDL3", EntryPoint = "GetRelativeMouseState")] + static abstract uint GetRelativeMouseState(float* x, float* y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] + static abstract uint GetRelativeMouseState(Ref x, Ref y); + + [NativeFunction("SDL3", EntryPoint = "GetRenderClipRect")] + static abstract int GetRenderClipRect(SDL_Renderer* renderer, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] + static abstract int GetRenderClipRect(Ref renderer, Ref rect); + + [NativeFunction("SDL3", EntryPoint = "GetRenderColorScale")] + static abstract int GetRenderColorScale(SDL_Renderer* renderer, float* scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] + static abstract int GetRenderColorScale(Ref renderer, Ref scale); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawBlendMode")] + static abstract int GetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode* blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] + static abstract int GetRenderDrawBlendMode( + Ref renderer, + Ref blendMode + ); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColor")] + static abstract int GetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] + static abstract int GetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColorFloat")] + static abstract int GetRenderDrawColorFloat( + SDL_Renderer* renderer, + float* r, + float* g, + float* b, + float* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] + static abstract int GetRenderDrawColorFloat( + Ref renderer, + Ref r, + Ref g, + Ref b, + Ref a + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + static abstract Ptr GetRenderDriver(int index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + static abstract sbyte* GetRenderDriverRaw(int index); + + [NativeFunction("SDL3", EntryPoint = "GetRenderer")] + static abstract SDL_Renderer* GetRenderer(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderer")] + static abstract Ptr GetRenderer(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetRendererFromTexture")] + static abstract SDL_Renderer* GetRendererFromTexture(SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] + static abstract Ptr GetRendererFromTexture(Ref texture); + + [NativeFunction("SDL3", EntryPoint = "GetRendererInfo")] + static abstract int GetRendererInfo(SDL_Renderer* renderer, RendererInfo* info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + static abstract int GetRendererInfo(Ref renderer, Ref info); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetRendererProperties")] + static abstract uint GetRendererProperties(SDL_Renderer* renderer); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] + static abstract uint GetRendererProperties(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderLogicalPresentation")] + static abstract int GetRenderLogicalPresentation( + SDL_Renderer* renderer, + int* w, + int* h, + RendererLogicalPresentation* mode, + ScaleMode* scale_mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] + static abstract int GetRenderLogicalPresentation( + Ref renderer, + Ref w, + Ref h, + Ref mode, + Ref scale_mode + ); + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalCommandEncoder")] + static abstract void* GetRenderMetalCommandEncoder(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalCommandEncoder")] + static abstract Ptr GetRenderMetalCommandEncoder(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalLayer")] + static abstract void* GetRenderMetalLayer(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalLayer")] + static abstract Ptr GetRenderMetalLayer(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderOutputSize")] + static abstract int GetRenderOutputSize(SDL_Renderer* renderer, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] + static abstract int GetRenderOutputSize(Ref renderer, Ref w, Ref h); + + [NativeFunction("SDL3", EntryPoint = "GetRenderScale")] + static abstract int GetRenderScale(SDL_Renderer* renderer, float* scaleX, float* scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] + static abstract int GetRenderScale( + Ref renderer, + Ref scaleX, + Ref scaleY + ); + + [NativeFunction("SDL3", EntryPoint = "GetRenderTarget")] + static abstract SDL_Texture* GetRenderTarget(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + static abstract Ptr GetRenderTarget(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderViewport")] + static abstract int GetRenderViewport(SDL_Renderer* renderer, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] + static abstract int GetRenderViewport(Ref renderer, Ref rect); + + [NativeFunction("SDL3", EntryPoint = "GetRenderVSync")] + static abstract int GetRenderVSync(SDL_Renderer* renderer, int* vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] + static abstract int GetRenderVSync(Ref renderer, Ref vsync); + + [NativeFunction("SDL3", EntryPoint = "GetRenderWindow")] + static abstract SDL_Window* GetRenderWindow(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] + static abstract Ptr GetRenderWindow(Ref renderer); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + static abstract Ptr GetRevision(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + static abstract sbyte* GetRevisionRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetRGB")] + static abstract void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] + static abstract void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ); + + [NativeFunction("SDL3", EntryPoint = "GetRgba")] + static abstract void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] + static abstract void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ); + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromKey")] + static abstract Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key); + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromName")] + static abstract Scancode GetScancodeFromName([NativeTypeName("const char *")] sbyte* name); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] + static abstract Scancode GetScancodeFromName( + [NativeTypeName("const char *")] Ref name + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + static abstract Ptr GetScancodeName(Scancode scancode); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + static abstract sbyte* GetScancodeNameRaw(Scancode scancode); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetSemaphoreValue")] + static abstract uint GetSemaphoreValue(SDL_Semaphore* sem); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSemaphoreValue")] + static abstract uint GetSemaphoreValue(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "GetSensorData")] + static abstract int GetSensorData(SDL_Sensor* sensor, float* data, int num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] + static abstract int GetSensorData(Ref sensor, Ref data, int num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + static abstract Ptr GetSensorFromInstanceID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + static abstract SDL_Sensor* GetSensorFromInstanceIDRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [return: NativeTypeName("SDL_SensorID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceID")] + static abstract uint GetSensorInstanceID(SDL_Sensor* sensor); + + [return: NativeTypeName("SDL_SensorID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] + static abstract uint GetSensorInstanceID(Ref sensor); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + static abstract Ptr GetSensorInstanceName( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + static abstract sbyte* GetSensorInstanceNameRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceNonPortableType")] + static abstract int GetSensorInstanceNonPortableType( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceType")] + static abstract SensorType GetSensorInstanceType( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetSensorName")] + static abstract sbyte* GetSensorName(SDL_Sensor* sensor); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + static abstract Ptr GetSensorName(Ref sensor); + + [NativeFunction("SDL3", EntryPoint = "GetSensorNonPortableType")] + static abstract int GetSensorNonPortableType(SDL_Sensor* sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableType")] + static abstract int GetSensorNonPortableType(Ref sensor); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorProperties")] + static abstract uint GetSensorProperties(SDL_Sensor* sensor); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] + static abstract uint GetSensorProperties(Ref sensor); + + [return: NativeTypeName("SDL_SensorID *")] + [NativeFunction("SDL3", EntryPoint = "GetSensors")] + static abstract uint* GetSensors(int* count); + + [return: NativeTypeName("SDL_SensorID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensors")] + static abstract Ptr GetSensors(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetSensorType")] + static abstract SensorType GetSensorType(SDL_Sensor* sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorType")] + static abstract SensorType GetSensorType(Ref sensor); + + [NativeFunction("SDL3", EntryPoint = "GetSilenceValueForFormat")] + static abstract int GetSilenceValueForFormat( + [NativeTypeName("SDL_AudioFormat")] ushort format + ); + + [NativeFunction("SDL3", EntryPoint = "GetStorageFileSize")] + static abstract int GetStorageFileSize( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("Uint64 *")] ulong* length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] + static abstract int GetStorageFileSize( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("Uint64 *")] Ref length + ); + + [NativeFunction("SDL3", EntryPoint = "GetStoragePathInfo")] + static abstract int GetStoragePathInfo( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] + static abstract int GetStoragePathInfo( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref info + ); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetStorageSpaceRemaining")] + static abstract ulong GetStorageSpaceRemaining(SDL_Storage* storage); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageSpaceRemaining")] + static abstract ulong GetStorageSpaceRemaining(Ref storage); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetStringProperty")] + static abstract sbyte* GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* default_value + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStringProperty")] + static abstract Ptr GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref default_value + ); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceAlphaMod")] + static abstract int GetSurfaceAlphaMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* alpha + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] + static abstract int GetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref alpha + ); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceBlendMode")] + static abstract int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] + static abstract int GetSurfaceBlendMode(Ref surface, Ref blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceClipRect")] + static abstract int GetSurfaceClipRect(Surface* surface, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] + static abstract int GetSurfaceClipRect(Ref surface, Ref rect); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorKey")] + static abstract int GetSurfaceColorKey( + Surface* surface, + [NativeTypeName("Uint32 *")] uint* key + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] + static abstract int GetSurfaceColorKey( + Ref surface, + [NativeTypeName("Uint32 *")] Ref key + ); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorMod")] + static abstract int GetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] + static abstract int GetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorspace")] + static abstract int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] + static abstract int GetSurfaceColorspace(Ref surface, Ref colorspace); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSurfaceProperties")] + static abstract uint GetSurfaceProperties(Surface* surface); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] + static abstract uint GetSurfaceProperties(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "GetSystemRAM")] + static abstract int GetSystemRAM(); + + [NativeFunction("SDL3", EntryPoint = "GetSystemTheme")] + static abstract SystemTheme GetSystemTheme(); + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaMod")] + static abstract int GetTextureAlphaMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* alpha + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] + static abstract int GetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref alpha + ); + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaModFloat")] + static abstract int GetTextureAlphaModFloat(SDL_Texture* texture, float* alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] + static abstract int GetTextureAlphaModFloat(Ref texture, Ref alpha); + + [NativeFunction("SDL3", EntryPoint = "GetTextureBlendMode")] + static abstract int GetTextureBlendMode(SDL_Texture* texture, BlendMode* blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] + static abstract int GetTextureBlendMode(Ref texture, Ref blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorMod")] + static abstract int GetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] + static abstract int GetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ); + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorModFloat")] + static abstract int GetTextureColorModFloat( + SDL_Texture* texture, + float* r, + float* g, + float* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] + static abstract int GetTextureColorModFloat( + Ref texture, + Ref r, + Ref g, + Ref b + ); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetTextureProperties")] + static abstract uint GetTextureProperties(SDL_Texture* texture); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] + static abstract uint GetTextureProperties(Ref texture); + + [NativeFunction("SDL3", EntryPoint = "GetTextureScaleMode")] + static abstract int GetTextureScaleMode(SDL_Texture* texture, ScaleMode* scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] + static abstract int GetTextureScaleMode(Ref texture, Ref scaleMode); + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetThreadID")] + static abstract ulong GetThreadID(SDL_Thread* thread); + + [return: NativeTypeName("SDL_ThreadID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadID")] + static abstract ulong GetThreadID(Ref thread); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetThreadName")] + static abstract sbyte* GetThreadName(SDL_Thread* thread); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadName")] + static abstract Ptr GetThreadName(Ref thread); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicks")] + static abstract ulong GetTicks(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicksNS")] + static abstract ulong GetTicksNS(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] + static abstract Ptr GetTLS([NativeTypeName("SDL_TLSID")] uint id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] + static abstract void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + static abstract Ptr GetTouchDeviceName( + [NativeTypeName("SDL_TouchID")] ulong touchID + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + static abstract sbyte* GetTouchDeviceNameRaw([NativeTypeName("SDL_TouchID")] ulong touchID); + + [return: NativeTypeName("SDL_TouchID *")] + [NativeFunction("SDL3", EntryPoint = "GetTouchDevices")] + static abstract ulong* GetTouchDevices(int* count); + + [return: NativeTypeName("SDL_TouchID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDevices")] + static abstract Ptr GetTouchDevices(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetTouchDeviceType")] + static abstract TouchDeviceType GetTouchDeviceType( + [NativeTypeName("SDL_TouchID")] ulong touchID + ); + + [NativeFunction("SDL3", EntryPoint = "GetTouchFingers")] + static abstract Finger** GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + int* count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchFingers")] + static abstract Ptr2D GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + Ref count + ); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + static abstract Ptr GetUserFolder(Folder folder); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + static abstract sbyte* GetUserFolderRaw(Folder folder); + + [NativeFunction("SDL3", EntryPoint = "GetVersion")] + static abstract int GetVersion(Version* ver); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] + static abstract int GetVersion(Ref ver); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + static abstract Ptr GetVideoDriver(int index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + static abstract sbyte* GetVideoDriverRaw(int index); + + [NativeFunction("SDL3", EntryPoint = "GetWindowBordersSize")] + static abstract int GetWindowBordersSize( + SDL_Window* window, + int* top, + int* left, + int* bottom, + int* right + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] + static abstract int GetWindowBordersSize( + Ref window, + Ref top, + Ref left, + Ref bottom, + Ref right + ); + + [NativeFunction("SDL3", EntryPoint = "GetWindowDisplayScale")] + static abstract float GetWindowDisplayScale(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowDisplayScale")] + static abstract float GetWindowDisplayScale(Ref window); + + [return: NativeTypeName("SDL_WindowFlags")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFlags")] + static abstract uint GetWindowFlags(SDL_Window* window); + + [return: NativeTypeName("SDL_WindowFlags")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFlags")] + static abstract uint GetWindowFlags(Ref window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + static abstract Ptr GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + static abstract SDL_Window* GetWindowFromIDRaw([NativeTypeName("SDL_WindowID")] uint id); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFullscreenMode")] + static abstract DisplayMode* GetWindowFullscreenMode(SDL_Window* window); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFullscreenMode")] + static abstract Ptr GetWindowFullscreenMode(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowICCProfile")] + static abstract void* GetWindowICCProfile( + SDL_Window* window, + [NativeTypeName("size_t *")] nuint* size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowICCProfile")] + static abstract Ptr GetWindowICCProfile( + Ref window, + [NativeTypeName("size_t *")] Ref size + ); + + [return: NativeTypeName("SDL_WindowID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowID")] + static abstract uint GetWindowID(SDL_Window* window); + + [return: NativeTypeName("SDL_WindowID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowID")] + static abstract uint GetWindowID(Ref window); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowKeyboardGrab")] + static abstract int GetWindowKeyboardGrab(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] + static abstract MaybeBool GetWindowKeyboardGrab(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowMaximumSize")] + static abstract int GetWindowMaximumSize(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] + static abstract int GetWindowMaximumSize(Ref window, Ref w, Ref h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowMinimumSize")] + static abstract int GetWindowMinimumSize(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] + static abstract int GetWindowMinimumSize(Ref window, Ref w, Ref h); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseGrab")] + static abstract int GetWindowMouseGrab(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] + static abstract MaybeBool GetWindowMouseGrab(Ref window); + + [return: NativeTypeName("const SDL_Rect *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseRect")] + static abstract Rect* GetWindowMouseRect(SDL_Window* window); + + [return: NativeTypeName("const SDL_Rect *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseRect")] + static abstract Ptr GetWindowMouseRect(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowOpacity")] + static abstract int GetWindowOpacity(SDL_Window* window, float* out_opacity); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] + static abstract int GetWindowOpacity(Ref window, Ref out_opacity); + + [NativeFunction("SDL3", EntryPoint = "GetWindowParent")] + static abstract SDL_Window* GetWindowParent(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] + static abstract Ptr GetWindowParent(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelDensity")] + static abstract float GetWindowPixelDensity(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelDensity")] + static abstract float GetWindowPixelDensity(Ref window); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelFormat")] + static abstract uint GetWindowPixelFormat(SDL_Window* window); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] + static abstract uint GetWindowPixelFormat(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowPosition")] + static abstract int GetWindowPosition(SDL_Window* window, int* x, int* y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] + static abstract int GetWindowPosition(Ref window, Ref x, Ref y); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowProperties")] + static abstract uint GetWindowProperties(SDL_Window* window); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] + static abstract uint GetWindowProperties(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSize")] + static abstract int GetWindowSize(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] + static abstract int GetWindowSize(Ref window, Ref w, Ref h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSizeInPixels")] + static abstract int GetWindowSizeInPixels(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] + static abstract int GetWindowSizeInPixels(Ref window, Ref w, Ref h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSurface")] + static abstract Surface* GetWindowSurface(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] + static abstract Ptr GetWindowSurface(Ref window); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowTitle")] + static abstract sbyte* GetWindowTitle(SDL_Window* window); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] + static abstract Ptr GetWindowTitle(Ref window); + + [return: NativeTypeName("SDL_GLContext")] + [NativeFunction("SDL3", EntryPoint = "GLCreateContext")] + static abstract void* GLCreateContext(SDL_Window* window); + + [return: NativeTypeName("SDL_GLContext")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] + static abstract Ptr GLCreateContext(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GLDeleteContext")] + static abstract int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + static abstract int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GLExtensionSupported")] + static abstract int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] + static abstract MaybeBool GLExtensionSupported( + [NativeTypeName("const char *")] Ref extension + ); + + [NativeFunction("SDL3", EntryPoint = "GLGetAttribute")] + static abstract int GLGetAttribute(GLattr attr, int* value); + + [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(); + + [return: NativeTypeName("SDL_GLContext")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] + static abstract void* GLGetCurrentContextRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + static abstract Ptr GLGetCurrentWindow(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + static abstract SDL_Window* GLGetCurrentWindowRaw(); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "GLGetProcAddress")] + static abstract delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetProcAddress")] + static abstract delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ); + + [NativeFunction("SDL3", EntryPoint = "GLGetSwapInterval")] + static abstract int GLGetSwapInterval(int* interval); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] + static abstract int GLGetSwapInterval(Ref interval); + + [NativeFunction("SDL3", EntryPoint = "GLLoadLibrary")] + static abstract int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] + static abstract int GLLoadLibrary([NativeTypeName("const char *")] Ref path); + + [NativeFunction("SDL3", EntryPoint = "GLMakeCurrent")] + static abstract int GLMakeCurrent( + SDL_Window* window, + [NativeTypeName("SDL_GLContext")] void* context + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] + static abstract int GLMakeCurrent( + Ref window, + [NativeTypeName("SDL_GLContext")] Ref context + ); + + [NativeFunction("SDL3", EntryPoint = "GLResetAttributes")] + static abstract void GLResetAttributes(); + + [NativeFunction("SDL3", EntryPoint = "GLSetAttribute")] + static abstract int GLSetAttribute(GLattr attr, int value); + + [NativeFunction("SDL3", EntryPoint = "GLSetSwapInterval")] + static abstract int GLSetSwapInterval(int interval); + + [NativeFunction("SDL3", EntryPoint = "GLSwapWindow")] + static abstract int GLSwapWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + static abstract int GLSwapWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GLUnloadLibrary")] + static abstract void GLUnloadLibrary(); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobDirectory")] + static abstract sbyte** GlobDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobDirectory")] + static abstract Ptr2D GlobDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobStorageDirectory")] + static abstract sbyte** GlobStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobStorageDirectory")] + static abstract Ptr2D GlobStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ); + + [NativeFunction("SDL3", EntryPoint = "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 = "GuidToString")] + static abstract int GuidToString( + Guid guid, + [NativeTypeName("char *")] sbyte* pszGUID, + int cbGUID + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] + static abstract int GuidToString( + Guid guid, + [NativeTypeName("char *")] Ref pszGUID, + int cbGUID + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticEffectSupported")] + static abstract int HapticEffectSupported( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] + static abstract MaybeBool HapticEffectSupported( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticRumbleSupported")] + static abstract int HapticRumbleSupported(SDL_Haptic* haptic); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] + static abstract MaybeBool HapticRumbleSupported(Ref haptic); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + static abstract MaybeBool HasAltiVec(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + static abstract int HasAltiVecRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + static abstract MaybeBool HasArmsimd(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + static abstract int HasArmsimdRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + static abstract MaybeBool HasAVX(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + static abstract MaybeBool HasAVX2(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + static abstract int HasAVX2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + static abstract MaybeBool HasAVX512F(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + static abstract int HasAVX512FRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + static abstract int HasAVXRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasClipboardData")] + static abstract int HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] + static abstract MaybeBool HasClipboardData( + [NativeTypeName("const char *")] Ref mime_type + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + static abstract MaybeBool HasClipboardText(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + static abstract int HasClipboardTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + static abstract MaybeBool HasEvent([NativeTypeName("Uint32")] uint type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + static abstract int HasEventRaw([NativeTypeName("Uint32")] uint type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + static abstract MaybeBool HasEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + static abstract int HasEventsRaw( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + static abstract MaybeBool HasGamepad(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + static abstract int HasGamepadRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + static abstract MaybeBool HasJoystick(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + static abstract int HasJoystickRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + static abstract MaybeBool HasKeyboard(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + static abstract int HasKeyboardRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + static abstract MaybeBool HasLasx(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + static abstract int HasLasxRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + static abstract MaybeBool HasLSX(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + static abstract int HasLSXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + static abstract MaybeBool HasMMX(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + static abstract int HasMMXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + static abstract MaybeBool HasMouse(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + static abstract int HasMouseRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + static abstract MaybeBool HasNeon(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + static abstract int HasNeonRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + static abstract MaybeBool HasPrimarySelectionText(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + static abstract int HasPrimarySelectionTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasProperty")] + static abstract int HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] + static abstract MaybeBool HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersection")] + static abstract int HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] + static abstract MaybeBool HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersectionFloat")] + static abstract int HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] + static abstract MaybeBool HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + static abstract MaybeBool HasScreenKeyboardSupport(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + static abstract int HasScreenKeyboardSupportRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + static abstract MaybeBool HasSSE(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + static abstract MaybeBool HasSSE2(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + static abstract int HasSSE2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + static abstract MaybeBool HasSSE3(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + static abstract int HasSSE3Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + static abstract MaybeBool HasSSE41(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + static abstract int HasSSE41Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + static abstract MaybeBool HasSSE42(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + static abstract int HasSSE42Raw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + static abstract int HasSSERaw(); + + [NativeFunction("SDL3", EntryPoint = "HidBleScan")] + static abstract void HidBleScan([NativeTypeName("SDL_bool")] int active); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] + static abstract void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active); + + [NativeFunction("SDL3", EntryPoint = "HidClose")] + static abstract int HidClose(SDL_hid_device* dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] + static abstract int HidClose(Ref dev); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "HidDeviceChangeCount")] + static abstract uint HidDeviceChangeCount(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + static abstract Ptr HidEnumerate( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + static abstract HidDeviceInfo* HidEnumerateRaw( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ); + + [NativeFunction("SDL3", EntryPoint = "HidExit")] + static abstract int HidExit(); + + [NativeFunction("SDL3", EntryPoint = "HidFreeEnumeration")] + static abstract void HidFreeEnumeration(HidDeviceInfo* devs); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_free_enumeration")] + static abstract void HidFreeEnumeration(Ref devs); + + [NativeFunction("SDL3", EntryPoint = "HidGetDeviceInfo")] + static abstract HidDeviceInfo* HidGetDeviceInfo(SDL_hid_device* dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_device_info")] + static abstract Ptr HidGetDeviceInfo(Ref dev); + + [NativeFunction("SDL3", EntryPoint = "HidGetFeatureReport")] + static abstract int HidGetFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_feature_report")] + static abstract int HidGetFeatureReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetIndexedString")] + static abstract int HidGetIndexedString( + SDL_hid_device* dev, + int string_index, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_indexed_string")] + static abstract int HidGetIndexedString( + Ref dev, + int string_index, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetInputReport")] + static abstract int HidGetInputReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_input_report")] + static abstract int HidGetInputReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetManufacturerString")] + static abstract int HidGetManufacturerString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_manufacturer_string")] + static abstract int HidGetManufacturerString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetProductString")] + static abstract int HidGetProductString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_product_string")] + static abstract int HidGetProductString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetReportDescriptor")] + static abstract int HidGetReportDescriptor( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* buf, + [NativeTypeName("size_t")] nuint buf_size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] + static abstract int HidGetReportDescriptor( + Ref dev, + [NativeTypeName("unsigned char *")] Ref buf, + [NativeTypeName("size_t")] nuint buf_size + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetSerialNumberString")] + static abstract int HidGetSerialNumberString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_serial_number_string")] + static abstract int HidGetSerialNumberString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [NativeFunction("SDL3", EntryPoint = "HidInit")] + static abstract int HidInit(); + + [NativeFunction("SDL3", EntryPoint = "HidOpen")] + static abstract SDL_hid_device* HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] uint* serial_number + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open")] + static abstract Ptr HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] Ref serial_number + ); + + [NativeFunction("SDL3", EntryPoint = "HidOpenPath")] + static abstract SDL_hid_device* HidOpenPath([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open_path")] + static abstract Ptr HidOpenPath( + [NativeTypeName("const char *")] Ref path + ); + + [NativeFunction("SDL3", EntryPoint = "HidRead")] + static abstract int HidRead( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read")] + static abstract int HidRead( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HidReadTimeout")] + static abstract int HidReadTimeout( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read_timeout")] + static abstract int HidReadTimeout( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ); + + [NativeFunction("SDL3", EntryPoint = "HidSendFeatureReport")] + static abstract int HidSendFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_send_feature_report")] + static abstract int HidSendFeatureReport( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HidSetNonblocking")] + static abstract int HidSetNonblocking(SDL_hid_device* dev, int nonblock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_set_nonblocking")] + static abstract int HidSetNonblocking(Ref dev, int nonblock); + + [NativeFunction("SDL3", EntryPoint = "HidWrite")] + static abstract int HidWrite( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_write")] + static abstract int HidWrite( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HideCursor")] + static abstract int HideCursor(); + + [NativeFunction("SDL3", EntryPoint = "HideWindow")] + static abstract int HideWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + static abstract int HideWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "Init")] + static abstract int Init([NativeTypeName("Uint32")] uint flags); + + [NativeFunction("SDL3", EntryPoint = "InitHapticRumble")] + static abstract int InitHapticRumble(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + static abstract int InitHapticRumble(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "InitSubSystem")] + static abstract int InitSubSystem([NativeTypeName("Uint32")] uint flags); + + [NativeFunction("SDL3", EntryPoint = "IOFromConstMem")] + static abstract SDL_IOStream* IOFromConstMem( + [NativeTypeName("const void *")] void* mem, + [NativeTypeName("size_t")] nuint size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] + static abstract Ptr IOFromConstMem( + [NativeTypeName("const void *")] Ref mem, + [NativeTypeName("size_t")] nuint size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + static abstract Ptr IOFromDynamicMem(); + + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + static abstract SDL_IOStream* IOFromDynamicMemRaw(); + + [NativeFunction("SDL3", EntryPoint = "IOFromFile")] + static abstract SDL_IOStream* IOFromFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const char *")] sbyte* mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromFile")] + static abstract Ptr IOFromFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const char *")] Ref mode + ); + + [NativeFunction("SDL3", EntryPoint = "IOFromMem")] + static abstract SDL_IOStream* IOFromMem(void* mem, [NativeTypeName("size_t")] nuint size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromMem")] + static abstract Ptr IOFromMem(Ref mem, [NativeTypeName("size_t")] nuint size); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "IOvprintf")] + static abstract nuint IOvprintf( + SDL_IOStream* context, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOvprintf")] + static abstract nuint IOvprintf( + Ref context, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + static abstract MaybeBool IsGamepad( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + static abstract int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "IsJoystickHaptic")] + static abstract int IsJoystickHaptic(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] + static abstract MaybeBool IsJoystickHaptic(Ref joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + static abstract MaybeBool IsJoystickVirtual( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + static abstract int IsJoystickVirtualRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + static abstract MaybeBool IsMouseHaptic(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + static abstract int IsMouseHapticRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + static abstract MaybeBool IsTablet(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + static abstract int IsTabletRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "JoystickConnected")] + static abstract int JoystickConnected(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] + static abstract MaybeBool JoystickConnected(Ref joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + static abstract MaybeBool JoystickEventsEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + static abstract int JoystickEventsEnabledRaw(); + + [NativeFunction("SDL3", EntryPoint = "LoadBMP")] + static abstract Surface* LoadBMP([NativeTypeName("const char *")] sbyte* file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] + static abstract Ptr LoadBMP([NativeTypeName("const char *")] Ref file); + + [NativeFunction("SDL3", EntryPoint = "LoadBMPIO")] + static abstract Surface* LoadBMPIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] + static abstract Ptr LoadBMPIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ); + + [NativeFunction("SDL3", EntryPoint = "LoadFile")] + static abstract void* LoadFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("size_t *")] nuint* datasize + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] + static abstract Ptr LoadFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("size_t *")] Ref datasize + ); + + [NativeFunction("SDL3", EntryPoint = "LoadFileIO")] + static abstract void* LoadFileIO( + SDL_IOStream* src, + [NativeTypeName("size_t *")] nuint* datasize, + [NativeTypeName("SDL_bool")] int closeio + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile_IO")] + static abstract Ptr LoadFileIO( + Ref src, + [NativeTypeName("size_t *")] Ref datasize, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "LoadFunction")] + static abstract delegate* unmanaged LoadFunction( + void* handle, + [NativeTypeName("const char *")] sbyte* name + ); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] + static abstract delegate* unmanaged LoadFunction( + Ref handle, + [NativeTypeName("const char *")] Ref name + ); + + [NativeFunction("SDL3", EntryPoint = "LoadObject")] + static abstract void* LoadObject([NativeTypeName("const char *")] sbyte* sofile); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] + static abstract Ptr LoadObject([NativeTypeName("const char *")] Ref sofile); + + [NativeFunction("SDL3", EntryPoint = "LoadWAV")] + static abstract int LoadWAV( + [NativeTypeName("const char *")] sbyte* path, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] + static abstract int LoadWAV( + [NativeTypeName("const char *")] Ref path, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ); + + [NativeFunction("SDL3", EntryPoint = "LoadWAVIO")] + static abstract int LoadWAVIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] + static abstract int LoadWAVIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ); + + [NativeFunction("SDL3", EntryPoint = "LockAudioStream")] + static abstract int LockAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + static abstract int LockAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "LockJoysticks")] + static abstract void LockJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "LockMutex")] + static abstract void LockMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockMutex")] + static abstract void LockMutex(Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "LockProperties")] + static abstract int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForReading")] + static abstract void LockRWLockForReading(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] + static abstract void LockRWLockForReading(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForWriting")] + static abstract void LockRWLockForWriting(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForWriting")] + static abstract void LockRWLockForWriting(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "LockSpinlock")] + static abstract void LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSpinlock")] + static abstract void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock); + + [NativeFunction("SDL3", EntryPoint = "LockSurface")] + static abstract int LockSurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] + static abstract int LockSurface(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "LockTexture")] + static abstract int LockTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + void** pixels, + int* pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] + static abstract int LockTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D pixels, + Ref pitch + ); + + [NativeFunction("SDL3", EntryPoint = "LockTextureToSurface")] + static abstract int LockTextureToSurface( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + Surface** surface + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] + static abstract int LockTextureToSurface( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D surface + ); + + [NativeFunction("SDL3", EntryPoint = "LogGetPriority")] + static abstract LogPriority LogGetPriority(int category); + + [NativeFunction("SDL3", EntryPoint = "LogMessageV")] + static abstract void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] + static abstract void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ); + + [NativeFunction("SDL3", EntryPoint = "LogResetPriorities")] + static abstract void LogResetPriorities(); + + [NativeFunction("SDL3", EntryPoint = "LogSetAllPriority")] + static abstract void LogSetAllPriority(LogPriority priority); + + [NativeFunction("SDL3", EntryPoint = "LogSetPriority")] + static abstract void LogSetPriority(int category, LogPriority priority); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "MapRGB")] + static abstract uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + static abstract uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "MapRgba")] + static abstract uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] + static abstract uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [NativeFunction("SDL3", EntryPoint = "MaximizeWindow")] + static abstract int MaximizeWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + static abstract int MaximizeWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierAcquireFunction")] + static abstract void MemoryBarrierAcquireFunction(); + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierReleaseFunction")] + static abstract void MemoryBarrierReleaseFunction(); + + [return: NativeTypeName("SDL_MetalView")] + [NativeFunction("SDL3", EntryPoint = "MetalCreateView")] + static abstract void* MetalCreateView(SDL_Window* window); + + [return: NativeTypeName("SDL_MetalView")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_CreateView")] + static abstract Ptr MetalCreateView(Ref window); + + [NativeFunction("SDL3", EntryPoint = "MetalDestroyView")] + static abstract void MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_DestroyView")] + static abstract void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view); + + [NativeFunction("SDL3", EntryPoint = "MetalGetLayer")] + static abstract void* MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_GetLayer")] + static abstract Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view); + + [NativeFunction("SDL3", EntryPoint = "MinimizeWindow")] + static abstract int MinimizeWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + static abstract int MinimizeWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "MixAudioFormat")] + static abstract int MixAudioFormat( + [NativeTypeName("Uint8 *")] byte* dst, + [NativeTypeName("const Uint8 *")] byte* src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + static abstract int MixAudioFormat( + [NativeTypeName("Uint8 *")] Ref dst, + [NativeTypeName("const Uint8 *")] Ref src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidBecomeActive")] + static abstract void OnApplicationDidBecomeActive(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidEnterBackground")] + static abstract void OnApplicationDidEnterBackground(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidReceiveMemoryWarning")] + static abstract void OnApplicationDidReceiveMemoryWarning(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillEnterForeground")] + static abstract void OnApplicationWillEnterForeground(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillResignActive")] + static abstract void OnApplicationWillResignActive(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillTerminate")] + static abstract void OnApplicationWillTerminate(); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "OpenAudioDevice")] + static abstract uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec + ); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDevice")] + static abstract uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec + ); + + [NativeFunction("SDL3", EntryPoint = "OpenAudioDeviceStream")] + static abstract SDL_AudioStream* OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDeviceStream")] + static abstract Ptr OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "OpenCameraDevice")] + static abstract SDL_Camera* OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + static abstract Ptr OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] Ref spec + ); + + [NativeFunction("SDL3", EntryPoint = "OpenFileStorage")] + static abstract SDL_Storage* OpenFileStorage([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenFileStorage")] + static abstract Ptr OpenFileStorage( + [NativeTypeName("const char *")] Ref path + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + static abstract Ptr OpenGamepad( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + static abstract SDL_Gamepad* OpenGamepadRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + static abstract Ptr OpenHaptic( + [NativeTypeName("SDL_HapticID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "OpenHapticFromJoystick")] + static abstract SDL_Haptic* OpenHapticFromJoystick(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromJoystick")] + static abstract Ptr OpenHapticFromJoystick(Ref joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + static abstract Ptr OpenHapticFromMouse(); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + static abstract SDL_Haptic* OpenHapticFromMouseRaw(); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + static abstract SDL_Haptic* OpenHapticRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "OpenIO")] + static abstract SDL_IOStream* OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] IOStreamInterface* iface, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenIO")] + static abstract Ptr OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] Ref iface, + Ref userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + static abstract Ptr OpenJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + static abstract SDL_Joystick* OpenJoystickRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + static abstract Ptr OpenSensor( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + static abstract SDL_Sensor* OpenSensorRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "OpenStorage")] + static abstract SDL_Storage* OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] StorageInterface* iface, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenStorage")] + static abstract Ptr OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] Ref iface, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "OpenTitleStorage")] + static abstract SDL_Storage* OpenTitleStorage( + [NativeTypeName("const char *")] sbyte* @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenTitleStorage")] + static abstract Ptr OpenTitleStorage( + [NativeTypeName("const char *")] Ref @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [NativeFunction("SDL3", EntryPoint = "OpenURL")] + static abstract int OpenURL([NativeTypeName("const char *")] sbyte* url); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] + static abstract int OpenURL([NativeTypeName("const char *")] Ref url); + + [NativeFunction("SDL3", EntryPoint = "OpenUserStorage")] + static abstract SDL_Storage* OpenUserStorage( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] + static abstract Ptr OpenUserStorage( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [NativeFunction("SDL3", EntryPoint = "PauseAudioDevice")] + static abstract int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [NativeFunction("SDL3", EntryPoint = "PauseHaptic")] + static abstract int PauseHaptic(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + static abstract int PauseHaptic(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "PeepEvents")] + static abstract int PeepEvents( + Event* events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] + static abstract int PeepEvents( + Ref events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [return: NativeTypeName("SDL_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 = "PlayHapticRumble")] + static abstract int PlayHapticRumble( + SDL_Haptic* haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] + static abstract int PlayHapticRumble( + Ref haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "PollEvent")] + static abstract int PollEvent(Event* @event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] + static abstract MaybeBool PollEvent(Ref @event); + + [NativeFunction("SDL3", EntryPoint = "PostSemaphore")] + static abstract int PostSemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] + static abstract int PostSemaphore(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "PremultiplyAlpha")] + static abstract int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] + static abstract int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ); + + [NativeFunction("SDL3", EntryPoint = "PumpEvents")] + static abstract void PumpEvents(); + + [NativeFunction("SDL3", EntryPoint = "PushEvent")] + static abstract int PushEvent(Event* @event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] + static abstract int PushEvent(Ref @event); + + [NativeFunction("SDL3", EntryPoint = "PutAudioStreamData")] + static abstract int PutAudioStreamData( + SDL_AudioStream* stream, + [NativeTypeName("const void *")] void* buf, + int len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] + static abstract int PutAudioStreamData( + Ref stream, + [NativeTypeName("const void *")] Ref buf, + int len + ); + + [NativeFunction("SDL3", EntryPoint = "QueryTexture")] + static abstract int QueryTexture( + SDL_Texture* texture, + PixelFormatEnum* format, + int* access, + int* w, + int* h + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] + static abstract int QueryTexture( + Ref texture, + Ref format, + Ref access, + Ref w, + Ref h + ); + + [NativeFunction("SDL3", EntryPoint = "Quit")] + static abstract void Quit(); + + [NativeFunction("SDL3", EntryPoint = "QuitSubSystem")] + static abstract void QuitSubSystem([NativeTypeName("Uint32")] uint flags); + + [NativeFunction("SDL3", EntryPoint = "RaiseWindow")] + static abstract int RaiseWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + static abstract int RaiseWindow(Ref window); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "ReadIO")] + static abstract nuint ReadIO( + SDL_IOStream* context, + void* ptr, + [NativeTypeName("size_t")] nuint size + ); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] + static abstract nuint ReadIO( + Ref context, + Ref ptr, + [NativeTypeName("size_t")] nuint size + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16BE")] + static abstract int ReadS16BE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] + static abstract MaybeBool ReadS16BE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16LE")] + static abstract int ReadS16LE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] + static abstract MaybeBool ReadS16LE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32BE")] + static abstract int ReadS32BE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] + static abstract MaybeBool ReadS32BE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32LE")] + static abstract int ReadS32LE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] + static abstract MaybeBool ReadS32LE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64BE")] + static abstract int ReadS64BE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] + static abstract MaybeBool ReadS64BE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64LE")] + static abstract int ReadS64LE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] + static abstract MaybeBool ReadS64LE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ); + + [NativeFunction("SDL3", EntryPoint = "ReadStorageFile")] + static abstract int ReadStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + void* destination, + [NativeTypeName("Uint64")] ulong length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] + static abstract int ReadStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref destination, + [NativeTypeName("Uint64")] ulong length + ); + + [NativeFunction("SDL3", EntryPoint = "ReadSurfacePixel")] + static abstract int ReadSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] + static abstract int ReadSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16BE")] + static abstract int ReadU16BE( + SDL_IOStream* src, + [NativeTypeName("Uint16 *")] ushort* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] + static abstract MaybeBool ReadU16BE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16LE")] + static abstract int ReadU16LE( + SDL_IOStream* src, + [NativeTypeName("Uint16 *")] ushort* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] + static abstract MaybeBool ReadU16LE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32BE")] + static abstract int ReadU32BE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] + static abstract MaybeBool ReadU32BE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32LE")] + static abstract int ReadU32LE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] + static abstract MaybeBool ReadU32LE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64BE")] + static abstract int ReadU64BE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] + static abstract MaybeBool ReadU64BE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64LE")] + static abstract int ReadU64LE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] + static abstract MaybeBool ReadU64LE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU8")] + static abstract int ReadU8(SDL_IOStream* src, [NativeTypeName("Uint8 *")] byte* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] + static abstract MaybeBool ReadU8( + Ref src, + [NativeTypeName("Uint8 *")] Ref value + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "RegisterEvents")] + static abstract uint RegisterEvents(int numevents); + + [NativeFunction("SDL3", EntryPoint = "ReleaseCameraFrame")] + static abstract int ReleaseCameraFrame(SDL_Camera* camera, Surface* frame); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] + static abstract int ReleaseCameraFrame(Ref camera, Ref frame); + + [NativeFunction("SDL3", EntryPoint = "ReloadGamepadMappings")] + static abstract int ReloadGamepadMappings(); + + [NativeFunction("SDL3", EntryPoint = "RemovePath")] + static abstract int RemovePath([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] + static abstract int RemovePath([NativeTypeName("const char *")] Ref path); + + [NativeFunction("SDL3", EntryPoint = "RemoveStoragePath")] + static abstract int RemoveStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] + static abstract int RemoveStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref path + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + static abstract MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + static abstract int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id); + + [NativeFunction("SDL3", EntryPoint = "RenamePath")] + static abstract int RenamePath( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] + static abstract int RenamePath( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ); + + [NativeFunction("SDL3", EntryPoint = "RenameStoragePath")] + static abstract int RenameStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] + static abstract int RenameStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ); + + [NativeFunction("SDL3", EntryPoint = "RenderClear")] + static abstract int RenderClear(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + static abstract int RenderClear(Ref renderer); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderClipEnabled")] + static abstract int RenderClipEnabled(SDL_Renderer* renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] + static abstract MaybeBool RenderClipEnabled(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesFromWindow")] + static abstract int RenderCoordinatesFromWindow( + SDL_Renderer* renderer, + float window_x, + float window_y, + float* x, + float* y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] + static abstract int RenderCoordinatesFromWindow( + Ref renderer, + float window_x, + float window_y, + Ref x, + Ref y + ); + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesToWindow")] + static abstract int RenderCoordinatesToWindow( + SDL_Renderer* renderer, + float x, + float y, + float* window_x, + float* window_y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] + static abstract int RenderCoordinatesToWindow( + Ref renderer, + float x, + float y, + Ref window_x, + Ref window_y + ); + + [NativeFunction("SDL3", EntryPoint = "RenderFillRect")] + static abstract int RenderFillRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] + static abstract int RenderFillRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "RenderFillRects")] + static abstract int RenderFillRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] + static abstract int RenderFillRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometry")] + static abstract int RenderGeometry( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, + int num_vertices, + [NativeTypeName("const int *")] int* indices, + int num_indices + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] + static abstract int RenderGeometry( + Ref renderer, + Ref texture, + [NativeTypeName("const SDL_Vertex *")] Ref vertices, + int num_vertices, + [NativeTypeName("const int *")] Ref indices, + int num_indices + ); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometryRaw")] + static abstract int RenderGeometryRaw( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const float *")] float* xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] Color* 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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] + static abstract int RenderGeometryRaw( + Ref renderer, + Ref texture, + [NativeTypeName("const float *")] Ref xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] 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 = "RenderGeometryRawFloat")] + static abstract int RenderGeometryRawFloat( + SDL_Renderer* renderer, + SDL_Texture* 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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] + static abstract int RenderGeometryRawFloat( + Ref renderer, + Ref 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 = "RenderLine")] + static abstract int RenderLine( + SDL_Renderer* renderer, + float x1, + float y1, + float x2, + float y2 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] + static abstract int RenderLine( + Ref renderer, + float x1, + float y1, + float x2, + float y2 + ); + + [NativeFunction("SDL3", EntryPoint = "RenderLines")] + static abstract int RenderLines( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] + static abstract int RenderLines( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ); + + [NativeFunction("SDL3", EntryPoint = "RenderPoint")] + static abstract int RenderPoint(SDL_Renderer* renderer, float x, float y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + static abstract int RenderPoint(Ref renderer, float x, float y); + + [NativeFunction("SDL3", EntryPoint = "RenderPoints")] + static abstract int RenderPoints( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] + static abstract int RenderPoints( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ); + + [NativeFunction("SDL3", EntryPoint = "RenderPresent")] + static abstract int RenderPresent(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + static abstract int RenderPresent(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "RenderReadPixels")] + static abstract Surface* RenderReadPixels( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] + static abstract Ptr RenderReadPixels( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "RenderRect")] + static abstract int RenderRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] + static abstract int RenderRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "RenderRects")] + static abstract int RenderRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] + static abstract int RenderRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ); + + [NativeFunction("SDL3", EntryPoint = "RenderTexture")] + static abstract int RenderTexture( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] + static abstract int RenderTexture( + Ref renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ); + + [NativeFunction("SDL3", EntryPoint = "RenderTextureRotated")] + static abstract int RenderTextureRotated( + SDL_Renderer* renderer, + SDL_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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + static abstract int RenderTextureRotated( + Ref renderer, + 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 + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderViewportSet")] + static abstract int RenderViewportSet(SDL_Renderer* renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] + static abstract MaybeBool RenderViewportSet(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "ReportAssertion")] + static abstract AssertState ReportAssertion( + AssertData* data, + [NativeTypeName("const char *")] sbyte* func, + [NativeTypeName("const char *")] sbyte* file, + int line + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] + static abstract AssertState ReportAssertion( + Ref data, + [NativeTypeName("const char *")] Ref func, + [NativeTypeName("const char *")] Ref file, + int line + ); + + [NativeFunction("SDL3", EntryPoint = "ResetAssertionReport")] + static abstract void ResetAssertionReport(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ResetHint")] + static abstract int ResetHint([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] + static abstract MaybeBool ResetHint([NativeTypeName("const char *")] Ref name); + + [NativeFunction("SDL3", EntryPoint = "ResetHints")] + static abstract void ResetHints(); + + [NativeFunction("SDL3", EntryPoint = "ResetKeyboard")] + static abstract void ResetKeyboard(); + + [NativeFunction("SDL3", EntryPoint = "RestoreWindow")] + static abstract int RestoreWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + static abstract int RestoreWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "ResumeAudioDevice")] + static abstract int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [NativeFunction("SDL3", EntryPoint = "ResumeHaptic")] + static abstract int ResumeHaptic(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + static abstract int ResumeHaptic(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepad")] + static abstract int RumbleGamepad( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + static abstract int RumbleGamepad( + Ref gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepadTriggers")] + static abstract int RumbleGamepadTriggers( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + static abstract int RumbleGamepadTriggers( + Ref gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystick")] + static abstract int RumbleJoystick( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + static abstract int RumbleJoystick( + Ref joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystickTriggers")] + static abstract int RumbleJoystickTriggers( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + static abstract int RumbleJoystickTriggers( + Ref joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [NativeFunction("SDL3", EntryPoint = "RunHapticEffect")] + static abstract int RunHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + static abstract int RunHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ); + + [NativeFunction("SDL3", EntryPoint = "SaveBMP")] + static abstract int SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] + static abstract int SaveBMP( + Ref surface, + [NativeTypeName("const char *")] Ref file + ); + + [NativeFunction("SDL3", EntryPoint = "SaveBMPIO")] + static abstract int SaveBMPIO( + Surface* surface, + SDL_IOStream* dst, + [NativeTypeName("SDL_bool")] int closeio + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] + static abstract int SaveBMPIO( + Ref surface, + Ref dst, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ScreenKeyboardShown")] + static abstract int ScreenKeyboardShown(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] + static abstract MaybeBool ScreenKeyboardShown(Ref window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + static abstract MaybeBool ScreenSaverEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + static abstract int ScreenSaverEnabledRaw(); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "SeekIO")] + static abstract long SeekIO( + SDL_IOStream* context, + [NativeTypeName("Sint64")] long offset, + int whence + ); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] + static abstract long SeekIO( + Ref context, + [NativeTypeName("Sint64")] long offset, + int whence + ); + + [NativeFunction("SDL3", EntryPoint = "SendGamepadEffect")] + static abstract int SendGamepadEffect( + SDL_Gamepad* gamepad, + [NativeTypeName("const void *")] void* data, + int size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] + static abstract int SendGamepadEffect( + Ref gamepad, + [NativeTypeName("const void *")] Ref data, + int size + ); + + [NativeFunction("SDL3", EntryPoint = "SendJoystickEffect")] + static abstract int SendJoystickEffect( + SDL_Joystick* joystick, + [NativeTypeName("const void *")] void* data, + int size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] + static abstract int SendJoystickEffect( + Ref joystick, + [NativeTypeName("const void *")] Ref data, + int size + ); + + [NativeFunction("SDL3", EntryPoint = "SetAssertionHandler")] + static abstract void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] + static abstract void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetAudioPostmixCallback")] + static abstract int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] + static abstract int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFormat")] + static abstract int SetAudioStreamFormat( + SDL_AudioStream* stream, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] + static abstract int SetAudioStreamFormat( + Ref stream, + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFrequencyRatio")] + static abstract int SetAudioStreamFrequencyRatio(SDL_AudioStream* stream, float ratio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + static abstract int SetAudioStreamFrequencyRatio(Ref stream, float ratio); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamGetCallback")] + static abstract int SetAudioStreamGetCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] + static abstract int SetAudioStreamGetCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamPutCallback")] + static abstract int SetAudioStreamPutCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] + static abstract int SetAudioStreamPutCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetBooleanProperty")] + static abstract int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] + static abstract int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool value + ); + + [NativeFunction("SDL3", EntryPoint = "SetClipboardData")] + static abstract int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] + delegate* unmanaged cleanup, + void* userdata, + [NativeTypeName("const char **")] sbyte** mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] + static abstract int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] + delegate* unmanaged cleanup, + Ref userdata, + [NativeTypeName("const char **")] Ref2D mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ); + + [NativeFunction("SDL3", EntryPoint = "SetClipboardText")] + static abstract int SetClipboardText([NativeTypeName("const char *")] sbyte* text); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] + static abstract int SetClipboardText([NativeTypeName("const char *")] Ref text); + + [NativeFunction("SDL3", EntryPoint = "SetCursor")] + static abstract int SetCursor(SDL_Cursor* cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + static abstract int SetCursor(Ref cursor); + + [NativeFunction("SDL3", EntryPoint = "SetEventEnabled")] + static abstract void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] int enabled + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] + static abstract void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ); + + [NativeFunction("SDL3", EntryPoint = "SetEventFilter")] + static abstract void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] + static abstract void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetFloatProperty")] + static abstract int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] + static abstract int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float value + ); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadEventsEnabled")] + static abstract void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] + static abstract void SetGamepadEventsEnabled( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadLED")] + static abstract int SetGamepadLED( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + static abstract int SetGamepadLED( + Ref gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadMapping")] + static abstract int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] sbyte* mapping + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] + static abstract int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] Ref mapping + ); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadPlayerIndex")] + static abstract int SetGamepadPlayerIndex(SDL_Gamepad* gamepad, int player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + static abstract int SetGamepadPlayerIndex(Ref gamepad, int player_index); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadSensorEnabled")] + static abstract int SetGamepadSensorEnabled( + SDL_Gamepad* gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] int enabled + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] + static abstract int SetGamepadSensorEnabled( + Ref gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ); + + [NativeFunction("SDL3", EntryPoint = "SetHapticAutocenter")] + static abstract int SetHapticAutocenter(SDL_Haptic* haptic, int autocenter); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + static abstract int SetHapticAutocenter(Ref haptic, int autocenter); + + [NativeFunction("SDL3", EntryPoint = "SetHapticGain")] + static abstract int SetHapticGain(SDL_Haptic* haptic, int gain); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + static abstract int SetHapticGain(Ref haptic, int gain); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHint")] + static abstract int SetHint( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] + static abstract MaybeBool SetHint( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHintWithPriority")] + static abstract int SetHintWithPriority( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value, + HintPriority priority + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] + static abstract MaybeBool SetHintWithPriority( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value, + HintPriority priority + ); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickEventsEnabled")] + static abstract void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] + static abstract void SetJoystickEventsEnabled( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickLED")] + static abstract int SetJoystickLED( + SDL_Joystick* joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + static abstract int SetJoystickLED( + Ref joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickPlayerIndex")] + static abstract int SetJoystickPlayerIndex(SDL_Joystick* joystick, int player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + static abstract int SetJoystickPlayerIndex(Ref joystick, int player_index); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualAxis")] + static abstract int SetJoystickVirtualAxis( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16")] short value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + static abstract int SetJoystickVirtualAxis( + Ref joystick, + int axis, + [NativeTypeName("Sint16")] short value + ); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualButton")] + static abstract int SetJoystickVirtualButton( + SDL_Joystick* joystick, + int button, + [NativeTypeName("Uint8")] byte value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + static abstract int SetJoystickVirtualButton( + Ref joystick, + int button, + [NativeTypeName("Uint8")] byte value + ); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualHat")] + static abstract int SetJoystickVirtualHat( + SDL_Joystick* joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + static abstract int SetJoystickVirtualHat( + Ref joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ); + + [NativeFunction("SDL3", EntryPoint = "SetLogOutputFunction")] + static abstract void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] + static abstract void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetModState")] + static abstract void SetModState(Keymod modstate); + + [NativeFunction("SDL3", EntryPoint = "SetNumberProperty")] + static abstract int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] + static abstract int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long value + ); + + [NativeFunction("SDL3", EntryPoint = "SetPaletteColors")] + static abstract int SetPaletteColors( + Palette* palette, + [NativeTypeName("const SDL_Color *")] Color* colors, + int firstcolor, + int ncolors + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] + static abstract int SetPaletteColors( + Ref palette, + [NativeTypeName("const SDL_Color *")] Ref colors, + int firstcolor, + int ncolors + ); + + [NativeFunction("SDL3", EntryPoint = "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 = "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 = "SetProperty")] + static abstract int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + static abstract int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value + ); + + [NativeFunction("SDL3", EntryPoint = "SetPropertyWithCleanup")] + static abstract int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + static abstract int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetRelativeMouseMode")] + static abstract int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + static abstract int SetRelativeMouseMode( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderClipRect")] + static abstract int SetRenderClipRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] + static abstract int SetRenderClipRect( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderColorScale")] + static abstract int SetRenderColorScale(SDL_Renderer* renderer, float scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + static abstract int SetRenderColorScale(Ref renderer, float scale); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawBlendMode")] + static abstract int SetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + static abstract int SetRenderDrawBlendMode(Ref renderer, BlendMode blendMode); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColor")] + static abstract int SetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + static abstract int SetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColorFloat")] + static abstract int SetRenderDrawColorFloat( + SDL_Renderer* renderer, + float r, + float g, + float b, + float a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + static abstract int SetRenderDrawColorFloat( + Ref renderer, + float r, + float g, + float b, + float a + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderLogicalPresentation")] + static abstract int SetRenderLogicalPresentation( + SDL_Renderer* renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + static abstract int SetRenderLogicalPresentation( + Ref renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderScale")] + static abstract int SetRenderScale(SDL_Renderer* renderer, float scaleX, float scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + static abstract int SetRenderScale(Ref renderer, float scaleX, float scaleY); + + [NativeFunction("SDL3", EntryPoint = "SetRenderTarget")] + static abstract int SetRenderTarget(SDL_Renderer* renderer, SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + static abstract int SetRenderTarget(Ref renderer, Ref texture); + + [NativeFunction("SDL3", EntryPoint = "SetRenderViewport")] + static abstract int SetRenderViewport( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] + static abstract int SetRenderViewport( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderVSync")] + static abstract int SetRenderVSync(SDL_Renderer* renderer, int vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + static abstract int SetRenderVSync(Ref renderer, int vsync); + + [NativeFunction("SDL3", EntryPoint = "SetStringProperty")] + static abstract int SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + static abstract int SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceAlphaMod")] + static abstract int SetSurfaceAlphaMod( + Surface* surface, + [NativeTypeName("Uint8")] byte alpha + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] + static abstract int SetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8")] byte alpha + ); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceBlendMode")] + static abstract int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] + static abstract int SetSurfaceBlendMode(Ref surface, BlendMode blendMode); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetSurfaceClipRect")] + static abstract int SetSurfaceClipRect( + Surface* surface, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] + static abstract MaybeBool SetSurfaceClipRect( + Ref surface, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorKey")] + static abstract int SetSurfaceColorKey( + Surface* surface, + int flag, + [NativeTypeName("Uint32")] uint key + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] + static abstract int SetSurfaceColorKey( + Ref surface, + int flag, + [NativeTypeName("Uint32")] uint key + ); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorMod")] + static abstract int SetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] + static abstract int SetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorspace")] + static abstract int SetSurfaceColorspace(Surface* surface, Colorspace colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] + static abstract int SetSurfaceColorspace(Ref surface, Colorspace colorspace); + + [NativeFunction("SDL3", EntryPoint = "SetSurfacePalette")] + static abstract int SetSurfacePalette(Surface* surface, Palette* palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] + static abstract int SetSurfacePalette(Ref surface, Ref palette); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceRLE")] + static abstract int SetSurfaceRLE(Surface* surface, int flag); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] + static abstract int SetSurfaceRLE(Ref surface, int flag); + + [NativeFunction("SDL3", EntryPoint = "SetTextInputRect")] + static abstract int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + static abstract int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect); + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaMod")] + static abstract int SetTextureAlphaMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte alpha + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + static abstract int SetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8")] byte alpha + ); + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaModFloat")] + static abstract int SetTextureAlphaModFloat(SDL_Texture* texture, float alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + static abstract int SetTextureAlphaModFloat(Ref texture, float alpha); + + [NativeFunction("SDL3", EntryPoint = "SetTextureBlendMode")] + static abstract int SetTextureBlendMode(SDL_Texture* texture, BlendMode blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + static abstract int SetTextureBlendMode(Ref texture, BlendMode blendMode); + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorMod")] + static abstract int SetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + static abstract int SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorModFloat")] + static abstract int SetTextureColorModFloat( + SDL_Texture* texture, + float r, + float g, + float b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + static abstract int SetTextureColorModFloat( + Ref texture, + float r, + float g, + float b + ); + + [NativeFunction("SDL3", EntryPoint = "SetTextureScaleMode")] + static abstract int SetTextureScaleMode(SDL_Texture* texture, ScaleMode scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] + static abstract int SetTextureScaleMode(Ref texture, ScaleMode scaleMode); + + [NativeFunction("SDL3", EntryPoint = "SetThreadPriority")] + static abstract int SetThreadPriority(ThreadPriority priority); + + [NativeFunction("SDL3", EntryPoint = "SetTLS")] + static abstract int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] void* value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] + static abstract int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] Ref value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowAlwaysOnTop")] + static abstract int SetWindowAlwaysOnTop( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int on_top + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] + static abstract int SetWindowAlwaysOnTop( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool on_top + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowBordered")] + static abstract int SetWindowBordered( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int bordered + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] + static abstract int SetWindowBordered( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool bordered + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFocusable")] + static abstract int SetWindowFocusable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int focusable + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] + static abstract int SetWindowFocusable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool focusable + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreen")] + static abstract int SetWindowFullscreen( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int fullscreen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] + static abstract int SetWindowFullscreen( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool fullscreen + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreenMode")] + static abstract int SetWindowFullscreenMode( + SDL_Window* window, + [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] + static abstract int SetWindowFullscreenMode( + Ref window, + [NativeTypeName("const SDL_DisplayMode *")] Ref mode + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowHitTest")] + static abstract int SetWindowHitTest( + SDL_Window* window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + void* callback_data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] + static abstract int SetWindowHitTest( + Ref window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + Ref callback_data + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowIcon")] + static abstract int SetWindowIcon(SDL_Window* window, Surface* icon); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] + static abstract int SetWindowIcon(Ref window, Ref icon); + + [NativeFunction("SDL3", EntryPoint = "SetWindowInputFocus")] + static abstract int SetWindowInputFocus(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] + static abstract int SetWindowInputFocus(Ref window); + + [NativeFunction("SDL3", EntryPoint = "SetWindowKeyboardGrab")] + static abstract int SetWindowKeyboardGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] + static abstract int SetWindowKeyboardGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMaximumSize")] + static abstract int SetWindowMaximumSize(SDL_Window* window, int max_w, int max_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + static abstract int SetWindowMaximumSize(Ref window, int max_w, int max_h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMinimumSize")] + static abstract int SetWindowMinimumSize(SDL_Window* window, int min_w, int min_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + static abstract int SetWindowMinimumSize(Ref window, int min_w, int min_h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowModalFor")] + static abstract int SetWindowModalFor(SDL_Window* modal_window, SDL_Window* parent_window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] + static abstract int SetWindowModalFor( + Ref modal_window, + Ref parent_window + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseGrab")] + static abstract int SetWindowMouseGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] + static abstract int SetWindowMouseGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseRect")] + static abstract int SetWindowMouseRect( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] + static abstract int SetWindowMouseRect( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowOpacity")] + static abstract int SetWindowOpacity(SDL_Window* window, float opacity); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + static abstract int SetWindowOpacity(Ref window, float opacity); + + [NativeFunction("SDL3", EntryPoint = "SetWindowPosition")] + static abstract int SetWindowPosition(SDL_Window* window, int x, int y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + static abstract int SetWindowPosition(Ref window, int x, int y); + + [NativeFunction("SDL3", EntryPoint = "SetWindowResizable")] + static abstract int SetWindowResizable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int resizable + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] + static abstract int SetWindowResizable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool resizable + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowShape")] + static abstract int SetWindowShape(SDL_Window* window, Surface* shape); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] + static abstract int SetWindowShape(Ref window, Ref shape); + + [NativeFunction("SDL3", EntryPoint = "SetWindowSize")] + static abstract int SetWindowSize(SDL_Window* window, int w, int h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + static abstract int SetWindowSize(Ref window, int w, int h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowTitle")] + static abstract int SetWindowTitle( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* title + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] + static abstract int SetWindowTitle( + Ref window, + [NativeTypeName("const char *")] Ref title + ); + + [NativeFunction("SDL3", EntryPoint = "ShowCursor")] + static abstract int ShowCursor(); + + [NativeFunction("SDL3", EntryPoint = "ShowMessageBox")] + static abstract int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, + int* buttonid + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] + static abstract int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, + Ref buttonid + ); + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFileDialog")] + static abstract void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFileDialog")] + static abstract void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ); + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFolderDialog")] + static abstract void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] + static abstract void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ); + + [NativeFunction("SDL3", EntryPoint = "ShowSaveFileDialog")] + static abstract void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] + static abstract void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location + ); + + [NativeFunction("SDL3", EntryPoint = "ShowSimpleMessageBox")] + static abstract int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] sbyte* title, + [NativeTypeName("const char *")] sbyte* message, + SDL_Window* window + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] + static abstract int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] Ref title, + [NativeTypeName("const char *")] Ref message, + Ref window + ); + + [NativeFunction("SDL3", EntryPoint = "ShowWindow")] + static abstract int ShowWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + static abstract int ShowWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "ShowWindowSystemMenu")] + static abstract int ShowWindowSystemMenu(SDL_Window* window, int x, int y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + static abstract int ShowWindowSystemMenu(Ref window, int x, int y); + + [NativeFunction("SDL3", EntryPoint = "SignalCondition")] + static abstract int SignalCondition(SDL_Condition* cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] + static abstract int SignalCondition(Ref cond); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SimdGetAlignment")] + static abstract nuint SimdGetAlignment(); + + [NativeFunction("SDL3", EntryPoint = "SoftStretch")] + static abstract int SoftStretch( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ); + + [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 = "StartTextInput")] + static abstract void StartTextInput(); + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffect")] + static abstract int StopHapticEffect(SDL_Haptic* haptic, int effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + static abstract int StopHapticEffect(Ref haptic, int effect); + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffects")] + static abstract int StopHapticEffects(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + static abstract int StopHapticEffects(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "StopHapticRumble")] + static abstract int StopHapticRumble(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + static abstract int StopHapticRumble(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "StopTextInput")] + static abstract void StopTextInput(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "StorageReady")] + static abstract int StorageReady(SDL_Storage* storage); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] + static abstract MaybeBool StorageReady(Ref storage); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasColorKey")] + static abstract int SurfaceHasColorKey(Surface* surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] + static abstract MaybeBool SurfaceHasColorKey(Ref surface); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasRLE")] + static abstract int SurfaceHasRLE(Surface* surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] + static abstract MaybeBool SurfaceHasRLE(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "SyncWindow")] + static abstract int SyncWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + static abstract int SyncWindow(Ref window); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "TellIO")] + static abstract long TellIO(SDL_IOStream* context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] + static abstract long TellIO(Ref context); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + static abstract MaybeBool TextInputActive(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + static abstract int TextInputActiveRaw(); + + [return: NativeTypeName("SDL_Time")] + [NativeFunction("SDL3", EntryPoint = "TimeFromWindows")] + static abstract long TimeFromWindows( + [NativeTypeName("Uint32")] uint dwLowDateTime, + [NativeTypeName("Uint32")] uint dwHighDateTime + ); + + [NativeFunction("SDL3", EntryPoint = "TimeToDateTime")] + static abstract int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + DateTime* dt, + [NativeTypeName("SDL_bool")] int localTime + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] + static abstract int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + Ref dt, + [NativeTypeName("SDL_bool")] MaybeBool localTime + ); + + [NativeFunction("SDL3", EntryPoint = "TimeToWindows")] + static abstract void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] uint* dwLowDateTime, + [NativeTypeName("Uint32 *")] uint* dwHighDateTime + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] + static abstract void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] Ref dwLowDateTime, + [NativeTypeName("Uint32 *")] Ref dwHighDateTime + ); + + [NativeFunction("SDL3", EntryPoint = "TryLockMutex")] + static abstract int TryLockMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + static abstract int TryLockMutex(Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForReading")] + static abstract int TryLockRWLockForReading(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + static abstract int TryLockRWLockForReading(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForWriting")] + static abstract int TryLockRWLockForWriting(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + static abstract int TryLockRWLockForWriting(Ref rwlock); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "TryLockSpinlock")] + static abstract int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] + static abstract MaybeBool TryLockSpinlock( + [NativeTypeName("SDL_SpinLock *")] Ref @lock + ); + + [NativeFunction("SDL3", EntryPoint = "TryWaitSemaphore")] + static abstract int TryWaitSemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + static abstract int TryWaitSemaphore(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStream")] + static abstract void UnbindAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] + static abstract void UnbindAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStreams")] + static abstract void UnbindAudioStreams(SDL_AudioStream** streams, int num_streams); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] + static abstract void UnbindAudioStreams(Ref2D streams, int num_streams); + + [NativeFunction("SDL3", EntryPoint = "UnloadObject")] + static abstract void UnloadObject(void* handle); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] + static abstract void UnloadObject(Ref handle); + + [NativeFunction("SDL3", EntryPoint = "UnlockAudioStream")] + static abstract int UnlockAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] + static abstract int UnlockAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "UnlockJoysticks")] + static abstract void UnlockJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "UnlockMutex")] + static abstract void UnlockMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockMutex")] + static abstract void UnlockMutex(Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "UnlockProperties")] + static abstract void UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [NativeFunction("SDL3", EntryPoint = "UnlockRWLock")] + static abstract void UnlockRWLock(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockRWLock")] + static abstract void UnlockRWLock(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "UnlockSpinlock")] + static abstract void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSpinlock")] + static abstract void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock); + + [NativeFunction("SDL3", EntryPoint = "UnlockSurface")] + static abstract void UnlockSurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSurface")] + static abstract void UnlockSurface(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "UnlockTexture")] + static abstract void UnlockTexture(SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + static abstract void UnlockTexture(Ref texture); + + [NativeFunction("SDL3", EntryPoint = "UpdateGamepads")] + static abstract void UpdateGamepads(); + + [NativeFunction("SDL3", EntryPoint = "UpdateHapticEffect")] + static abstract int UpdateHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] + static abstract int UpdateHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] Ref data + ); + + [NativeFunction("SDL3", EntryPoint = "UpdateJoysticks")] + static abstract void UpdateJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "UpdateNVTexture")] + static abstract int UpdateNVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* UVplane, + int UVpitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] + static abstract int UpdateNVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref UVplane, + int UVpitch + ); + + [NativeFunction("SDL3", EntryPoint = "UpdateSensors")] + static abstract void UpdateSensors(); + + [NativeFunction("SDL3", EntryPoint = "UpdateTexture")] + static abstract int UpdateTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const void *")] void* pixels, + int pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] + static abstract int UpdateTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const void *")] Ref pixels, + int pitch + ); + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurface")] + static abstract int UpdateWindowSurface(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + static abstract int UpdateWindowSurface(Ref window); + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurfaceRects")] + static abstract int UpdateWindowSurfaceRects( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int numrects + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] + static abstract int UpdateWindowSurfaceRects( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int numrects + ); + + [NativeFunction("SDL3", EntryPoint = "UpdateYUVTexture")] + static abstract int UpdateYUVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] byte* Vplane, + int Vpitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] + static abstract int UpdateYUVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] Ref Vplane, + int Vpitch + ); + + [NativeFunction("SDL3", EntryPoint = "WaitCondition")] + static abstract int WaitCondition(SDL_Condition* cond, SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] + static abstract int WaitCondition(Ref cond, Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "WaitConditionTimeout")] + static abstract int WaitConditionTimeout( + SDL_Condition* cond, + SDL_Mutex* mutex, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + static abstract int WaitConditionTimeout( + Ref cond, + Ref mutex, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEvent")] + static abstract int WaitEvent(Event* @event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] + static abstract MaybeBool WaitEvent(Ref @event); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEventTimeout")] + static abstract int WaitEventTimeout( + Event* @event, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] + static abstract MaybeBool WaitEventTimeout( + Ref @event, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphore")] + static abstract int WaitSemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] + static abstract int WaitSemaphore(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphoreTimeout")] + static abstract int WaitSemaphoreTimeout( + SDL_Semaphore* sem, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + static abstract int WaitSemaphoreTimeout( + Ref sem, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [NativeFunction("SDL3", EntryPoint = "WaitThread")] + static abstract void WaitThread(SDL_Thread* thread, int* status); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] + static abstract void WaitThread(Ref thread, Ref status); + + [NativeFunction("SDL3", EntryPoint = "WarpMouseGlobal")] + static abstract int WarpMouseGlobal(float x, float y); + + [NativeFunction("SDL3", EntryPoint = "WarpMouseInWindow")] + static abstract void WarpMouseInWindow(SDL_Window* window, float x, float y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] + static abstract void WarpMouseInWindow(Ref window, float x, float y); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "WasInit")] + static abstract uint WasInit([NativeTypeName("Uint32")] uint flags); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WindowHasSurface")] + static abstract int WindowHasSurface(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] + static abstract MaybeBool WindowHasSurface(Ref window); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "WriteIO")] + static abstract nuint WriteIO( + SDL_IOStream* context, + [NativeTypeName("const void *")] void* ptr, + [NativeTypeName("size_t")] nuint size + ); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteIO")] + static abstract nuint WriteIO( + Ref context, + [NativeTypeName("const void *")] Ref ptr, + [NativeTypeName("size_t")] nuint size + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16BE")] + static abstract int WriteS16BE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] + static abstract MaybeBool WriteS16BE( + Ref dst, + [NativeTypeName("Sint16")] short value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16LE")] + static abstract int WriteS16LE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] + static abstract MaybeBool WriteS16LE( + Ref dst, + [NativeTypeName("Sint16")] short value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32BE")] + static abstract int WriteS32BE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] + static abstract MaybeBool WriteS32BE( + Ref dst, + [NativeTypeName("Sint32")] int value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32LE")] + static abstract int WriteS32LE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] + static abstract MaybeBool WriteS32LE( + Ref dst, + [NativeTypeName("Sint32")] int value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64BE")] + static abstract int WriteS64BE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] + static abstract MaybeBool WriteS64BE( + Ref dst, + [NativeTypeName("Sint64")] long value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64LE")] + static abstract int WriteS64LE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] + static abstract MaybeBool WriteS64LE( + Ref dst, + [NativeTypeName("Sint64")] long value + ); + + [NativeFunction("SDL3", EntryPoint = "WriteStorageFile")] + static abstract int WriteStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const void *")] void* source, + [NativeTypeName("Uint64")] ulong length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] + static abstract int WriteStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const void *")] Ref source, + [NativeTypeName("Uint64")] ulong length + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU16BE")] + static abstract int WriteU16BE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] + static abstract MaybeBool WriteU16BE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU16LE")] + static abstract int WriteU16LE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] + static abstract MaybeBool WriteU16LE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32BE")] + static abstract int WriteU32BE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] + static abstract MaybeBool WriteU32BE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32LE")] + static abstract int WriteU32LE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] + static abstract MaybeBool WriteU32LE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64BE")] + static abstract int WriteU64BE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] + static abstract MaybeBool WriteU64BE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64LE")] + static abstract int WriteU64LE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] + static abstract MaybeBool WriteU64LE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU8")] + static abstract int WriteU8(SDL_IOStream* dst, [NativeTypeName("Uint8")] byte value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] + static abstract MaybeBool WriteU8( + Ref dst, + [NativeTypeName("Uint8")] byte value + ); + } + + [NativeFunction("SDL3", EntryPoint = "AcquireCameraFrame")] + Surface* AcquireCameraFrame( + SDL_Camera* camera, + [NativeTypeName("Uint64 *")] ulong* timestampNS + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AcquireCameraFrame")] + Ptr AcquireCameraFrame( + Ref camera, + [NativeTypeName("Uint64 *")] Ref timestampNS + ); + + [NativeFunction("SDL3", EntryPoint = "AddEventWatch")] + int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] + int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMapping")] + int AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMapping")] + int AddGamepadMapping([NativeTypeName("const char *")] Ref mapping); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromFile")] + int AddGamepadMappingsFromFile([NativeTypeName("const char *")] sbyte* file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromFile")] + int AddGamepadMappingsFromFile([NativeTypeName("const char *")] Ref file); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromIO")] + int AddGamepadMappingsFromIO(SDL_IOStream* src, [NativeTypeName("SDL_bool")] int closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] + int AddGamepadMappingsFromIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ); + + [NativeFunction("SDL3", EntryPoint = "AddHintCallback")] + int AddHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] + int AddHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "AddTimer")] + uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + void* param2 + ); + + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] + uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + Ref param2 + ); + + [NativeFunction("SDL3", EntryPoint = "AddVulkanRenderSemaphores")] + int AddVulkanRenderSemaphores( + SDL_Renderer* renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] + int AddVulkanRenderSemaphores( + Ref 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 = "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 = "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 = "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 = "AtomicGet")] + int AtomicGet(AtomicInt* a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + int AtomicGet(Ref a); + + [NativeFunction("SDL3", EntryPoint = "AtomicGetPtr")] + void* AtomicGetPtr(void** a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] + Ptr AtomicGetPtr(Ref2D a); + + [NativeFunction("SDL3", EntryPoint = "AtomicSet")] + int AtomicSet(AtomicInt* a, int v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] + int AtomicSet(Ref a, int v); + + [NativeFunction("SDL3", EntryPoint = "AtomicSetPtr")] + void* AtomicSetPtr(void** a, void* v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] + Ptr AtomicSetPtr(Ref2D a, Ref v); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "AttachVirtualJoystick")] + uint AttachVirtualJoystick(JoystickType type, int naxes, int nbuttons, int nhats); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "AttachVirtualJoystickEx")] + uint AttachVirtualJoystickEx( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc + ); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] + uint AttachVirtualJoystickEx( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + MaybeBool AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + int AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [NativeFunction("SDL3", EntryPoint = "BindAudioStream")] + int BindAudioStream([NativeTypeName("SDL_AudioDeviceID")] uint devid, SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref stream + ); + + [NativeFunction("SDL3", EntryPoint = "BindAudioStreams")] + int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream** streams, + int num_streams + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] + int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref2D streams, + int num_streams + ); + + [NativeFunction("SDL3", EntryPoint = "BlitSurface")] + int BlitSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] + int BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect + ); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceScaled")] + int BlitSurfaceScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect, + ScaleMode scaleMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] + int BlitSurfaceScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect, + ScaleMode scaleMode + ); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUnchecked")] + int BlitSurfaceUnchecked( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] + int BlitSurfaceUnchecked( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUncheckedScaled")] + int BlitSurfaceUncheckedScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] + int BlitSurfaceUncheckedScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ); + + [NativeFunction("SDL3", EntryPoint = "BroadcastCondition")] + int BroadcastCondition(SDL_Condition* cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] + int BroadcastCondition(Ref cond); + + [NativeFunction("SDL3", EntryPoint = "CaptureMouse")] + int CaptureMouse([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] + int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled); + + [NativeFunction("SDL3", EntryPoint = "CleanupTLS")] + void CleanupTLS(); + + [NativeFunction("SDL3", EntryPoint = "ClearAudioStream")] + int ClearAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + int ClearAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "ClearClipboardData")] + int ClearClipboardData(); + + [NativeFunction("SDL3", EntryPoint = "ClearComposition")] + void ClearComposition(); + + [NativeFunction("SDL3", EntryPoint = "ClearError")] + void ClearError(); + + [NativeFunction("SDL3", EntryPoint = "ClearProperty")] + int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] + int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ); + + [NativeFunction("SDL3", EntryPoint = "CloseAudioDevice")] + void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [NativeFunction("SDL3", EntryPoint = "CloseCamera")] + void CloseCamera(SDL_Camera* camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseCamera")] + void CloseCamera(Ref camera); + + [NativeFunction("SDL3", EntryPoint = "CloseGamepad")] + void CloseGamepad(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseGamepad")] + void CloseGamepad(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "CloseHaptic")] + void CloseHaptic(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseHaptic")] + void CloseHaptic(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "CloseIO")] + int CloseIO(SDL_IOStream* context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + int CloseIO(Ref context); + + [NativeFunction("SDL3", EntryPoint = "CloseJoystick")] + void CloseJoystick(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] + void CloseJoystick(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "CloseSensor")] + void CloseSensor(SDL_Sensor* sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseSensor")] + void CloseSensor(Ref sensor); + + [NativeFunction("SDL3", EntryPoint = "CloseStorage")] + int CloseStorage(SDL_Storage* storage); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + int CloseStorage(Ref storage); + + [NativeFunction("SDL3", EntryPoint = "ComposeCustomBlendMode")] + BlendMode ComposeCustomBlendMode( + BlendFactor srcColorFactor, + BlendFactor dstColorFactor, + BlendOperation colorOperation, + BlendFactor srcAlphaFactor, + BlendFactor dstAlphaFactor, + BlendOperation alphaOperation + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertAudioSamples")] + int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const Uint8 *")] byte* src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec, + [NativeTypeName("Uint8 **")] byte** dst_data, + int* dst_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] + int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const Uint8 *")] Ref src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec, + [NativeTypeName("Uint8 **")] Ref2D dst_data, + Ref dst_len + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertEventToRenderCoordinates")] + int ConvertEventToRenderCoordinates(SDL_Renderer* renderer, Event* @event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] + int ConvertEventToRenderCoordinates(Ref renderer, Ref @event); + + [NativeFunction("SDL3", EntryPoint = "ConvertPixels")] + int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] + int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertPixelsAndColorspace")] + int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + void* dst, + int dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] + int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + Ref dst, + int dst_pitch + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurface")] + Surface* ConvertSurface( + Surface* surface, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurface")] + Ptr ConvertSurface( + Ref surface, + [NativeTypeName("const SDL_PixelFormat *")] Ref format + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurfaceFormat")] + Surface* ConvertSurfaceFormat(Surface* surface, PixelFormatEnum pixel_format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + Ptr ConvertSurfaceFormat(Ref surface, PixelFormatEnum pixel_format); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurfaceFormatAndColorspace")] + Surface* ConvertSurfaceFormatAndColorspace( + Surface* surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + Ptr ConvertSurfaceFormatAndColorspace( + Ref surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [NativeFunction("SDL3", EntryPoint = "CopyProperties")] + int CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ); + + [NativeFunction("SDL3", EntryPoint = "CreateAudioStream")] + SDL_AudioStream* CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] + Ptr CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ); + + [NativeFunction("SDL3", EntryPoint = "CreateColorCursor")] + SDL_Cursor* CreateColorCursor(Surface* surface, int hot_x, int hot_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateColorCursor")] + Ptr CreateColorCursor(Ref surface, int hot_x, int hot_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + Ptr CreateCondition(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + SDL_Condition* CreateConditionRaw(); + + [NativeFunction("SDL3", EntryPoint = "CreateCursor")] + SDL_Cursor* CreateCursor( + [NativeTypeName("const Uint8 *")] byte* data, + [NativeTypeName("const Uint8 *")] byte* mask, + int w, + int h, + int hot_x, + int hot_y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCursor")] + Ptr CreateCursor( + [NativeTypeName("const Uint8 *")] Ref data, + [NativeTypeName("const Uint8 *")] Ref mask, + int w, + int h, + int hot_x, + int hot_y + ); + + [NativeFunction("SDL3", EntryPoint = "CreateDirectory")] + int CreateDirectory([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] + int CreateDirectory([NativeTypeName("const char *")] Ref path); + + [NativeFunction("SDL3", EntryPoint = "CreateHapticEffect")] + int CreateHapticEffect( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] + int CreateHapticEffect( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + Ptr CreateMutex(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + SDL_Mutex* CreateMutexRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] + Ptr CreatePalette(int ncolors); + + [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 = "CreatePopupWindow")] + SDL_Window* CreatePopupWindow( + SDL_Window* parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] + Ptr CreatePopupWindow( + Ref parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "CreateProperties")] + uint CreateProperties(); + + [NativeFunction("SDL3", EntryPoint = "CreateRenderer")] + SDL_Renderer* CreateRenderer( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Uint32")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] + Ptr CreateRenderer( + Ref window, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Uint32")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + Ptr CreateRendererWithProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + SDL_Renderer* CreateRendererWithPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + Ptr CreateRWLock(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + SDL_RWLock* CreateRWLockRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + Ptr CreateSemaphore([NativeTypeName("Uint32")] uint initial_value); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + SDL_Semaphore* CreateSemaphoreRaw([NativeTypeName("Uint32")] uint initial_value); + + [NativeFunction("SDL3", EntryPoint = "CreateSoftwareRenderer")] + SDL_Renderer* CreateSoftwareRenderer(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSoftwareRenderer")] + Ptr CreateSoftwareRenderer(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "CreateStorageDirectory")] + int CreateStorageDirectory(SDL_Storage* storage, [NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] + int CreateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] + Ptr CreateSurface(int width, int height, PixelFormatEnum format); + + [NativeFunction("SDL3", EntryPoint = "CreateSurfaceFrom")] + Surface* CreateSurfaceFrom( + void* pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] + Ptr CreateSurfaceFrom( + Ref pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] + Surface* CreateSurfaceRaw(int width, int height, PixelFormatEnum format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + Ptr CreateSystemCursor(SystemCursor id); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + SDL_Cursor* CreateSystemCursorRaw(SystemCursor id); + + [NativeFunction("SDL3", EntryPoint = "CreateTexture")] + SDL_Texture* CreateTexture( + SDL_Renderer* renderer, + PixelFormatEnum format, + int access, + int w, + int h + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + Ptr CreateTexture( + Ref renderer, + PixelFormatEnum format, + int access, + int w, + int h + ); + + [NativeFunction("SDL3", EntryPoint = "CreateTextureFromSurface")] + SDL_Texture* CreateTextureFromSurface(SDL_Renderer* renderer, Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] + Ptr CreateTextureFromSurface(Ref renderer, Ref surface); + + [NativeFunction("SDL3", EntryPoint = "CreateTextureWithProperties")] + SDL_Texture* CreateTextureWithProperties( + SDL_Renderer* renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + Ptr CreateTextureWithProperties( + Ref renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [NativeFunction("SDL3", EntryPoint = "CreateThread")] + SDL_Thread* CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + void* data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + Ptr CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + Ref data + ); + + [NativeFunction("SDL3", EntryPoint = "CreateThreadWithStackSize")] + SDL_Thread* CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const size_t")] nuint stacksize, + void* data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + Ptr CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const size_t")] nuint stacksize, + Ref data + ); + + [return: NativeTypeName("SDL_TLSID")] + [NativeFunction("SDL3", EntryPoint = "CreateTLS")] + uint CreateTLS(); + + [NativeFunction("SDL3", EntryPoint = "CreateWindow")] + SDL_Window* CreateWindow( + [NativeTypeName("const char *")] sbyte* title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] + Ptr CreateWindow( + [NativeTypeName("const char *")] Ref title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [NativeFunction("SDL3", EntryPoint = "CreateWindowAndRenderer")] + int CreateWindowAndRenderer( + [NativeTypeName("const char *")] sbyte* title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + SDL_Window** window, + SDL_Renderer** renderer + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] + int CreateWindowAndRenderer( + [NativeTypeName("const char *")] Ref title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + Ref2D window, + Ref2D renderer + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + Ptr CreateWindowWithProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + SDL_Window* CreateWindowWithPropertiesRaw([NativeTypeName("SDL_PropertiesID")] uint props); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + MaybeBool CursorVisible(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + int CursorVisibleRaw(); + + [NativeFunction("SDL3", EntryPoint = "DateTimeToTime")] + int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] DateTime* dt, + [NativeTypeName("SDL_Time *")] long* ticks + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] + int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] Ref dt, + [NativeTypeName("SDL_Time *")] Ref ticks + ); + + [NativeFunction("SDL3", EntryPoint = "Delay")] + void Delay([NativeTypeName("Uint32")] uint ms); + + [NativeFunction("SDL3", EntryPoint = "DelayNS")] + void DelayNS([NativeTypeName("Uint64")] ulong ns); + + [NativeFunction("SDL3", EntryPoint = "DelEventWatch")] + void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] + void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "DelHintCallback")] + void DelHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] + void DelHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "DestroyAudioStream")] + void DestroyAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] + void DestroyAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "DestroyCondition")] + void DestroyCondition(SDL_Condition* cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCondition")] + void DestroyCondition(Ref cond); + + [NativeFunction("SDL3", EntryPoint = "DestroyCursor")] + void DestroyCursor(SDL_Cursor* cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCursor")] + void DestroyCursor(Ref cursor); + + [NativeFunction("SDL3", EntryPoint = "DestroyHapticEffect")] + void DestroyHapticEffect(SDL_Haptic* haptic, int effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] + void DestroyHapticEffect(Ref haptic, int effect); + + [NativeFunction("SDL3", EntryPoint = "DestroyMutex")] + void DestroyMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyMutex")] + void DestroyMutex(Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "DestroyPalette")] + void DestroyPalette(Palette* palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPalette")] + void DestroyPalette(Ref palette); + + [NativeFunction("SDL3", EntryPoint = "DestroyPixelFormat")] + void DestroyPixelFormat(PixelFormat* format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPixelFormat")] + void DestroyPixelFormat(Ref format); + + [NativeFunction("SDL3", EntryPoint = "DestroyProperties")] + void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [NativeFunction("SDL3", EntryPoint = "DestroyRenderer")] + void DestroyRenderer(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRenderer")] + void DestroyRenderer(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "DestroyRWLock")] + void DestroyRWLock(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRWLock")] + void DestroyRWLock(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "DestroySemaphore")] + void DestroySemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySemaphore")] + void DestroySemaphore(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "DestroySurface")] + void DestroySurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySurface")] + void DestroySurface(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "DestroyTexture")] + void DestroyTexture(SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + void DestroyTexture(Ref texture); + + [NativeFunction("SDL3", EntryPoint = "DestroyWindow")] + void DestroyWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] + void DestroyWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "DestroyWindowSurface")] + int DestroyWindowSurface(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + int DestroyWindowSurface(Ref window); + + [NativeFunction("SDL3", EntryPoint = "DetachThread")] + void DetachThread(SDL_Thread* thread); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] + void DetachThread(Ref thread); + + [NativeFunction("SDL3", EntryPoint = "DetachVirtualJoystick")] + int DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "DisableScreenSaver")] + int DisableScreenSaver(); + + [NativeFunction("SDL3", EntryPoint = "DuplicateSurface")] + Surface* DuplicateSurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] + Ptr DuplicateSurface(Ref surface); + + [return: NativeTypeName("SDL_EGLConfig")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + Ptr EGLGetCurrentEGLConfig(); + + [return: NativeTypeName("SDL_EGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + void* EGLGetCurrentEGLConfigRaw(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + Ptr EGLGetCurrentEGLDisplay(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + void* EGLGetCurrentEGLDisplayRaw(); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "EGLGetProcAddress")] + delegate* unmanaged EGLGetProcAddress([NativeTypeName("const char *")] sbyte* proc); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] + delegate* unmanaged EGLGetProcAddress([NativeTypeName("const char *")] Ref proc); + + [return: NativeTypeName("SDL_EGLSurface")] + [NativeFunction("SDL3", EntryPoint = "EGLGetWindowEGLSurface")] + void* EGLGetWindowEGLSurface(SDL_Window* window); + + [return: NativeTypeName("SDL_EGLSurface")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + Ptr EGLGetWindowEGLSurface(Ref window); + + [NativeFunction("SDL3", EntryPoint = "EGLSetEGLAttributeCallbacks")] + void EGLSetEGLAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + delegate* unmanaged platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] delegate* unmanaged surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] delegate* unmanaged contextAttribCallback + ); + + [NativeFunction("SDL3", EntryPoint = "EnableScreenSaver")] + int EnableScreenSaver(); + + [NativeFunction("SDL3", EntryPoint = "EnumerateDirectory")] + int EnumerateDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] + int EnumerateDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "EnumerateProperties")] + int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] + int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "EnumerateStorageDirectory")] + int EnumerateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] + int EnumerateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "Error")] + int Error(Errorcode code); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + int EventEnabledRaw([NativeTypeName("Uint32")] uint type); + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRect")] + int FillSurfaceRect( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("Uint32")] uint color + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] + int FillSurfaceRect( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("Uint32")] uint color + ); + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRects")] + int FillSurfaceRects( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int count, + [NativeTypeName("Uint32")] uint color + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] + int FillSurfaceRects( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int count, + [NativeTypeName("Uint32")] uint color + ); + + [NativeFunction("SDL3", EntryPoint = "FilterEvents")] + void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FilterEvents")] + void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "FlashWindow")] + int FlashWindow(SDL_Window* window, FlashOperation operation); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + int FlashWindow(Ref window, FlashOperation operation); + + [NativeFunction("SDL3", EntryPoint = "FlipSurface")] + int FlipSurface(Surface* surface, FlipMode flip); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] + int FlipSurface(Ref surface, FlipMode flip); + + [NativeFunction("SDL3", EntryPoint = "FlushAudioStream")] + int FlushAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + int FlushAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "FlushEvent")] + void FlushEvent([NativeTypeName("Uint32")] uint type); + + [NativeFunction("SDL3", EntryPoint = "FlushEvents")] + void FlushEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [NativeFunction("SDL3", EntryPoint = "FlushRenderer")] + int FlushRenderer(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + int FlushRenderer(Ref renderer); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadConnected")] + int GamepadConnected(SDL_Gamepad* gamepad); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] + MaybeBool GamepadConnected(Ref gamepad); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + MaybeBool GamepadEventsEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + int GamepadEventsEnabledRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasAxis")] + int GamepadHasAxis(SDL_Gamepad* gamepad, GamepadAxis axis); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] + MaybeBool GamepadHasAxis(Ref gamepad, GamepadAxis axis); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasButton")] + int GamepadHasButton(SDL_Gamepad* gamepad, GamepadButton button); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] + MaybeBool GamepadHasButton(Ref gamepad, GamepadButton button); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasSensor")] + int GamepadHasSensor(SDL_Gamepad* gamepad, SensorType type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] + MaybeBool GamepadHasSensor(Ref gamepad, SensorType type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadSensorEnabled")] + int GamepadSensorEnabled(SDL_Gamepad* gamepad, SensorType type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] + MaybeBool GamepadSensorEnabled(Ref gamepad, SensorType type); + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetAssertionHandler")] + delegate* unmanaged GetAssertionHandler(void** puserdata); + + [return: NativeTypeName("SDL_AssertionHandler")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] + delegate* unmanaged GetAssertionHandler(Ref2D puserdata); + + [return: NativeTypeName("const SDL_AssertData *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + Ptr GetAssertionReport(); + + [return: NativeTypeName("const SDL_AssertData *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + AssertData* GetAssertionReportRaw(); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioCaptureDevices")] + uint* GetAudioCaptureDevices(int* count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + Ptr GetAudioCaptureDevices(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetAudioDeviceFormat")] + int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioSpec* spec, + int* sample_frames + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] + int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref spec, + Ref sample_frames + ); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + sbyte* GetAudioDeviceNameRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + Ptr GetAudioDriver(int index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + sbyte* GetAudioDriverRaw(int index); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioOutputDevices")] + uint* GetAudioOutputDevices(int* count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + Ptr GetAudioOutputDevices(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamAvailable")] + int GetAudioStreamAvailable(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] + int GetAudioStreamAvailable(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamData")] + int GetAudioStreamData(SDL_AudioStream* stream, void* buf, int len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamData")] + int GetAudioStreamData(Ref stream, Ref buf, int len); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamDevice")] + uint GetAudioStreamDevice(SDL_AudioStream* stream); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamDevice")] + uint GetAudioStreamDevice(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFormat")] + int GetAudioStreamFormat(SDL_AudioStream* stream, AudioSpec* src_spec, AudioSpec* dst_spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] + int GetAudioStreamFormat( + Ref stream, + Ref src_spec, + Ref dst_spec + ); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFrequencyRatio")] + float GetAudioStreamFrequencyRatio(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] + float GetAudioStreamFrequencyRatio(Ref stream); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamProperties")] + uint GetAudioStreamProperties(SDL_AudioStream* stream); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] + uint GetAudioStreamProperties(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamQueued")] + int GetAudioStreamQueued(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamQueued")] + int GetAudioStreamQueued(Ref stream); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + Ptr GetBasePath(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + sbyte* GetBasePathRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetBooleanProperty")] + int GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_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 = "GetCameraDevicePosition")] + CameraPosition GetCameraDevicePosition([NativeTypeName("SDL_CameraDeviceID")] uint instance_id); + + [return: NativeTypeName("SDL_CameraDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetCameraDevices")] + uint* GetCameraDevices(int* count); + + [return: NativeTypeName("SDL_CameraDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] + Ptr GetCameraDevices(Ref count); + + [NativeFunction("SDL3", EntryPoint = "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 + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + Ptr GetCameraDriver(int index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + sbyte* GetCameraDriverRaw(int index); + + [NativeFunction("SDL3", EntryPoint = "GetCameraFormat")] + int GetCameraFormat(SDL_Camera* camera, CameraSpec* spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + int GetCameraFormat(Ref camera, Ref spec); + + [return: NativeTypeName("SDL_CameraDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraInstanceID")] + uint GetCameraInstanceID(SDL_Camera* camera); + + [return: NativeTypeName("SDL_CameraDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] + uint GetCameraInstanceID(Ref camera); + + [NativeFunction("SDL3", EntryPoint = "GetCameraPermissionState")] + int GetCameraPermissionState(SDL_Camera* camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] + int GetCameraPermissionState(Ref camera); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraProperties")] + uint GetCameraProperties(SDL_Camera* camera); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] + uint GetCameraProperties(Ref camera); + + [NativeFunction("SDL3", EntryPoint = "GetClipboardData")] + void* GetClipboardData( + [NativeTypeName("const char *")] sbyte* mime_type, + [NativeTypeName("size_t *")] nuint* size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] + Ptr GetClipboardData( + [NativeTypeName("const char *")] Ref mime_type, + [NativeTypeName("size_t *")] Ref size + ); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + Ptr GetClipboardText(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + sbyte* GetClipboardTextRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetClosestFullscreenDisplayMode")] + DisplayMode* GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] int include_high_density_modes + ); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] + Ptr GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes + ); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCacheLineSize")] + int GetCPUCacheLineSize(); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCount")] + int GetCPUCount(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + Ptr GetCurrentAudioDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + sbyte* GetCurrentAudioDriverRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + Ptr GetCurrentCameraDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + sbyte* GetCurrentCameraDriverRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + Ptr GetCurrentDisplayMode([NativeTypeName("SDL_DisplayID")] uint displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + DisplayMode* GetCurrentDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentDisplayOrientation")] + DisplayOrientation GetCurrentDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentRenderOutputSize")] + int GetCurrentRenderOutputSize(SDL_Renderer* renderer, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] + int GetCurrentRenderOutputSize(Ref renderer, Ref w, Ref h); + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetCurrentThreadID")] + ulong GetCurrentThreadID(); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentTime")] + int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] + int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + Ptr GetCurrentVideoDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + sbyte* GetCurrentVideoDriverRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + Ptr GetCursor(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + SDL_Cursor* GetCursorRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfWeek")] + int GetDayOfWeek(int year, int month, int day); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfYear")] + int GetDayOfYear(int year, int month, int day); + + [NativeFunction("SDL3", EntryPoint = "GetDaysInMonth")] + int GetDaysInMonth(int year, int month); + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetDefaultAssertionHandler")] + delegate* unmanaged GetDefaultAssertionHandler(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + Ptr GetDefaultCursor(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + SDL_Cursor* GetDefaultCursorRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + Ptr GetDesktopDisplayMode([NativeTypeName("SDL_DisplayID")] uint displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + DisplayMode* GetDesktopDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayBounds")] + int GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] + int GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayContentScale")] + float GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uint displayID); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForPoint")] + uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Point* point); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForPoint")] + uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Ref point); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForRect")] + uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Rect* rect); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForRect")] + uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref rect); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForWindow")] + uint GetDisplayForWindow(SDL_Window* window); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForWindow")] + uint GetDisplayForWindow(Ref window); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint displayID); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + sbyte* GetDisplayNameRaw([NativeTypeName("SDL_DisplayID")] uint displayID); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayProperties")] + uint GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayID); + + [return: NativeTypeName("SDL_DisplayID *")] + [NativeFunction("SDL3", EntryPoint = "GetDisplays")] + uint* GetDisplays(int* count); + + [return: NativeTypeName("SDL_DisplayID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplays")] + Ptr GetDisplays(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayUsableBounds")] + int GetDisplayUsableBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] + int GetDisplayUsableBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Ref rect); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + Ptr GetError(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + sbyte* GetErrorRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetEventFilter")] + int GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + void** userdata + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] + MaybeBool GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + Ref2D userdata + ); + + [NativeFunction("SDL3", EntryPoint = "GetFloatProperty")] + float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float default_value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFloatProperty")] + float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float default_value + ); + + [return: NativeTypeName("const SDL_DisplayMode **")] + [NativeFunction("SDL3", EntryPoint = "GetFullscreenDisplayModes")] + DisplayMode** GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int* count + ); + + [return: NativeTypeName("const SDL_DisplayMode **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] + Ptr2D GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref count + ); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForAxis")] + sbyte* GetGamepadAppleSFSymbolsNameForAxis(SDL_Gamepad* gamepad, GamepadAxis axis); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForAxis")] + Ptr GetGamepadAppleSFSymbolsNameForAxis(Ref gamepad, GamepadAxis axis); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForButton")] + sbyte* GetGamepadAppleSFSymbolsNameForButton(SDL_Gamepad* gamepad, GamepadButton button); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForButton")] + Ptr GetGamepadAppleSFSymbolsNameForButton( + Ref gamepad, + GamepadButton button + ); + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxis")] + short GetGamepadAxis(SDL_Gamepad* gamepad, GamepadAxis axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxis")] + short GetGamepadAxis(Ref gamepad, GamepadAxis axis); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxisFromString")] + GamepadAxis GetGamepadAxisFromString([NativeTypeName("const char *")] sbyte* str); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxisFromString")] + GamepadAxis GetGamepadAxisFromString([NativeTypeName("const char *")] Ref str); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadBindings")] + GamepadBinding** GetGamepadBindings(SDL_Gamepad* gamepad, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadBindings")] + Ptr2D GetGamepadBindings(Ref gamepad, Ref count); + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadButton")] + byte GetGamepadButton(SDL_Gamepad* gamepad, GamepadButton button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + byte GetGamepadButton(Ref gamepad, GamepadButton button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonFromString")] + GamepadButton GetGamepadButtonFromString([NativeTypeName("const char *")] sbyte* str); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] + GamepadButton GetGamepadButtonFromString([NativeTypeName("const char *")] Ref str); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabel")] + GamepadButtonLabel GetGamepadButtonLabel(SDL_Gamepad* gamepad, GamepadButton button); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonLabel")] + GamepadButtonLabel GetGamepadButtonLabel(Ref gamepad, GamepadButton button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabelForType")] + GamepadButtonLabel GetGamepadButtonLabelForType(GamepadType type, GamepadButton button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadConnectionState")] + JoystickConnectionState GetGamepadConnectionState(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] + JoystickConnectionState GetGamepadConnectionState(Ref gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadFirmwareVersion")] + ushort GetGamepadFirmwareVersion(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFirmwareVersion")] + ushort GetGamepadFirmwareVersion(Ref gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + Ptr GetGamepadFromInstanceID([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + SDL_Gamepad* GetGamepadFromInstanceIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + Ptr GetGamepadFromPlayerIndex(int player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + SDL_Gamepad* GetGamepadFromPlayerIndexRaw(int player_index); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceGuid")] + Guid GetGamepadInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceID")] + uint GetGamepadInstanceID(SDL_Gamepad* gamepad); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] + uint GetGamepadInstanceID(Ref 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 = "GetGamepadInstancePlayerIndex")] + int GetGamepadInstancePlayerIndex([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceProduct")] + ushort GetGamepadInstanceProduct([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceProductVersion")] + ushort GetGamepadInstanceProductVersion([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceType")] + GamepadType GetGamepadInstanceType([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceVendor")] + ushort GetGamepadInstanceVendor([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadJoystick")] + SDL_Joystick* GetGamepadJoystick(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] + Ptr GetGamepadJoystick(Ref gamepad); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMapping")] + sbyte* GetGamepadMapping(SDL_Gamepad* gamepad); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] + Ptr GetGamepadMapping(Ref gamepad); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + Ptr GetGamepadMappingForGuid([NativeTypeName("SDL_JoystickGUID")] Guid guid); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + sbyte* GetGamepadMappingForGuidRaw([NativeTypeName("SDL_JoystickGUID")] Guid guid); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMappings")] + sbyte** GetGamepadMappings(int* count); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappings")] + Ptr2D GetGamepadMappings(Ref count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadName")] + sbyte* GetGamepadName(SDL_Gamepad* gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] + Ptr GetGamepadName(Ref gamepad); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadPath")] + sbyte* GetGamepadPath(SDL_Gamepad* gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] + Ptr GetGamepadPath(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPlayerIndex")] + int GetGamepadPlayerIndex(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndex")] + int GetGamepadPlayerIndex(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPowerInfo")] + PowerState GetGamepadPowerInfo(SDL_Gamepad* gamepad, int* percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] + PowerState GetGamepadPowerInfo(Ref gamepad, Ref percent); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProduct")] + ushort GetGamepadProduct(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProduct")] + ushort GetGamepadProduct(Ref gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProductVersion")] + ushort GetGamepadProductVersion(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] + ushort GetGamepadProductVersion(Ref gamepad); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProperties")] + uint GetGamepadProperties(SDL_Gamepad* gamepad); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] + uint GetGamepadProperties(Ref gamepad); + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepads")] + uint* GetGamepads(int* count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepads")] + Ptr GetGamepads(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorData")] + int GetGamepadSensorData(SDL_Gamepad* gamepad, SensorType type, float* data, int num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] + int GetGamepadSensorData( + Ref gamepad, + SensorType type, + Ref data, + int num_values + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorDataRate")] + float GetGamepadSensorDataRate(SDL_Gamepad* gamepad, SensorType type); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorDataRate")] + float GetGamepadSensorDataRate(Ref gamepad, SensorType type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSerial")] + sbyte* GetGamepadSerial(SDL_Gamepad* gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSerial")] + Ptr GetGamepadSerial(Ref gamepad); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSteamHandle")] + ulong GetGamepadSteamHandle(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSteamHandle")] + ulong GetGamepadSteamHandle(Ref gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + Ptr GetGamepadStringForAxis(GamepadAxis axis); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + sbyte* GetGamepadStringForAxisRaw(GamepadAxis axis); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + Ptr GetGamepadStringForButton(GamepadButton button); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + sbyte* GetGamepadStringForButtonRaw(GamepadButton button); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + Ptr GetGamepadStringForType(GamepadType type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + sbyte* GetGamepadStringForTypeRaw(GamepadType type); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTouchpadFinger")] + int GetGamepadTouchpadFinger( + SDL_Gamepad* gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] byte* state, + float* x, + float* y, + float* pressure + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] + int GetGamepadTouchpadFinger( + Ref gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] Ref state, + Ref x, + Ref y, + Ref pressure + ); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadType")] + GamepadType GetGamepadType(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] + GamepadType GetGamepadType(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTypeFromString")] + GamepadType GetGamepadTypeFromString([NativeTypeName("const char *")] sbyte* str); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] + GamepadType GetGamepadTypeFromString([NativeTypeName("const char *")] Ref str); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadVendor")] + ushort GetGamepadVendor(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendor")] + ushort GetGamepadVendor(Ref gamepad); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalMouseState")] + uint GetGlobalMouseState(float* x, float* y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] + uint GetGlobalMouseState(Ref x, Ref y); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalProperties")] + uint GetGlobalProperties(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + Ptr GetGrabbedWindow(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + SDL_Window* GetGrabbedWindowRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetHapticEffectStatus")] + int GetHapticEffectStatus(SDL_Haptic* haptic, int effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + int GetHapticEffectStatus(Ref haptic, int effect); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetHapticFeatures")] + uint GetHapticFeatures(SDL_Haptic* haptic); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] + uint GetHapticFeatures(Ref haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + Ptr GetHapticFromInstanceID([NativeTypeName("SDL_HapticID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + SDL_Haptic* GetHapticFromInstanceIDRaw([NativeTypeName("SDL_HapticID")] uint instance_id); + + [return: NativeTypeName("SDL_HapticID")] + [NativeFunction("SDL3", EntryPoint = "GetHapticInstanceID")] + uint GetHapticInstanceID(SDL_Haptic* haptic); + + [return: NativeTypeName("SDL_HapticID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] + uint GetHapticInstanceID(Ref haptic); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + Ptr GetHapticInstanceName([NativeTypeName("SDL_HapticID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + sbyte* GetHapticInstanceNameRaw([NativeTypeName("SDL_HapticID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHapticName")] + sbyte* GetHapticName(SDL_Haptic* haptic); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + Ptr GetHapticName(Ref haptic); + + [return: NativeTypeName("SDL_HapticID *")] + [NativeFunction("SDL3", EntryPoint = "GetHaptics")] + uint* GetHaptics(int* count); + + [return: NativeTypeName("SDL_HapticID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHaptics")] + Ptr GetHaptics(Ref count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHint")] + sbyte* GetHint([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHint")] + Ptr GetHint([NativeTypeName("const char *")] Ref name); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetHintBoolean")] + int GetHintBoolean( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] + MaybeBool GetHintBoolean( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetIOProperties")] + uint GetIOProperties(SDL_IOStream* context); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOProperties")] + uint GetIOProperties(Ref context); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetIOSize")] + long GetIOSize(SDL_IOStream* context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOSize")] + long GetIOSize(Ref context); + + [NativeFunction("SDL3", EntryPoint = "GetIOStatus")] + IOStatus GetIOStatus(SDL_IOStream* context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOStatus")] + IOStatus GetIOStatus(Ref context); + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxis")] + short GetJoystickAxis(SDL_Joystick* joystick, int axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxis")] + short GetJoystickAxis(Ref joystick, int axis); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxisInitialState")] + int GetJoystickAxisInitialState( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16 *")] short* state + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] + MaybeBool GetJoystickAxisInitialState( + Ref joystick, + int axis, + [NativeTypeName("Sint16 *")] Ref state + ); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickBall")] + int GetJoystickBall(SDL_Joystick* joystick, int ball, int* dx, int* dy); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] + int GetJoystickBall(Ref joystick, int ball, Ref dx, Ref dy); + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickButton")] + byte GetJoystickButton(SDL_Joystick* joystick, int button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + byte GetJoystickButton(Ref joystick, int button); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickConnectionState")] + JoystickConnectionState GetJoystickConnectionState(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] + JoystickConnectionState GetJoystickConnectionState(Ref joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickFirmwareVersion")] + ushort GetJoystickFirmwareVersion(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFirmwareVersion")] + ushort GetJoystickFirmwareVersion(Ref joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + Ptr GetJoystickFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + SDL_Joystick* GetJoystickFromInstanceIDRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + Ptr GetJoystickFromPlayerIndex(int player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + SDL_Joystick* GetJoystickFromPlayerIndexRaw(int player_index); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickGuid")] + Guid GetJoystickGuid(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_JoystickGUID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] + Guid GetJoystickGuid(Ref joystick); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickGuidInfo")] + void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] ushort* vendor, + [NativeTypeName("Uint16 *")] ushort* product, + [NativeTypeName("Uint16 *")] ushort* version, + [NativeTypeName("Uint16 *")] ushort* crc16 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] + void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] Ref vendor, + [NativeTypeName("Uint16 *")] Ref product, + [NativeTypeName("Uint16 *")] Ref version, + [NativeTypeName("Uint16 *")] Ref crc16 + ); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickHat")] + byte GetJoystickHat(SDL_Joystick* joystick, int hat); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] + byte GetJoystickHat(Ref joystick, int hat); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceGuid")] + Guid GetJoystickInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceID")] + uint GetJoystickInstanceID(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] + uint GetJoystickInstanceID(Ref 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); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + Ptr GetJoystickInstancePath([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 = "GetJoystickInstancePlayerIndex")] + int GetJoystickInstancePlayerIndex([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceProduct")] + ushort GetJoystickInstanceProduct([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceProductVersion")] + ushort GetJoystickInstanceProductVersion([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceType")] + JoystickType GetJoystickInstanceType([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceVendor")] + ushort GetJoystickInstanceVendor([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickName")] + sbyte* GetJoystickName(SDL_Joystick* joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + Ptr GetJoystickName(Ref joystick); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickPath")] + sbyte* GetJoystickPath(SDL_Joystick* joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] + Ptr GetJoystickPath(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPlayerIndex")] + int GetJoystickPlayerIndex(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndex")] + int GetJoystickPlayerIndex(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPowerInfo")] + PowerState GetJoystickPowerInfo(SDL_Joystick* joystick, int* percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] + PowerState GetJoystickPowerInfo(Ref joystick, Ref percent); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProduct")] + ushort GetJoystickProduct(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProduct")] + ushort GetJoystickProduct(Ref joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProductVersion")] + ushort GetJoystickProductVersion(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] + ushort GetJoystickProductVersion(Ref joystick); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProperties")] + uint GetJoystickProperties(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] + uint GetJoystickProperties(Ref joystick); + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetJoysticks")] + uint* GetJoysticks(int* count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoysticks")] + Ptr GetJoysticks(Ref count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickSerial")] + sbyte* GetJoystickSerial(SDL_Joystick* joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickSerial")] + Ptr GetJoystickSerial(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickType")] + JoystickType GetJoystickType(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickType")] + JoystickType GetJoystickType(Ref joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickVendor")] + ushort GetJoystickVendor(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] + ushort GetJoystickVendor(Ref joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + Ptr GetKeyboardFocus(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + SDL_Window* GetKeyboardFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + Ptr GetKeyboardInstanceName([NativeTypeName("SDL_KeyboardID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + sbyte* GetKeyboardInstanceNameRaw([NativeTypeName("SDL_KeyboardID")] uint instance_id); + + [return: NativeTypeName("SDL_KeyboardID *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboards")] + uint* GetKeyboards(int* count); + + [return: NativeTypeName("SDL_KeyboardID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] + Ptr GetKeyboards(Ref count); + + [return: NativeTypeName("const Uint8 *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboardState")] + byte* GetKeyboardState(int* numkeys); + + [return: NativeTypeName("const Uint8 *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] + Ptr GetKeyboardState(Ref numkeys); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromName")] + int GetKeyFromName([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("SDL_Keycode")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] + int GetKeyFromName([NativeTypeName("const char *")] Ref name); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromScancode")] + int GetKeyFromScancode(Scancode scancode); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] + Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] + sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key); + + [NativeFunction("SDL3", EntryPoint = "GetLogOutputFunction")] + void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + void** userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] + void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + Ref2D userdata + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetMasksForPixelFormatEnum")] + int GetMasksForPixelFormatEnum( + PixelFormatEnum format, + int* bpp, + [NativeTypeName("Uint32 *")] uint* Rmask, + [NativeTypeName("Uint32 *")] uint* Gmask, + [NativeTypeName("Uint32 *")] uint* Bmask, + [NativeTypeName("Uint32 *")] uint* Amask + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + MaybeBool GetMasksForPixelFormatEnum( + PixelFormatEnum format, + Ref bpp, + [NativeTypeName("Uint32 *")] Ref Rmask, + [NativeTypeName("Uint32 *")] Ref Gmask, + [NativeTypeName("Uint32 *")] Ref Bmask, + [NativeTypeName("Uint32 *")] Ref Amask + ); + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffects")] + int GetMaxHapticEffects(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffects")] + int GetMaxHapticEffects(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffectsPlaying")] + int GetMaxHapticEffectsPlaying(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffectsPlaying")] + int GetMaxHapticEffectsPlaying(Ref haptic); + + [return: NativeTypeName("SDL_MouseID *")] + [NativeFunction("SDL3", EntryPoint = "GetMice")] + uint* GetMice(int* count); + + [return: NativeTypeName("SDL_MouseID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMice")] + Ptr GetMice(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetModState")] + Keymod GetModState(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + Ptr GetMouseFocus(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + SDL_Window* GetMouseFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + Ptr GetMouseInstanceName([NativeTypeName("SDL_MouseID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + sbyte* GetMouseInstanceNameRaw([NativeTypeName("SDL_MouseID")] uint instance_id); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetMouseState")] + uint GetMouseState(float* x, float* y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] + uint GetMouseState(Ref x, Ref y); + + [NativeFunction("SDL3", EntryPoint = "GetNaturalDisplayOrientation")] + DisplayOrientation GetNaturalDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [NativeFunction("SDL3", EntryPoint = "GetNumAudioDrivers")] + int GetNumAudioDrivers(); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetNumberProperty")] + long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long default_value + ); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumberProperty")] + long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long default_value + ); + + [NativeFunction("SDL3", EntryPoint = "GetNumCameraDrivers")] + int GetNumCameraDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpadFingers")] + int GetNumGamepadTouchpadFingers(SDL_Gamepad* gamepad, int touchpad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpadFingers")] + int GetNumGamepadTouchpadFingers(Ref gamepad, int touchpad); + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpads")] + int GetNumGamepadTouchpads(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpads")] + int GetNumGamepadTouchpads(Ref gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetNumHapticAxes")] + int GetNumHapticAxes(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumHapticAxes")] + int GetNumHapticAxes(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickAxes")] + int GetNumJoystickAxes(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickAxes")] + int GetNumJoystickAxes(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickBalls")] + int GetNumJoystickBalls(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickBalls")] + int GetNumJoystickBalls(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickButtons")] + int GetNumJoystickButtons(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickButtons")] + int GetNumJoystickButtons(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickHats")] + int GetNumJoystickHats(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickHats")] + int GetNumJoystickHats(Ref joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumRenderDrivers")] + int GetNumRenderDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetNumVideoDrivers")] + int GetNumVideoDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetPathInfo")] + int GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] + int GetPathInfo([NativeTypeName("const char *")] Ref path, Ref info); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "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 = "GetPenFromGuid")] + uint GetPenFromGuid(Guid guid); + + [NativeFunction("SDL3", EntryPoint = "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 = "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 = "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 + ); + + [NativeFunction("SDL3", EntryPoint = "GetPenType")] + PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceCounter")] + ulong GetPerformanceCounter(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceFrequency")] + ulong GetPerformanceFrequency(); + + [NativeFunction("SDL3", EntryPoint = "GetPixelFormatEnumForMasks")] + PixelFormatEnum GetPixelFormatEnumForMasks( + int bpp, + [NativeTypeName("Uint32")] uint Rmask, + [NativeTypeName("Uint32")] uint Gmask, + [NativeTypeName("Uint32")] uint Bmask, + [NativeTypeName("Uint32")] uint Amask + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] + Ptr GetPixelFormatName(PixelFormatEnum format); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] + sbyte* GetPixelFormatNameRaw(PixelFormatEnum format); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + Ptr GetPlatform(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + sbyte* GetPlatformRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetPowerInfo")] + PowerState GetPowerInfo(int* seconds, int* percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] + PowerState GetPowerInfo(Ref seconds, Ref percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] + Ptr GetPreferredLocales(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] + Locale* GetPreferredLocalesRaw(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "GetPrefPath")] + sbyte* GetPrefPath( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app + ); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] + Ptr GetPrefPath( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app + ); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetPrimaryDisplay")] + uint GetPrimaryDisplay(); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + Ptr GetPrimarySelectionText(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + sbyte* GetPrimarySelectionTextRaw(); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetPropertyType")] + PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] + PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ); + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadInstanceType")] + GamepadType GetRealGamepadInstanceType([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadType")] + GamepadType GetRealGamepadType(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] + GamepadType GetRealGamepadType(Ref gamepad); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersection")] + int GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int* X1, + int* Y1, + int* X2, + int* Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] + MaybeBool GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersectionFloat")] + int GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* rect, + float* X1, + float* Y1, + float* X2, + float* Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] + MaybeBool GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPoints")] + int GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Point* points, + int count, + [NativeTypeName("const SDL_Rect *")] Rect* clip, + Rect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] + MaybeBool GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Ref points, + int count, + [NativeTypeName("const SDL_Rect *")] Ref clip, + Ref result + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPointsFloat")] + int GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count, + [NativeTypeName("const SDL_FRect *")] FRect* clip, + FRect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] + MaybeBool GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count, + [NativeTypeName("const SDL_FRect *")] Ref clip, + Ref result + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersection")] + int GetRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] + MaybeBool GetRectIntersection( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersectionFloat")] + int GetRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] + MaybeBool GetRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B, + Ref result + ); + + [NativeFunction("SDL3", EntryPoint = "GetRectUnion")] + int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] + int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ); + + [NativeFunction("SDL3", EntryPoint = "GetRectUnionFloat")] + int GetRectUnionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] + int 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")] + [NativeFunction("SDL3", EntryPoint = "GetRelativeMouseState")] + uint GetRelativeMouseState(float* x, float* y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] + uint GetRelativeMouseState(Ref x, Ref y); + + [NativeFunction("SDL3", EntryPoint = "GetRenderClipRect")] + int GetRenderClipRect(SDL_Renderer* renderer, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] + int GetRenderClipRect(Ref renderer, Ref rect); + + [NativeFunction("SDL3", EntryPoint = "GetRenderColorScale")] + int GetRenderColorScale(SDL_Renderer* renderer, float* scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] + int GetRenderColorScale(Ref renderer, Ref scale); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawBlendMode")] + int GetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode* blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] + int GetRenderDrawBlendMode(Ref renderer, Ref blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColor")] + int GetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] + int GetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColorFloat")] + int GetRenderDrawColorFloat(SDL_Renderer* renderer, float* r, float* g, float* b, float* a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] + int GetRenderDrawColorFloat( + Ref renderer, + Ref r, + Ref g, + Ref b, + Ref a + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + Ptr GetRenderDriver(int index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + sbyte* GetRenderDriverRaw(int index); + + [NativeFunction("SDL3", EntryPoint = "GetRenderer")] + SDL_Renderer* GetRenderer(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderer")] + Ptr GetRenderer(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetRendererFromTexture")] + SDL_Renderer* GetRendererFromTexture(SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] + Ptr GetRendererFromTexture(Ref texture); + + [NativeFunction("SDL3", EntryPoint = "GetRendererInfo")] + int GetRendererInfo(SDL_Renderer* renderer, RendererInfo* info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + int GetRendererInfo(Ref renderer, Ref info); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetRendererProperties")] + uint GetRendererProperties(SDL_Renderer* renderer); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] + uint GetRendererProperties(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderLogicalPresentation")] + int GetRenderLogicalPresentation( + SDL_Renderer* renderer, + int* w, + int* h, + RendererLogicalPresentation* mode, + ScaleMode* scale_mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] + int GetRenderLogicalPresentation( + Ref renderer, + Ref w, + Ref h, + Ref mode, + Ref scale_mode + ); + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalCommandEncoder")] + void* GetRenderMetalCommandEncoder(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalCommandEncoder")] + Ptr GetRenderMetalCommandEncoder(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalLayer")] + void* GetRenderMetalLayer(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalLayer")] + Ptr GetRenderMetalLayer(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderOutputSize")] + int GetRenderOutputSize(SDL_Renderer* renderer, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] + int GetRenderOutputSize(Ref renderer, Ref w, Ref h); + + [NativeFunction("SDL3", EntryPoint = "GetRenderScale")] + int GetRenderScale(SDL_Renderer* renderer, float* scaleX, float* scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] + int GetRenderScale(Ref renderer, Ref scaleX, Ref scaleY); + + [NativeFunction("SDL3", EntryPoint = "GetRenderTarget")] + SDL_Texture* GetRenderTarget(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + Ptr GetRenderTarget(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderViewport")] + int GetRenderViewport(SDL_Renderer* renderer, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] + int GetRenderViewport(Ref renderer, Ref rect); + + [NativeFunction("SDL3", EntryPoint = "GetRenderVSync")] + int GetRenderVSync(SDL_Renderer* renderer, int* vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] + int GetRenderVSync(Ref renderer, Ref vsync); + + [NativeFunction("SDL3", EntryPoint = "GetRenderWindow")] + SDL_Window* GetRenderWindow(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] + Ptr GetRenderWindow(Ref renderer); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + Ptr GetRevision(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + sbyte* GetRevisionRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetRGB")] + void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] + void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ); + + [NativeFunction("SDL3", EntryPoint = "GetRgba")] + void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] + void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ); + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromKey")] + Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key); + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromName")] + Scancode GetScancodeFromName([NativeTypeName("const char *")] sbyte* name); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] + Scancode GetScancodeFromName([NativeTypeName("const char *")] Ref name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + Ptr GetScancodeName(Scancode scancode); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + sbyte* GetScancodeNameRaw(Scancode scancode); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetSemaphoreValue")] + uint GetSemaphoreValue(SDL_Semaphore* sem); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSemaphoreValue")] + uint GetSemaphoreValue(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "GetSensorData")] + int GetSensorData(SDL_Sensor* sensor, float* data, int num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] + int GetSensorData(Ref sensor, Ref data, int num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + Ptr GetSensorFromInstanceID([NativeTypeName("SDL_SensorID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + SDL_Sensor* GetSensorFromInstanceIDRaw([NativeTypeName("SDL_SensorID")] uint instance_id); + + [return: NativeTypeName("SDL_SensorID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceID")] + uint GetSensorInstanceID(SDL_Sensor* sensor); + + [return: NativeTypeName("SDL_SensorID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] + uint GetSensorInstanceID(Ref sensor); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + Ptr GetSensorInstanceName([NativeTypeName("SDL_SensorID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + sbyte* GetSensorInstanceNameRaw([NativeTypeName("SDL_SensorID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceNonPortableType")] + int GetSensorInstanceNonPortableType([NativeTypeName("SDL_SensorID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceType")] + SensorType GetSensorInstanceType([NativeTypeName("SDL_SensorID")] uint instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetSensorName")] + sbyte* GetSensorName(SDL_Sensor* sensor); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + Ptr GetSensorName(Ref sensor); + + [NativeFunction("SDL3", EntryPoint = "GetSensorNonPortableType")] + int GetSensorNonPortableType(SDL_Sensor* sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableType")] + int GetSensorNonPortableType(Ref sensor); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorProperties")] + uint GetSensorProperties(SDL_Sensor* sensor); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] + uint GetSensorProperties(Ref sensor); + + [return: NativeTypeName("SDL_SensorID *")] + [NativeFunction("SDL3", EntryPoint = "GetSensors")] + uint* GetSensors(int* count); + + [return: NativeTypeName("SDL_SensorID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensors")] + Ptr GetSensors(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetSensorType")] + SensorType GetSensorType(SDL_Sensor* sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorType")] + SensorType GetSensorType(Ref sensor); + + [NativeFunction("SDL3", EntryPoint = "GetSilenceValueForFormat")] + int GetSilenceValueForFormat([NativeTypeName("SDL_AudioFormat")] ushort format); + + [NativeFunction("SDL3", EntryPoint = "GetStorageFileSize")] + int GetStorageFileSize( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("Uint64 *")] ulong* length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] + int GetStorageFileSize( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("Uint64 *")] Ref length + ); + + [NativeFunction("SDL3", EntryPoint = "GetStoragePathInfo")] + int GetStoragePathInfo( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] + int GetStoragePathInfo( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref info + ); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetStorageSpaceRemaining")] + ulong GetStorageSpaceRemaining(SDL_Storage* storage); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageSpaceRemaining")] + ulong GetStorageSpaceRemaining(Ref storage); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetStringProperty")] + sbyte* GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* default_value + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStringProperty")] + Ptr GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref default_value + ); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceAlphaMod")] + int GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] + int GetSurfaceAlphaMod(Ref surface, [NativeTypeName("Uint8 *")] Ref alpha); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceBlendMode")] + int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] + int GetSurfaceBlendMode(Ref surface, Ref blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceClipRect")] + int GetSurfaceClipRect(Surface* surface, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] + int GetSurfaceClipRect(Ref surface, Ref rect); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorKey")] + int GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] + int GetSurfaceColorKey(Ref surface, [NativeTypeName("Uint32 *")] Ref key); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorMod")] + int GetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] + int GetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorspace")] + int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] + int GetSurfaceColorspace(Ref surface, Ref colorspace); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSurfaceProperties")] + uint GetSurfaceProperties(Surface* surface); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] + uint GetSurfaceProperties(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "GetSystemRAM")] + int GetSystemRAM(); + + [NativeFunction("SDL3", EntryPoint = "GetSystemTheme")] + SystemTheme GetSystemTheme(); + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaMod")] + int GetTextureAlphaMod(SDL_Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] + int GetTextureAlphaMod(Ref texture, [NativeTypeName("Uint8 *")] Ref alpha); + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaModFloat")] + int GetTextureAlphaModFloat(SDL_Texture* texture, float* alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] + int GetTextureAlphaModFloat(Ref texture, Ref alpha); + + [NativeFunction("SDL3", EntryPoint = "GetTextureBlendMode")] + int GetTextureBlendMode(SDL_Texture* texture, BlendMode* blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] + int GetTextureBlendMode(Ref texture, Ref blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorMod")] + int GetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] + int GetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ); + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorModFloat")] + int GetTextureColorModFloat(SDL_Texture* texture, float* r, float* g, float* b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] + int GetTextureColorModFloat(Ref texture, Ref r, Ref g, Ref b); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetTextureProperties")] + uint GetTextureProperties(SDL_Texture* texture); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] + uint GetTextureProperties(Ref texture); + + [NativeFunction("SDL3", EntryPoint = "GetTextureScaleMode")] + int GetTextureScaleMode(SDL_Texture* texture, ScaleMode* scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] + int GetTextureScaleMode(Ref texture, Ref scaleMode); + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetThreadID")] + ulong GetThreadID(SDL_Thread* thread); + + [return: NativeTypeName("SDL_ThreadID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadID")] + ulong GetThreadID(Ref thread); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetThreadName")] + sbyte* GetThreadName(SDL_Thread* thread); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadName")] + Ptr GetThreadName(Ref thread); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicks")] + ulong GetTicks(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicksNS")] + ulong GetTicksNS(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] + Ptr GetTLS([NativeTypeName("SDL_TLSID")] uint id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] + void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + Ptr GetTouchDeviceName([NativeTypeName("SDL_TouchID")] ulong touchID); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + sbyte* GetTouchDeviceNameRaw([NativeTypeName("SDL_TouchID")] ulong touchID); + + [return: NativeTypeName("SDL_TouchID *")] + [NativeFunction("SDL3", EntryPoint = "GetTouchDevices")] + ulong* GetTouchDevices(int* count); + + [return: NativeTypeName("SDL_TouchID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDevices")] + Ptr GetTouchDevices(Ref count); + + [NativeFunction("SDL3", EntryPoint = "GetTouchDeviceType")] + TouchDeviceType GetTouchDeviceType([NativeTypeName("SDL_TouchID")] ulong touchID); + + [NativeFunction("SDL3", EntryPoint = "GetTouchFingers")] + Finger** GetTouchFingers([NativeTypeName("SDL_TouchID")] ulong touchID, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchFingers")] + Ptr2D GetTouchFingers([NativeTypeName("SDL_TouchID")] ulong touchID, Ref count); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + Ptr GetUserFolder(Folder folder); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + sbyte* GetUserFolderRaw(Folder folder); + + [NativeFunction("SDL3", EntryPoint = "GetVersion")] + int GetVersion(Version* ver); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVersion")] + int GetVersion(Ref ver); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + Ptr GetVideoDriver(int index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + sbyte* GetVideoDriverRaw(int index); + + [NativeFunction("SDL3", EntryPoint = "GetWindowBordersSize")] + int GetWindowBordersSize(SDL_Window* window, int* top, int* left, int* bottom, int* right); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] + int GetWindowBordersSize( + Ref window, + Ref top, + Ref left, + Ref bottom, + Ref right + ); + + [NativeFunction("SDL3", EntryPoint = "GetWindowDisplayScale")] + float GetWindowDisplayScale(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowDisplayScale")] + float GetWindowDisplayScale(Ref window); + + [return: NativeTypeName("SDL_WindowFlags")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFlags")] + uint GetWindowFlags(SDL_Window* window); + + [return: NativeTypeName("SDL_WindowFlags")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFlags")] + uint GetWindowFlags(Ref window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + Ptr GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + SDL_Window* GetWindowFromIDRaw([NativeTypeName("SDL_WindowID")] uint id); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFullscreenMode")] + DisplayMode* GetWindowFullscreenMode(SDL_Window* window); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFullscreenMode")] + Ptr GetWindowFullscreenMode(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowICCProfile")] + void* GetWindowICCProfile(SDL_Window* window, [NativeTypeName("size_t *")] nuint* size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowICCProfile")] + Ptr GetWindowICCProfile(Ref window, [NativeTypeName("size_t *")] Ref size); + + [return: NativeTypeName("SDL_WindowID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowID")] + uint GetWindowID(SDL_Window* window); + + [return: NativeTypeName("SDL_WindowID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowID")] + uint GetWindowID(Ref window); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowKeyboardGrab")] + int GetWindowKeyboardGrab(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] + MaybeBool GetWindowKeyboardGrab(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowMaximumSize")] + int GetWindowMaximumSize(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] + int GetWindowMaximumSize(Ref window, Ref w, Ref h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowMinimumSize")] + int GetWindowMinimumSize(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] + int GetWindowMinimumSize(Ref window, Ref w, Ref h); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseGrab")] + int GetWindowMouseGrab(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] + MaybeBool GetWindowMouseGrab(Ref window); + + [return: NativeTypeName("const SDL_Rect *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseRect")] + Rect* GetWindowMouseRect(SDL_Window* window); + + [return: NativeTypeName("const SDL_Rect *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseRect")] + Ptr GetWindowMouseRect(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowOpacity")] + int GetWindowOpacity(SDL_Window* window, float* out_opacity); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] + int GetWindowOpacity(Ref window, Ref out_opacity); + + [NativeFunction("SDL3", EntryPoint = "GetWindowParent")] + SDL_Window* GetWindowParent(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] + Ptr GetWindowParent(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelDensity")] + float GetWindowPixelDensity(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelDensity")] + float GetWindowPixelDensity(Ref window); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelFormat")] + uint GetWindowPixelFormat(SDL_Window* window); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] + uint GetWindowPixelFormat(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowPosition")] + int GetWindowPosition(SDL_Window* window, int* x, int* y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] + int GetWindowPosition(Ref window, Ref x, Ref y); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowProperties")] + uint GetWindowProperties(SDL_Window* window); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] + uint GetWindowProperties(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSize")] + int GetWindowSize(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] + int GetWindowSize(Ref window, Ref w, Ref h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSizeInPixels")] + int GetWindowSizeInPixels(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] + int GetWindowSizeInPixels(Ref window, Ref w, Ref h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSurface")] + Surface* GetWindowSurface(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] + Ptr GetWindowSurface(Ref window); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowTitle")] + sbyte* GetWindowTitle(SDL_Window* window); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] + Ptr GetWindowTitle(Ref window); + + [return: NativeTypeName("SDL_GLContext")] + [NativeFunction("SDL3", EntryPoint = "GLCreateContext")] + void* GLCreateContext(SDL_Window* window); + + [return: NativeTypeName("SDL_GLContext")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] + Ptr GLCreateContext(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GLDeleteContext")] + int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GLExtensionSupported")] + int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] + MaybeBool GLExtensionSupported([NativeTypeName("const char *")] Ref extension); + + [NativeFunction("SDL3", EntryPoint = "GLGetAttribute")] + int GLGetAttribute(GLattr attr, int* value); + + [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(); + + [return: NativeTypeName("SDL_GLContext")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] + void* GLGetCurrentContextRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + Ptr GLGetCurrentWindow(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + SDL_Window* GLGetCurrentWindowRaw(); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "GLGetProcAddress")] + delegate* unmanaged GLGetProcAddress([NativeTypeName("const char *")] sbyte* proc); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetProcAddress")] + delegate* unmanaged GLGetProcAddress([NativeTypeName("const char *")] Ref proc); + + [NativeFunction("SDL3", EntryPoint = "GLGetSwapInterval")] + int GLGetSwapInterval(int* interval); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] + int GLGetSwapInterval(Ref interval); + + [NativeFunction("SDL3", EntryPoint = "GLLoadLibrary")] + int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] + int GLLoadLibrary([NativeTypeName("const char *")] Ref path); + + [NativeFunction("SDL3", EntryPoint = "GLMakeCurrent")] + int GLMakeCurrent(SDL_Window* window, [NativeTypeName("SDL_GLContext")] void* context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] + int GLMakeCurrent(Ref window, [NativeTypeName("SDL_GLContext")] Ref context); + + [NativeFunction("SDL3", EntryPoint = "GLResetAttributes")] + void GLResetAttributes(); + + [NativeFunction("SDL3", EntryPoint = "GLSetAttribute")] + int GLSetAttribute(GLattr attr, int value); + + [NativeFunction("SDL3", EntryPoint = "GLSetSwapInterval")] + int GLSetSwapInterval(int interval); + + [NativeFunction("SDL3", EntryPoint = "GLSwapWindow")] + int GLSwapWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + int GLSwapWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "GLUnloadLibrary")] + void GLUnloadLibrary(); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobDirectory")] + sbyte** GlobDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobDirectory")] + Ptr2D GlobDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobStorageDirectory")] + sbyte** GlobStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobStorageDirectory")] + Ptr2D GlobStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ); + + [NativeFunction("SDL3", EntryPoint = "GuidFromString")] + Guid GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GUIDFromString")] + Guid GuidFromString([NativeTypeName("const char *")] Ref pchGUID); + + [NativeFunction("SDL3", EntryPoint = "GuidToString")] + int 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); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticEffectSupported")] + int HapticEffectSupported( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] + MaybeBool HapticEffectSupported( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticRumbleSupported")] + int HapticRumbleSupported(SDL_Haptic* haptic); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] + MaybeBool HapticRumbleSupported(Ref haptic); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + MaybeBool HasAltiVec(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + int HasAltiVecRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + MaybeBool HasArmsimd(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + int HasArmsimdRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + MaybeBool HasAVX(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + MaybeBool HasAVX2(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + int HasAVX2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + MaybeBool HasAVX512F(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + int HasAVX512FRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + int HasAVXRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasClipboardData")] + int HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] + MaybeBool HasClipboardData([NativeTypeName("const char *")] Ref mime_type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + MaybeBool HasClipboardText(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + int HasClipboardTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + MaybeBool HasEvent([NativeTypeName("Uint32")] uint type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + int HasEventRaw([NativeTypeName("Uint32")] uint type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + MaybeBool HasEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + int HasEventsRaw( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + MaybeBool HasGamepad(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + int HasGamepadRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + MaybeBool HasJoystick(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + int HasJoystickRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + MaybeBool HasKeyboard(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + int HasKeyboardRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + MaybeBool HasLasx(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + int HasLasxRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + MaybeBool HasLSX(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + int HasLSXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + MaybeBool HasMMX(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + int HasMMXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + MaybeBool HasMouse(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + int HasMouseRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + MaybeBool HasNeon(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + int HasNeonRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + MaybeBool HasPrimarySelectionText(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + int HasPrimarySelectionTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasProperty")] + int HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] + MaybeBool HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersection")] + int HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] + MaybeBool HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersectionFloat")] + int HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] + MaybeBool HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + MaybeBool HasScreenKeyboardSupport(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + int HasScreenKeyboardSupportRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + MaybeBool HasSSE(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + MaybeBool HasSSE2(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + int HasSSE2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + MaybeBool HasSSE3(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + int HasSSE3Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + MaybeBool HasSSE41(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + int HasSSE41Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + MaybeBool HasSSE42(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + int HasSSE42Raw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + int HasSSERaw(); + + [NativeFunction("SDL3", EntryPoint = "HidBleScan")] + void HidBleScan([NativeTypeName("SDL_bool")] int active); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] + void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active); + + [NativeFunction("SDL3", EntryPoint = "HidClose")] + int HidClose(SDL_hid_device* dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] + int HidClose(Ref dev); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "HidDeviceChangeCount")] + uint HidDeviceChangeCount(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + Ptr HidEnumerate( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ); + + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + HidDeviceInfo* HidEnumerateRaw( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ); + + [NativeFunction("SDL3", EntryPoint = "HidExit")] + int HidExit(); + + [NativeFunction("SDL3", EntryPoint = "HidFreeEnumeration")] + void HidFreeEnumeration(HidDeviceInfo* devs); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_free_enumeration")] + void HidFreeEnumeration(Ref devs); + + [NativeFunction("SDL3", EntryPoint = "HidGetDeviceInfo")] + HidDeviceInfo* HidGetDeviceInfo(SDL_hid_device* dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_device_info")] + Ptr HidGetDeviceInfo(Ref dev); + + [NativeFunction("SDL3", EntryPoint = "HidGetFeatureReport")] + int HidGetFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_feature_report")] + int HidGetFeatureReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetIndexedString")] + int HidGetIndexedString( + SDL_hid_device* dev, + int string_index, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_indexed_string")] + int HidGetIndexedString( + Ref dev, + int string_index, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetInputReport")] + int HidGetInputReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_input_report")] + int HidGetInputReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetManufacturerString")] + int HidGetManufacturerString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_manufacturer_string")] + int HidGetManufacturerString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetProductString")] + int HidGetProductString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_product_string")] + int HidGetProductString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetReportDescriptor")] + int HidGetReportDescriptor( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* buf, + [NativeTypeName("size_t")] nuint buf_size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] + int HidGetReportDescriptor( + Ref dev, + [NativeTypeName("unsigned char *")] Ref buf, + [NativeTypeName("size_t")] nuint buf_size + ); + + [NativeFunction("SDL3", EntryPoint = "HidGetSerialNumberString")] + int HidGetSerialNumberString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_serial_number_string")] + int HidGetSerialNumberString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [NativeFunction("SDL3", EntryPoint = "HidInit")] + int HidInit(); + + [NativeFunction("SDL3", EntryPoint = "HidOpen")] + SDL_hid_device* HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] uint* serial_number + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open")] + Ptr HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] Ref serial_number + ); + + [NativeFunction("SDL3", EntryPoint = "HidOpenPath")] + SDL_hid_device* HidOpenPath([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open_path")] + Ptr HidOpenPath([NativeTypeName("const char *")] Ref path); + + [NativeFunction("SDL3", EntryPoint = "HidRead")] + int HidRead( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read")] + int HidRead( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HidReadTimeout")] + int HidReadTimeout( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read_timeout")] + int HidReadTimeout( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ); + + [NativeFunction("SDL3", EntryPoint = "HidSendFeatureReport")] + int HidSendFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_send_feature_report")] + int HidSendFeatureReport( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HidSetNonblocking")] + int HidSetNonblocking(SDL_hid_device* dev, int nonblock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_set_nonblocking")] + int HidSetNonblocking(Ref dev, int nonblock); + + [NativeFunction("SDL3", EntryPoint = "HidWrite")] + int HidWrite( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_write")] + int HidWrite( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ); + + [NativeFunction("SDL3", EntryPoint = "HideCursor")] + int HideCursor(); + + [NativeFunction("SDL3", EntryPoint = "HideWindow")] + int HideWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + int HideWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "Init")] + int Init([NativeTypeName("Uint32")] uint flags); + + [NativeFunction("SDL3", EntryPoint = "InitHapticRumble")] + int InitHapticRumble(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + int InitHapticRumble(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "InitSubSystem")] + int InitSubSystem([NativeTypeName("Uint32")] uint flags); + + [NativeFunction("SDL3", EntryPoint = "IOFromConstMem")] + SDL_IOStream* IOFromConstMem( + [NativeTypeName("const void *")] void* mem, + [NativeTypeName("size_t")] nuint size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] + Ptr IOFromConstMem( + [NativeTypeName("const void *")] Ref mem, + [NativeTypeName("size_t")] nuint size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + Ptr IOFromDynamicMem(); + + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + SDL_IOStream* IOFromDynamicMemRaw(); + + [NativeFunction("SDL3", EntryPoint = "IOFromFile")] + SDL_IOStream* IOFromFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const char *")] sbyte* mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromFile")] + Ptr IOFromFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const char *")] Ref mode + ); + + [NativeFunction("SDL3", EntryPoint = "IOFromMem")] + SDL_IOStream* IOFromMem(void* mem, [NativeTypeName("size_t")] nuint size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromMem")] + Ptr IOFromMem(Ref mem, [NativeTypeName("size_t")] nuint size); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "IOvprintf")] + nuint IOvprintf( + SDL_IOStream* context, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOvprintf")] + nuint IOvprintf( + Ref context, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "IsJoystickHaptic")] + int IsJoystickHaptic(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] + MaybeBool IsJoystickHaptic(Ref joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + MaybeBool IsJoystickVirtual([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + int IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + MaybeBool IsMouseHaptic(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + int IsMouseHapticRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + MaybeBool IsTablet(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + int IsTabletRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "JoystickConnected")] + int JoystickConnected(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] + MaybeBool JoystickConnected(Ref joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + MaybeBool JoystickEventsEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + int JoystickEventsEnabledRaw(); + + [NativeFunction("SDL3", EntryPoint = "LoadBMP")] + Surface* LoadBMP([NativeTypeName("const char *")] sbyte* file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] + Ptr LoadBMP([NativeTypeName("const char *")] Ref file); + + [NativeFunction("SDL3", EntryPoint = "LoadBMPIO")] + Surface* LoadBMPIO(SDL_IOStream* src, [NativeTypeName("SDL_bool")] int closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] + Ptr LoadBMPIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ); + + [NativeFunction("SDL3", EntryPoint = "LoadFile")] + void* LoadFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("size_t *")] nuint* datasize + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] + Ptr LoadFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("size_t *")] Ref datasize + ); + + [NativeFunction("SDL3", EntryPoint = "LoadFileIO")] + void* LoadFileIO( + SDL_IOStream* src, + [NativeTypeName("size_t *")] nuint* datasize, + [NativeTypeName("SDL_bool")] int closeio + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile_IO")] + Ptr LoadFileIO( + Ref src, + [NativeTypeName("size_t *")] Ref datasize, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "LoadFunction")] + delegate* unmanaged LoadFunction( + void* handle, + [NativeTypeName("const char *")] sbyte* name + ); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] + delegate* unmanaged LoadFunction( + Ref handle, + [NativeTypeName("const char *")] Ref name + ); + + [NativeFunction("SDL3", EntryPoint = "LoadObject")] + void* LoadObject([NativeTypeName("const char *")] sbyte* sofile); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] + Ptr LoadObject([NativeTypeName("const char *")] Ref sofile); + + [NativeFunction("SDL3", EntryPoint = "LoadWAV")] + int LoadWAV( + [NativeTypeName("const char *")] sbyte* path, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] + int LoadWAV( + [NativeTypeName("const char *")] Ref path, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ); + + [NativeFunction("SDL3", EntryPoint = "LoadWAVIO")] + int LoadWAVIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] + int LoadWAVIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ); + + [NativeFunction("SDL3", EntryPoint = "LockAudioStream")] + int LockAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + int LockAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "LockJoysticks")] + void LockJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "LockMutex")] + void LockMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockMutex")] + void LockMutex(Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "LockProperties")] + int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForReading")] + void LockRWLockForReading(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] + void LockRWLockForReading(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForWriting")] + void LockRWLockForWriting(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForWriting")] + void LockRWLockForWriting(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "LockSpinlock")] + void LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSpinlock")] + void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock); + + [NativeFunction("SDL3", EntryPoint = "LockSurface")] + int LockSurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] + int LockSurface(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "LockTexture")] + int LockTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + void** pixels, + int* pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] + int LockTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D pixels, + Ref pitch + ); + + [NativeFunction("SDL3", EntryPoint = "LockTextureToSurface")] + int LockTextureToSurface( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + Surface** surface + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] + int LockTextureToSurface( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D surface + ); + + [NativeFunction("SDL3", EntryPoint = "LogGetPriority")] + LogPriority LogGetPriority(int category); + + [NativeFunction("SDL3", EntryPoint = "LogMessageV")] + void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] + void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ); + + [NativeFunction("SDL3", EntryPoint = "LogResetPriorities")] + void LogResetPriorities(); + + [NativeFunction("SDL3", EntryPoint = "LogSetAllPriority")] + void LogSetAllPriority(LogPriority priority); + + [NativeFunction("SDL3", EntryPoint = "LogSetPriority")] + void LogSetPriority(int category, LogPriority priority); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "MapRGB")] + uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "MapRgba")] + uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] + uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [NativeFunction("SDL3", EntryPoint = "MaximizeWindow")] + int MaximizeWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + int MaximizeWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierAcquireFunction")] + void MemoryBarrierAcquireFunction(); + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierReleaseFunction")] + void MemoryBarrierReleaseFunction(); + + [return: NativeTypeName("SDL_MetalView")] + [NativeFunction("SDL3", EntryPoint = "MetalCreateView")] + void* MetalCreateView(SDL_Window* window); + + [return: NativeTypeName("SDL_MetalView")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_CreateView")] + Ptr MetalCreateView(Ref window); + + [NativeFunction("SDL3", EntryPoint = "MetalDestroyView")] + void MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_DestroyView")] + void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view); + + [NativeFunction("SDL3", EntryPoint = "MetalGetLayer")] + void* MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_GetLayer")] + Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view); + + [NativeFunction("SDL3", EntryPoint = "MinimizeWindow")] + int MinimizeWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + int MinimizeWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "MixAudioFormat")] + int MixAudioFormat( + [NativeTypeName("Uint8 *")] byte* dst, + [NativeTypeName("const Uint8 *")] byte* src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + int MixAudioFormat( + [NativeTypeName("Uint8 *")] Ref dst, + [NativeTypeName("const Uint8 *")] Ref src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidBecomeActive")] + void OnApplicationDidBecomeActive(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidEnterBackground")] + void OnApplicationDidEnterBackground(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidReceiveMemoryWarning")] + void OnApplicationDidReceiveMemoryWarning(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillEnterForeground")] + void OnApplicationWillEnterForeground(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillResignActive")] + void OnApplicationWillResignActive(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillTerminate")] + void OnApplicationWillTerminate(); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "OpenAudioDevice")] + uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec + ); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDevice")] + uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec + ); + + [NativeFunction("SDL3", EntryPoint = "OpenAudioDeviceStream")] + SDL_AudioStream* OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDeviceStream")] + Ptr OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "OpenCameraDevice")] + SDL_Camera* OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + Ptr OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] Ref spec + ); + + [NativeFunction("SDL3", EntryPoint = "OpenFileStorage")] + SDL_Storage* OpenFileStorage([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenFileStorage")] + Ptr OpenFileStorage([NativeTypeName("const char *")] Ref path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + Ptr OpenGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + SDL_Gamepad* OpenGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + Ptr OpenHaptic([NativeTypeName("SDL_HapticID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "OpenHapticFromJoystick")] + SDL_Haptic* OpenHapticFromJoystick(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromJoystick")] + Ptr OpenHapticFromJoystick(Ref joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + Ptr OpenHapticFromMouse(); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + SDL_Haptic* OpenHapticFromMouseRaw(); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + SDL_Haptic* OpenHapticRaw([NativeTypeName("SDL_HapticID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "OpenIO")] + SDL_IOStream* OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] IOStreamInterface* iface, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenIO")] + Ptr OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] Ref iface, + Ref userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + Ptr OpenJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + SDL_Joystick* OpenJoystickRaw([NativeTypeName("SDL_JoystickID")] uint instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + Ptr OpenSensor([NativeTypeName("SDL_SensorID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + SDL_Sensor* OpenSensorRaw([NativeTypeName("SDL_SensorID")] uint instance_id); + + [NativeFunction("SDL3", EntryPoint = "OpenStorage")] + SDL_Storage* OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] StorageInterface* iface, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenStorage")] + Ptr OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] Ref iface, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "OpenTitleStorage")] + SDL_Storage* OpenTitleStorage( + [NativeTypeName("const char *")] sbyte* @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenTitleStorage")] + Ptr OpenTitleStorage( + [NativeTypeName("const char *")] Ref @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [NativeFunction("SDL3", EntryPoint = "OpenURL")] + int OpenURL([NativeTypeName("const char *")] sbyte* url); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] + int OpenURL([NativeTypeName("const char *")] Ref url); + + [NativeFunction("SDL3", EntryPoint = "OpenUserStorage")] + SDL_Storage* OpenUserStorage( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] + Ptr OpenUserStorage( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [NativeFunction("SDL3", EntryPoint = "PauseAudioDevice")] + int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [NativeFunction("SDL3", EntryPoint = "PauseHaptic")] + int PauseHaptic(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + int PauseHaptic(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "PeepEvents")] + int PeepEvents( + Event* events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] + int PeepEvents( + Ref events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [return: NativeTypeName("SDL_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 = "PlayHapticRumble")] + int PlayHapticRumble( + SDL_Haptic* haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] + int PlayHapticRumble( + Ref haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "PollEvent")] + int PollEvent(Event* @event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] + MaybeBool PollEvent(Ref @event); + + [NativeFunction("SDL3", EntryPoint = "PostSemaphore")] + int PostSemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] + int PostSemaphore(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "PremultiplyAlpha")] + int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] + int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ); + + [NativeFunction("SDL3", EntryPoint = "PumpEvents")] + void PumpEvents(); + + [NativeFunction("SDL3", EntryPoint = "PushEvent")] + int PushEvent(Event* @event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] + int PushEvent(Ref @event); + + [NativeFunction("SDL3", EntryPoint = "PutAudioStreamData")] + int PutAudioStreamData( + SDL_AudioStream* stream, + [NativeTypeName("const void *")] void* buf, + int len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] + int PutAudioStreamData( + Ref stream, + [NativeTypeName("const void *")] Ref buf, + int len + ); + + [NativeFunction("SDL3", EntryPoint = "QueryTexture")] + int QueryTexture(SDL_Texture* texture, PixelFormatEnum* format, int* access, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] + int QueryTexture( + Ref texture, + Ref format, + Ref access, + Ref w, + Ref h + ); + + [NativeFunction("SDL3", EntryPoint = "Quit")] + void Quit(); + + [NativeFunction("SDL3", EntryPoint = "QuitSubSystem")] + void QuitSubSystem([NativeTypeName("Uint32")] uint flags); + + [NativeFunction("SDL3", EntryPoint = "RaiseWindow")] + int RaiseWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + int RaiseWindow(Ref window); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "ReadIO")] + nuint ReadIO(SDL_IOStream* context, void* ptr, [NativeTypeName("size_t")] nuint size); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] + nuint ReadIO(Ref context, Ref ptr, [NativeTypeName("size_t")] nuint size); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16BE")] + int ReadS16BE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] + MaybeBool ReadS16BE(Ref src, [NativeTypeName("Sint16 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16LE")] + int ReadS16LE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] + MaybeBool ReadS16LE(Ref src, [NativeTypeName("Sint16 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32BE")] + int ReadS32BE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] + MaybeBool ReadS32BE(Ref src, [NativeTypeName("Sint32 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32LE")] + int ReadS32LE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] + MaybeBool ReadS32LE(Ref src, [NativeTypeName("Sint32 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64BE")] + int ReadS64BE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] + MaybeBool ReadS64BE(Ref src, [NativeTypeName("Sint64 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64LE")] + int ReadS64LE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] + MaybeBool ReadS64LE(Ref src, [NativeTypeName("Sint64 *")] Ref value); + + [NativeFunction("SDL3", EntryPoint = "ReadStorageFile")] + int ReadStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + void* destination, + [NativeTypeName("Uint64")] ulong length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] + int ReadStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref destination, + [NativeTypeName("Uint64")] ulong length + ); + + [NativeFunction("SDL3", EntryPoint = "ReadSurfacePixel")] + int ReadSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] + int ReadSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16BE")] + int ReadU16BE(SDL_IOStream* src, [NativeTypeName("Uint16 *")] ushort* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] + MaybeBool ReadU16BE(Ref src, [NativeTypeName("Uint16 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16LE")] + int ReadU16LE(SDL_IOStream* src, [NativeTypeName("Uint16 *")] ushort* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] + MaybeBool ReadU16LE(Ref src, [NativeTypeName("Uint16 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32BE")] + int ReadU32BE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] + MaybeBool ReadU32BE(Ref src, [NativeTypeName("Uint32 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32LE")] + int ReadU32LE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] + MaybeBool ReadU32LE(Ref src, [NativeTypeName("Uint32 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64BE")] + int ReadU64BE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] + MaybeBool ReadU64BE(Ref src, [NativeTypeName("Uint64 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64LE")] + int ReadU64LE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] + MaybeBool ReadU64LE(Ref src, [NativeTypeName("Uint64 *")] Ref value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU8")] + int ReadU8(SDL_IOStream* src, [NativeTypeName("Uint8 *")] byte* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] + MaybeBool ReadU8(Ref src, [NativeTypeName("Uint8 *")] Ref value); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "RegisterEvents")] + uint RegisterEvents(int numevents); + + [NativeFunction("SDL3", EntryPoint = "ReleaseCameraFrame")] + int ReleaseCameraFrame(SDL_Camera* camera, Surface* frame); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] + int ReleaseCameraFrame(Ref camera, Ref frame); + + [NativeFunction("SDL3", EntryPoint = "ReloadGamepadMappings")] + int ReloadGamepadMappings(); + + [NativeFunction("SDL3", EntryPoint = "RemovePath")] + int RemovePath([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] + int RemovePath([NativeTypeName("const char *")] Ref path); + + [NativeFunction("SDL3", EntryPoint = "RemoveStoragePath")] + int RemoveStoragePath(SDL_Storage* storage, [NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] + int RemoveStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref path + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id); + + [NativeFunction("SDL3", EntryPoint = "RenamePath")] + int RenamePath( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] + int RenamePath( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ); + + [NativeFunction("SDL3", EntryPoint = "RenameStoragePath")] + int RenameStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] + int RenameStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ); + + [NativeFunction("SDL3", EntryPoint = "RenderClear")] + int RenderClear(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + int RenderClear(Ref renderer); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderClipEnabled")] + int RenderClipEnabled(SDL_Renderer* renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] + MaybeBool RenderClipEnabled(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesFromWindow")] + int RenderCoordinatesFromWindow( + SDL_Renderer* renderer, + float window_x, + float window_y, + float* x, + float* y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] + int RenderCoordinatesFromWindow( + Ref renderer, + float window_x, + float window_y, + Ref x, + Ref y + ); + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesToWindow")] + int RenderCoordinatesToWindow( + SDL_Renderer* renderer, + float x, + float y, + float* window_x, + float* window_y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] + int RenderCoordinatesToWindow( + Ref renderer, + float x, + float y, + Ref window_x, + Ref window_y + ); + + [NativeFunction("SDL3", EntryPoint = "RenderFillRect")] + int RenderFillRect(SDL_Renderer* renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] + int RenderFillRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "RenderFillRects")] + int RenderFillRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] + int RenderFillRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometry")] + int RenderGeometry( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, + int num_vertices, + [NativeTypeName("const int *")] int* indices, + int num_indices + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] + int RenderGeometry( + Ref renderer, + Ref texture, + [NativeTypeName("const SDL_Vertex *")] Ref vertices, + int num_vertices, + [NativeTypeName("const int *")] Ref indices, + int num_indices + ); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometryRaw")] + int RenderGeometryRaw( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const float *")] float* xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] Color* 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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] + int RenderGeometryRaw( + Ref renderer, + Ref texture, + [NativeTypeName("const float *")] Ref xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] 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 = "RenderGeometryRawFloat")] + int RenderGeometryRawFloat( + SDL_Renderer* renderer, + SDL_Texture* 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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] + int RenderGeometryRawFloat( + Ref renderer, + Ref 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 = "RenderLine")] + int RenderLine(SDL_Renderer* renderer, float x1, float y1, float x2, float y2); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] + int RenderLine(Ref renderer, float x1, float y1, float x2, float y2); + + [NativeFunction("SDL3", EntryPoint = "RenderLines")] + int RenderLines( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] + int RenderLines( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ); + + [NativeFunction("SDL3", EntryPoint = "RenderPoint")] + int RenderPoint(SDL_Renderer* renderer, float x, float y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + int RenderPoint(Ref renderer, float x, float y); + + [NativeFunction("SDL3", EntryPoint = "RenderPoints")] + int RenderPoints( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] + int RenderPoints( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ); + + [NativeFunction("SDL3", EntryPoint = "RenderPresent")] + int RenderPresent(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + int RenderPresent(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "RenderReadPixels")] + Surface* RenderReadPixels( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] + Ptr RenderReadPixels( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "RenderRect")] + int RenderRect(SDL_Renderer* renderer, [NativeTypeName("const SDL_FRect *")] FRect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] + int RenderRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "RenderRects")] + int RenderRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] + int RenderRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ); + + [NativeFunction("SDL3", EntryPoint = "RenderTexture")] + int RenderTexture( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] + int RenderTexture( + Ref renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ); + + [NativeFunction("SDL3", EntryPoint = "RenderTextureRotated")] + int RenderTextureRotated( + SDL_Renderer* renderer, + SDL_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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + int RenderTextureRotated( + Ref renderer, + 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 + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderViewportSet")] + int RenderViewportSet(SDL_Renderer* renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] + MaybeBool RenderViewportSet(Ref renderer); + + [NativeFunction("SDL3", EntryPoint = "ReportAssertion")] + AssertState ReportAssertion( + AssertData* data, + [NativeTypeName("const char *")] sbyte* func, + [NativeTypeName("const char *")] sbyte* file, + int line + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] + AssertState ReportAssertion( + Ref data, + [NativeTypeName("const char *")] Ref func, + [NativeTypeName("const char *")] Ref file, + int line + ); + + [NativeFunction("SDL3", EntryPoint = "ResetAssertionReport")] + void ResetAssertionReport(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ResetHint")] + int ResetHint([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] + MaybeBool ResetHint([NativeTypeName("const char *")] Ref name); + + [NativeFunction("SDL3", EntryPoint = "ResetHints")] + void ResetHints(); + + [NativeFunction("SDL3", EntryPoint = "ResetKeyboard")] + void ResetKeyboard(); + + [NativeFunction("SDL3", EntryPoint = "RestoreWindow")] + int RestoreWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + int RestoreWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "ResumeAudioDevice")] + int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [NativeFunction("SDL3", EntryPoint = "ResumeHaptic")] + int ResumeHaptic(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + int ResumeHaptic(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepad")] + int RumbleGamepad( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + int RumbleGamepad( + Ref gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepadTriggers")] + int RumbleGamepadTriggers( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + int RumbleGamepadTriggers( + Ref gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystick")] + int RumbleJoystick( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + int RumbleJoystick( + Ref joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystickTriggers")] + int RumbleJoystickTriggers( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + int RumbleJoystickTriggers( + Ref joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [NativeFunction("SDL3", EntryPoint = "RunHapticEffect")] + int RunHapticEffect(SDL_Haptic* haptic, int effect, [NativeTypeName("Uint32")] uint iterations); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + int RunHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ); + + [NativeFunction("SDL3", EntryPoint = "SaveBMP")] + int SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] + int SaveBMP(Ref surface, [NativeTypeName("const char *")] Ref file); + + [NativeFunction("SDL3", EntryPoint = "SaveBMPIO")] + int SaveBMPIO(Surface* surface, SDL_IOStream* dst, [NativeTypeName("SDL_bool")] int closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] + int SaveBMPIO( + Ref surface, + Ref dst, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ScreenKeyboardShown")] + int ScreenKeyboardShown(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] + MaybeBool ScreenKeyboardShown(Ref window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + MaybeBool ScreenSaverEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + int ScreenSaverEnabledRaw(); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "SeekIO")] + long SeekIO(SDL_IOStream* context, [NativeTypeName("Sint64")] long offset, int whence); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] + long SeekIO(Ref context, [NativeTypeName("Sint64")] long offset, int whence); + + [NativeFunction("SDL3", EntryPoint = "SendGamepadEffect")] + int SendGamepadEffect( + SDL_Gamepad* gamepad, + [NativeTypeName("const void *")] void* data, + int size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] + int SendGamepadEffect( + Ref gamepad, + [NativeTypeName("const void *")] Ref data, + int size + ); + + [NativeFunction("SDL3", EntryPoint = "SendJoystickEffect")] + int SendJoystickEffect( + SDL_Joystick* joystick, + [NativeTypeName("const void *")] void* data, + int size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] + int SendJoystickEffect( + Ref joystick, + [NativeTypeName("const void *")] Ref data, + int size + ); + + [NativeFunction("SDL3", EntryPoint = "SetAssertionHandler")] + void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] + void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetAudioPostmixCallback")] + int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] + int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFormat")] + int SetAudioStreamFormat( + SDL_AudioStream* stream, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] + int SetAudioStreamFormat( + Ref stream, + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFrequencyRatio")] + int SetAudioStreamFrequencyRatio(SDL_AudioStream* stream, float ratio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + int SetAudioStreamFrequencyRatio(Ref stream, float ratio); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamGetCallback")] + int SetAudioStreamGetCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] + int SetAudioStreamGetCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamPutCallback")] + int SetAudioStreamPutCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] + int SetAudioStreamPutCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetBooleanProperty")] + int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] + int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool value + ); + + [NativeFunction("SDL3", EntryPoint = "SetClipboardData")] + int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] delegate* unmanaged cleanup, + void* userdata, + [NativeTypeName("const char **")] sbyte** mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] + int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] delegate* unmanaged cleanup, + Ref userdata, + [NativeTypeName("const char **")] Ref2D mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ); + + [NativeFunction("SDL3", EntryPoint = "SetClipboardText")] + int SetClipboardText([NativeTypeName("const char *")] sbyte* text); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] + int SetClipboardText([NativeTypeName("const char *")] Ref text); + + [NativeFunction("SDL3", EntryPoint = "SetCursor")] + int SetCursor(SDL_Cursor* cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + int SetCursor(Ref cursor); + + [NativeFunction("SDL3", EntryPoint = "SetEventEnabled")] + void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] int enabled + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] + void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ); + + [NativeFunction("SDL3", EntryPoint = "SetEventFilter")] + void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] + void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetFloatProperty")] + int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] + int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float value + ); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadEventsEnabled")] + void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] + void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadLED")] + int SetGamepadLED( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + int SetGamepadLED( + Ref gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadMapping")] + int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] sbyte* mapping + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] + int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] Ref mapping + ); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadPlayerIndex")] + int SetGamepadPlayerIndex(SDL_Gamepad* gamepad, int player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + int SetGamepadPlayerIndex(Ref gamepad, int player_index); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadSensorEnabled")] + int SetGamepadSensorEnabled( + SDL_Gamepad* gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] int enabled + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] + int SetGamepadSensorEnabled( + Ref gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ); + + [NativeFunction("SDL3", EntryPoint = "SetHapticAutocenter")] + int SetHapticAutocenter(SDL_Haptic* haptic, int autocenter); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + int SetHapticAutocenter(Ref haptic, int autocenter); + + [NativeFunction("SDL3", EntryPoint = "SetHapticGain")] + int SetHapticGain(SDL_Haptic* haptic, int gain); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + int SetHapticGain(Ref haptic, int gain); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHint")] + int SetHint( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] + MaybeBool SetHint( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHintWithPriority")] + int SetHintWithPriority( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value, + HintPriority priority + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] + MaybeBool SetHintWithPriority( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value, + HintPriority priority + ); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickEventsEnabled")] + void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] + void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickLED")] + int SetJoystickLED( + SDL_Joystick* joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + int SetJoystickLED( + Ref joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickPlayerIndex")] + int SetJoystickPlayerIndex(SDL_Joystick* joystick, int player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + int SetJoystickPlayerIndex(Ref joystick, int player_index); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualAxis")] + int SetJoystickVirtualAxis( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16")] short value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + int SetJoystickVirtualAxis( + Ref joystick, + int axis, + [NativeTypeName("Sint16")] short value + ); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualButton")] + int SetJoystickVirtualButton( + SDL_Joystick* joystick, + int button, + [NativeTypeName("Uint8")] byte value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + int SetJoystickVirtualButton( + Ref joystick, + int button, + [NativeTypeName("Uint8")] byte value + ); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualHat")] + int SetJoystickVirtualHat( + SDL_Joystick* joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + int SetJoystickVirtualHat( + Ref joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ); + + [NativeFunction("SDL3", EntryPoint = "SetLogOutputFunction")] + void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] + void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetModState")] + void SetModState(Keymod modstate); + + [NativeFunction("SDL3", EntryPoint = "SetNumberProperty")] + int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] + int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long value + ); + + [NativeFunction("SDL3", EntryPoint = "SetPaletteColors")] + int SetPaletteColors( + Palette* palette, + [NativeTypeName("const SDL_Color *")] Color* colors, + int firstcolor, + int ncolors + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] + int SetPaletteColors( + Ref palette, + [NativeTypeName("const SDL_Color *")] Ref colors, + int firstcolor, + int ncolors + ); + + [NativeFunction("SDL3", EntryPoint = "SetPixelFormatPalette")] + int SetPixelFormatPalette(PixelFormat* format, Palette* palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPixelFormatPalette")] + int SetPixelFormatPalette(Ref format, Ref palette); + + [NativeFunction("SDL3", EntryPoint = "SetPrimarySelectionText")] + int SetPrimarySelectionText([NativeTypeName("const char *")] sbyte* text); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPrimarySelectionText")] + int SetPrimarySelectionText([NativeTypeName("const char *")] Ref text); + + [NativeFunction("SDL3", EntryPoint = "SetProperty")] + int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value + ); + + [NativeFunction("SDL3", EntryPoint = "SetPropertyWithCleanup")] + int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + Ref userdata + ); + + [NativeFunction("SDL3", EntryPoint = "SetRelativeMouseMode")] + int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + int SetRelativeMouseMode([NativeTypeName("SDL_bool")] MaybeBool enabled); + + [NativeFunction("SDL3", EntryPoint = "SetRenderClipRect")] + int SetRenderClipRect(SDL_Renderer* renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] + int SetRenderClipRect( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderColorScale")] + int SetRenderColorScale(SDL_Renderer* renderer, float scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + int SetRenderColorScale(Ref renderer, float scale); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawBlendMode")] + int SetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + int SetRenderDrawBlendMode(Ref renderer, BlendMode blendMode); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColor")] + int SetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + int SetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColorFloat")] + int SetRenderDrawColorFloat(SDL_Renderer* renderer, float r, float g, float b, float a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + int SetRenderDrawColorFloat(Ref renderer, float r, float g, float b, float a); + + [NativeFunction("SDL3", EntryPoint = "SetRenderLogicalPresentation")] + int SetRenderLogicalPresentation( + SDL_Renderer* renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + int SetRenderLogicalPresentation( + Ref renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderScale")] + int SetRenderScale(SDL_Renderer* renderer, float scaleX, float scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + int SetRenderScale(Ref renderer, float scaleX, float scaleY); + + [NativeFunction("SDL3", EntryPoint = "SetRenderTarget")] + int SetRenderTarget(SDL_Renderer* renderer, SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + int SetRenderTarget(Ref renderer, Ref texture); + + [NativeFunction("SDL3", EntryPoint = "SetRenderViewport")] + int SetRenderViewport(SDL_Renderer* renderer, [NativeTypeName("const SDL_Rect *")] Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] + int SetRenderViewport( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "SetRenderVSync")] + int SetRenderVSync(SDL_Renderer* renderer, int vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + int SetRenderVSync(Ref renderer, int vsync); + + [NativeFunction("SDL3", EntryPoint = "SetStringProperty")] + int SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + int SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceAlphaMod")] + int SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] + int SetSurfaceAlphaMod(Ref surface, [NativeTypeName("Uint8")] byte alpha); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceBlendMode")] + int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] + int SetSurfaceBlendMode(Ref surface, BlendMode blendMode); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetSurfaceClipRect")] + int SetSurfaceClipRect(Surface* surface, [NativeTypeName("const SDL_Rect *")] Rect* rect); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] + MaybeBool SetSurfaceClipRect( + Ref surface, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorKey")] + int SetSurfaceColorKey(Surface* surface, int flag, [NativeTypeName("Uint32")] uint key); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] + int SetSurfaceColorKey(Ref surface, int flag, [NativeTypeName("Uint32")] uint key); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorMod")] + int SetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] + int SetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorspace")] + int SetSurfaceColorspace(Surface* surface, Colorspace colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] + int SetSurfaceColorspace(Ref surface, Colorspace colorspace); + + [NativeFunction("SDL3", EntryPoint = "SetSurfacePalette")] + int SetSurfacePalette(Surface* surface, Palette* palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] + int SetSurfacePalette(Ref surface, Ref palette); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceRLE")] + int SetSurfaceRLE(Surface* surface, int flag); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] + int SetSurfaceRLE(Ref surface, int flag); + + [NativeFunction("SDL3", EntryPoint = "SetTextInputRect")] + int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect); + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaMod")] + int SetTextureAlphaMod(SDL_Texture* texture, [NativeTypeName("Uint8")] byte alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + int SetTextureAlphaMod(Ref texture, [NativeTypeName("Uint8")] byte alpha); + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaModFloat")] + int SetTextureAlphaModFloat(SDL_Texture* texture, float alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + int SetTextureAlphaModFloat(Ref texture, float alpha); + + [NativeFunction("SDL3", EntryPoint = "SetTextureBlendMode")] + int SetTextureBlendMode(SDL_Texture* texture, BlendMode blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + int SetTextureBlendMode(Ref texture, BlendMode blendMode); + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorMod")] + int SetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + int SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorModFloat")] + int SetTextureColorModFloat(SDL_Texture* texture, float r, float g, float b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + int SetTextureColorModFloat(Ref texture, float r, float g, float b); + + [NativeFunction("SDL3", EntryPoint = "SetTextureScaleMode")] + int SetTextureScaleMode(SDL_Texture* texture, ScaleMode scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] + int SetTextureScaleMode(Ref texture, ScaleMode scaleMode); + + [NativeFunction("SDL3", EntryPoint = "SetThreadPriority")] + int SetThreadPriority(ThreadPriority priority); + + [NativeFunction("SDL3", EntryPoint = "SetTLS")] + int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] void* value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] + int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] Ref value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowAlwaysOnTop")] + int SetWindowAlwaysOnTop(SDL_Window* window, [NativeTypeName("SDL_bool")] int on_top); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] + int SetWindowAlwaysOnTop( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool on_top + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowBordered")] + int SetWindowBordered(SDL_Window* window, [NativeTypeName("SDL_bool")] int bordered); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] + int SetWindowBordered( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool bordered + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFocusable")] + int SetWindowFocusable(SDL_Window* window, [NativeTypeName("SDL_bool")] int focusable); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] + int SetWindowFocusable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool focusable + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreen")] + int SetWindowFullscreen(SDL_Window* window, [NativeTypeName("SDL_bool")] int fullscreen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] + int SetWindowFullscreen( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool fullscreen + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreenMode")] + int SetWindowFullscreenMode( + SDL_Window* window, + [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] + int SetWindowFullscreenMode( + Ref window, + [NativeTypeName("const SDL_DisplayMode *")] Ref mode + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowHitTest")] + int SetWindowHitTest( + SDL_Window* window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + void* callback_data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] + int SetWindowHitTest( + Ref window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + Ref callback_data + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowIcon")] + int SetWindowIcon(SDL_Window* window, Surface* icon); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] + int SetWindowIcon(Ref window, Ref icon); + + [NativeFunction("SDL3", EntryPoint = "SetWindowInputFocus")] + int SetWindowInputFocus(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] + int SetWindowInputFocus(Ref window); + + [NativeFunction("SDL3", EntryPoint = "SetWindowKeyboardGrab")] + int SetWindowKeyboardGrab(SDL_Window* window, [NativeTypeName("SDL_bool")] int grabbed); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] + int SetWindowKeyboardGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMaximumSize")] + int SetWindowMaximumSize(SDL_Window* window, int max_w, int max_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + int SetWindowMaximumSize(Ref window, int max_w, int max_h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMinimumSize")] + int SetWindowMinimumSize(SDL_Window* window, int min_w, int min_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + int SetWindowMinimumSize(Ref window, int min_w, int min_h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowModalFor")] + int SetWindowModalFor(SDL_Window* modal_window, SDL_Window* parent_window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] + int SetWindowModalFor(Ref modal_window, Ref parent_window); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseGrab")] + int SetWindowMouseGrab(SDL_Window* window, [NativeTypeName("SDL_bool")] int grabbed); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] + int SetWindowMouseGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseRect")] + int SetWindowMouseRect(SDL_Window* window, [NativeTypeName("const SDL_Rect *")] Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] + int SetWindowMouseRect( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rect + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowOpacity")] + int SetWindowOpacity(SDL_Window* window, float opacity); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + int SetWindowOpacity(Ref window, float opacity); + + [NativeFunction("SDL3", EntryPoint = "SetWindowPosition")] + int SetWindowPosition(SDL_Window* window, int x, int y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + int SetWindowPosition(Ref window, int x, int y); + + [NativeFunction("SDL3", EntryPoint = "SetWindowResizable")] + int SetWindowResizable(SDL_Window* window, [NativeTypeName("SDL_bool")] int resizable); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] + int SetWindowResizable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool resizable + ); + + [NativeFunction("SDL3", EntryPoint = "SetWindowShape")] + int SetWindowShape(SDL_Window* window, Surface* shape); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] + int SetWindowShape(Ref window, Ref shape); + + [NativeFunction("SDL3", EntryPoint = "SetWindowSize")] + int SetWindowSize(SDL_Window* window, int w, int h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + int SetWindowSize(Ref window, int w, int h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowTitle")] + int SetWindowTitle(SDL_Window* window, [NativeTypeName("const char *")] sbyte* title); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] + int SetWindowTitle(Ref window, [NativeTypeName("const char *")] Ref title); + + [NativeFunction("SDL3", EntryPoint = "ShowCursor")] + int ShowCursor(); + + [NativeFunction("SDL3", EntryPoint = "ShowMessageBox")] + int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, + int* buttonid + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] + int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, + Ref buttonid + ); + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFileDialog")] + void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFileDialog")] + void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ); + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFolderDialog")] + void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] + void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ); + + [NativeFunction("SDL3", EntryPoint = "ShowSaveFileDialog")] + void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] + void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location + ); + + [NativeFunction("SDL3", EntryPoint = "ShowSimpleMessageBox")] + int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] sbyte* title, + [NativeTypeName("const char *")] sbyte* message, + SDL_Window* window + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] + int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] Ref title, + [NativeTypeName("const char *")] Ref message, + Ref window + ); + + [NativeFunction("SDL3", EntryPoint = "ShowWindow")] + int ShowWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + int ShowWindow(Ref window); + + [NativeFunction("SDL3", EntryPoint = "ShowWindowSystemMenu")] + int ShowWindowSystemMenu(SDL_Window* window, int x, int y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + int ShowWindowSystemMenu(Ref window, int x, int y); + + [NativeFunction("SDL3", EntryPoint = "SignalCondition")] + int SignalCondition(SDL_Condition* cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] + int SignalCondition(Ref cond); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SimdGetAlignment")] + nuint SimdGetAlignment(); + + [NativeFunction("SDL3", EntryPoint = "SoftStretch")] + int SoftStretch( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ); + + [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 = "StartTextInput")] + void StartTextInput(); + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffect")] + int StopHapticEffect(SDL_Haptic* haptic, int effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + int StopHapticEffect(Ref haptic, int effect); + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffects")] + int StopHapticEffects(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + int StopHapticEffects(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "StopHapticRumble")] + int StopHapticRumble(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + int StopHapticRumble(Ref haptic); + + [NativeFunction("SDL3", EntryPoint = "StopTextInput")] + void StopTextInput(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "StorageReady")] + int StorageReady(SDL_Storage* storage); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] + MaybeBool StorageReady(Ref storage); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasColorKey")] + int SurfaceHasColorKey(Surface* surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] + MaybeBool SurfaceHasColorKey(Ref surface); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasRLE")] + int SurfaceHasRLE(Surface* surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] + MaybeBool SurfaceHasRLE(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "SyncWindow")] + int SyncWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + int SyncWindow(Ref window); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "TellIO")] + long TellIO(SDL_IOStream* context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] + long TellIO(Ref context); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + MaybeBool TextInputActive(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + int TextInputActiveRaw(); + + [return: NativeTypeName("SDL_Time")] + [NativeFunction("SDL3", EntryPoint = "TimeFromWindows")] + long TimeFromWindows( + [NativeTypeName("Uint32")] uint dwLowDateTime, + [NativeTypeName("Uint32")] uint dwHighDateTime + ); + + [NativeFunction("SDL3", EntryPoint = "TimeToDateTime")] + int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + DateTime* dt, + [NativeTypeName("SDL_bool")] int localTime + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] + int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + Ref dt, + [NativeTypeName("SDL_bool")] MaybeBool localTime + ); + + [NativeFunction("SDL3", EntryPoint = "TimeToWindows")] + void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] uint* dwLowDateTime, + [NativeTypeName("Uint32 *")] uint* dwHighDateTime + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] + void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] Ref dwLowDateTime, + [NativeTypeName("Uint32 *")] Ref dwHighDateTime + ); + + [NativeFunction("SDL3", EntryPoint = "TryLockMutex")] + int TryLockMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + int TryLockMutex(Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForReading")] + int TryLockRWLockForReading(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + int TryLockRWLockForReading(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForWriting")] + int TryLockRWLockForWriting(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + int TryLockRWLockForWriting(Ref rwlock); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "TryLockSpinlock")] + int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] + MaybeBool TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock); + + [NativeFunction("SDL3", EntryPoint = "TryWaitSemaphore")] + int TryWaitSemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + int TryWaitSemaphore(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStream")] + void UnbindAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] + void UnbindAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStreams")] + void UnbindAudioStreams(SDL_AudioStream** streams, int num_streams); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] + void UnbindAudioStreams(Ref2D streams, int num_streams); + + [NativeFunction("SDL3", EntryPoint = "UnloadObject")] + void UnloadObject(void* handle); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] + void UnloadObject(Ref handle); + + [NativeFunction("SDL3", EntryPoint = "UnlockAudioStream")] + int UnlockAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] + int UnlockAudioStream(Ref stream); + + [NativeFunction("SDL3", EntryPoint = "UnlockJoysticks")] + void UnlockJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "UnlockMutex")] + void UnlockMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockMutex")] + void UnlockMutex(Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "UnlockProperties")] + void UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [NativeFunction("SDL3", EntryPoint = "UnlockRWLock")] + void UnlockRWLock(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockRWLock")] + void UnlockRWLock(Ref rwlock); + + [NativeFunction("SDL3", EntryPoint = "UnlockSpinlock")] + void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSpinlock")] + void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock); + + [NativeFunction("SDL3", EntryPoint = "UnlockSurface")] + void UnlockSurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSurface")] + void UnlockSurface(Ref surface); + + [NativeFunction("SDL3", EntryPoint = "UnlockTexture")] + void UnlockTexture(SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + void UnlockTexture(Ref texture); + + [NativeFunction("SDL3", EntryPoint = "UpdateGamepads")] + void UpdateGamepads(); + + [NativeFunction("SDL3", EntryPoint = "UpdateHapticEffect")] + int UpdateHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] + int UpdateHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] Ref data + ); + + [NativeFunction("SDL3", EntryPoint = "UpdateJoysticks")] + void UpdateJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "UpdateNVTexture")] + int UpdateNVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* UVplane, + int UVpitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] + int UpdateNVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref UVplane, + int UVpitch + ); + + [NativeFunction("SDL3", EntryPoint = "UpdateSensors")] + void UpdateSensors(); + + [NativeFunction("SDL3", EntryPoint = "UpdateTexture")] + int UpdateTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const void *")] void* pixels, + int pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] + int UpdateTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const void *")] Ref pixels, + int pitch + ); + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurface")] + int UpdateWindowSurface(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + int UpdateWindowSurface(Ref window); + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurfaceRects")] + int UpdateWindowSurfaceRects( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int numrects + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] + int UpdateWindowSurfaceRects( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int numrects + ); + + [NativeFunction("SDL3", EntryPoint = "UpdateYUVTexture")] + int UpdateYUVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] byte* Vplane, + int Vpitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] + int UpdateYUVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] Ref Vplane, + int Vpitch + ); + + [NativeFunction("SDL3", EntryPoint = "WaitCondition")] + int WaitCondition(SDL_Condition* cond, SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] + int WaitCondition(Ref cond, Ref mutex); + + [NativeFunction("SDL3", EntryPoint = "WaitConditionTimeout")] + int WaitConditionTimeout( + SDL_Condition* cond, + SDL_Mutex* mutex, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + int WaitConditionTimeout( + Ref cond, + Ref mutex, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEvent")] + int WaitEvent(Event* @event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] + MaybeBool WaitEvent(Ref @event); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEventTimeout")] + int WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] + MaybeBool WaitEventTimeout(Ref @event, [NativeTypeName("Sint32")] int timeoutMS); + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphore")] + int WaitSemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] + int WaitSemaphore(Ref sem); + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphoreTimeout")] + int WaitSemaphoreTimeout(SDL_Semaphore* sem, [NativeTypeName("Sint32")] int timeoutMS); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + int WaitSemaphoreTimeout(Ref sem, [NativeTypeName("Sint32")] int timeoutMS); + + [NativeFunction("SDL3", EntryPoint = "WaitThread")] + void WaitThread(SDL_Thread* thread, int* status); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] + void WaitThread(Ref thread, Ref status); + + [NativeFunction("SDL3", EntryPoint = "WarpMouseGlobal")] + int WarpMouseGlobal(float x, float y); + + [NativeFunction("SDL3", EntryPoint = "WarpMouseInWindow")] + void WarpMouseInWindow(SDL_Window* window, float x, float y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] + void WarpMouseInWindow(Ref window, float x, float y); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "WasInit")] + uint WasInit([NativeTypeName("Uint32")] uint flags); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WindowHasSurface")] + int WindowHasSurface(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] + MaybeBool WindowHasSurface(Ref window); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "WriteIO")] + nuint WriteIO( + SDL_IOStream* context, + [NativeTypeName("const void *")] void* ptr, + [NativeTypeName("size_t")] nuint size + ); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteIO")] + nuint WriteIO( + Ref context, + [NativeTypeName("const void *")] Ref ptr, + [NativeTypeName("size_t")] nuint size + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16BE")] + int WriteS16BE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] + MaybeBool WriteS16BE(Ref dst, [NativeTypeName("Sint16")] short value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16LE")] + int WriteS16LE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] + MaybeBool WriteS16LE(Ref dst, [NativeTypeName("Sint16")] short value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32BE")] + int WriteS32BE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] + MaybeBool WriteS32BE(Ref dst, [NativeTypeName("Sint32")] int value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32LE")] + int WriteS32LE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] + MaybeBool WriteS32LE(Ref dst, [NativeTypeName("Sint32")] int value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64BE")] + int WriteS64BE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] + MaybeBool WriteS64BE(Ref dst, [NativeTypeName("Sint64")] long value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64LE")] + int WriteS64LE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] + MaybeBool WriteS64LE(Ref dst, [NativeTypeName("Sint64")] long value); + + [NativeFunction("SDL3", EntryPoint = "WriteStorageFile")] + int WriteStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const void *")] void* source, + [NativeTypeName("Uint64")] ulong length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] + int WriteStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const void *")] Ref source, + [NativeTypeName("Uint64")] ulong length + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU16BE")] + int WriteU16BE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] + MaybeBool WriteU16BE(Ref dst, [NativeTypeName("Uint16")] ushort value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU16LE")] + int WriteU16LE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] + MaybeBool WriteU16LE(Ref dst, [NativeTypeName("Uint16")] ushort value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32BE")] + int WriteU32BE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] + MaybeBool WriteU32BE(Ref dst, [NativeTypeName("Uint32")] uint value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32LE")] + int WriteU32LE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] + MaybeBool WriteU32LE(Ref dst, [NativeTypeName("Uint32")] uint value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64BE")] + int WriteU64BE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] + MaybeBool WriteU64BE(Ref dst, [NativeTypeName("Uint64")] ulong value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64LE")] + int WriteU64LE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] + MaybeBool WriteU64LE(Ref dst, [NativeTypeName("Uint64")] ulong value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU8")] + int WriteU8(SDL_IOStream* dst, [NativeTypeName("Uint8")] byte value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] + MaybeBool WriteU8(Ref dst, [NativeTypeName("Uint8")] byte value); +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_ArrayOrder.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_ArrayOrder.gen.cs new file mode 100644 index 0000000000..99a1a83fb4 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_ArrayOrder.gen.cs @@ -0,0 +1,23 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum ArrayOrder : uint +{ + None, + Rgb, + Rgba, + Argb, + Bgr, + Bgra, + Abgr, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_AssertData.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_AssertData.gen.cs new file mode 100644 index 0000000000..f6d8e633ff --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_AssertData.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct AssertData +{ + [NativeTypeName("SDL_bool")] + public int AlwaysIgnore; + + [NativeTypeName("unsigned int")] + public uint TriggerCount; + + [NativeTypeName("const char *")] + public sbyte* Condition; + + [NativeTypeName("const char *")] + public sbyte* Filename; + public int Linenum; + + [NativeTypeName("const char *")] + public sbyte* Function; + + [NativeTypeName("const struct SDL_AssertData *")] + public AssertData* Next; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_AssertState.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_AssertState.gen.cs new file mode 100644 index 0000000000..7a53cb2822 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_AssertState.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum AssertState : uint +{ + Retry, + Break, + Abort, + Ignore, + AlwaysIgnore, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_AtomicInt.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_AtomicInt.gen.cs new file mode 100644 index 0000000000..75a1ec3739 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_AtomicInt.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct AtomicInt +{ + public int Value; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_AudioDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_AudioDeviceEvent.gen.cs new file mode 100644 index 0000000000..58dfa60905 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_AudioDeviceEvent.gen.cs @@ -0,0 +1,43 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct AudioDeviceEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_AudioDeviceID")] + public uint Which; + + [NativeTypeName("Uint8")] + public byte Iscapture; + + [NativeTypeName("Uint8")] + public byte Padding1; + + [NativeTypeName("Uint8")] + public byte Padding2; + + [NativeTypeName("Uint8")] + public byte Padding3; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_AudioSpec.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_AudioSpec.gen.cs new file mode 100644 index 0000000000..a0a9923e3d --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_AudioSpec.gen.cs @@ -0,0 +1,19 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct AudioSpec +{ + [NativeTypeName("SDL_AudioFormat")] + public ushort Format; + public int Channels; + public int Freq; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_BitmapOrder.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_BitmapOrder.gen.cs new file mode 100644 index 0000000000..d5113cf4c1 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_BitmapOrder.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum BitmapOrder : uint +{ + BitmaporderNone, + Bitmaporder4321, + Bitmaporder1234, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_BlendFactor.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_BlendFactor.gen.cs new file mode 100644 index 0000000000..8785cab206 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_BlendFactor.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum BlendFactor : uint +{ + Zero = 0x1, + One = 0x2, + SrcColor = 0x3, + OneMinusSrcColor = 0x4, + SrcAlpha = 0x5, + OneMinusSrcAlpha = 0x6, + DstColor = 0x7, + OneMinusDstColor = 0x8, + DstAlpha = 0x9, + OneMinusDstAlpha = 0xA, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_BlendMode.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_BlendMode.gen.cs new file mode 100644 index 0000000000..0db3f457ea --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_BlendMode.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum BlendMode : uint +{ + None = 0x00000000, + Blend = 0x00000001, + Add = 0x00000002, + Mod = 0x00000004, + Mul = 0x00000008, + Invalid = 0x7FFFFFFF, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_BlendOperation.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_BlendOperation.gen.cs new file mode 100644 index 0000000000..50bc813400 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_BlendOperation.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum BlendOperation : uint +{ + Add = 0x1, + Subtract = 0x2, + RevSubtract = 0x3, + Minimum = 0x4, + Maximum = 0x5, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_CameraDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_CameraDeviceEvent.gen.cs new file mode 100644 index 0000000000..736e271211 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_CameraDeviceEvent.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct CameraDeviceEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_CameraDeviceID")] + public uint Which; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_CameraPosition.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_CameraPosition.gen.cs new file mode 100644 index 0000000000..df7614f448 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_CameraPosition.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.Runtime.CompilerServices; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum CameraPosition : uint +{ + Unknown, + FrontFacing, + BackFacing, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_CameraSpec.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_CameraSpec.gen.cs new file mode 100644 index 0000000000..e798c98c1d --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_CameraSpec.gen.cs @@ -0,0 +1,20 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct CameraSpec +{ + public PixelFormatEnum Format; + public int Width; + public int Height; + public int IntervalNumerator; + public int IntervalDenominator; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_ChromaLocation.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_ChromaLocation.gen.cs new file mode 100644 index 0000000000..737af40067 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_ChromaLocation.gen.cs @@ -0,0 +1,26 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum ChromaLocation : uint +{ + None = 0, + Left = 1, + Center = 2, + Topleft = 3, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_ClipboardEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_ClipboardEvent.gen.cs new file mode 100644 index 0000000000..b2ae81919c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_ClipboardEvent.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct ClipboardEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Color.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Color.gen.cs new file mode 100644 index 0000000000..cdac9dbf31 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Color.gen.cs @@ -0,0 +1,37 @@ +// 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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct Color +{ + [NativeTypeName("Uint8")] + public byte R; + + [NativeTypeName("Uint8")] + public byte G; + + [NativeTypeName("Uint8")] + public byte B; + + [NativeTypeName("Uint8")] + public byte A; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_ColorPrimaries.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_ColorPrimaries.gen.cs new file mode 100644 index 0000000000..289995c079 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_ColorPrimaries.gen.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum ColorPrimaries : uint +{ + Unknown = 0, + Bt709 = 1, + Unspecified = 2, + Bt470M = 4, + Bt470Bg = 5, + Bt601 = 6, + Smpte240 = 7, + GenericFilm = 8, + Bt2020 = 9, + Xyz = 10, + Smpte431 = 11, + Smpte432 = 12, + Ebu3213 = 22, + Custom = 31, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_ColorRange.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_ColorRange.gen.cs new file mode 100644 index 0000000000..437a025b26 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_ColorRange.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum ColorRange : uint +{ + Unknown = 0, + Limited = 1, + Full = 2, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_ColorType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_ColorType.gen.cs new file mode 100644 index 0000000000..35590c89ff --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_ColorType.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum ColorType : uint +{ + Unknown = 0, + Rgb = 1, + Ycbcr = 2, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Colorspace.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Colorspace.gen.cs new file mode 100644 index 0000000000..c4fc3fb567 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Colorspace.gen.cs @@ -0,0 +1,115 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum Colorspace : uint +{ + Unknown, + Srgb = + ( + ((uint)(Rgb) << 28) + | ((uint)(Full) << 24) + | ((uint)(None) << 20) + | ((uint)(ColorPrimaries.Bt709) << 10) + | ((uint)(TransferCharacteristics.Srgb) << 5) + | ((uint)(Identity) << 0) + ), + SrgbLinear = + ( + ((uint)(Rgb) << 28) + | ((uint)(Full) << 24) + | ((uint)(None) << 20) + | ((uint)(ColorPrimaries.Bt709) << 10) + | ((uint)(Linear) << 5) + | ((uint)(Identity) << 0) + ), + Hdr10 = + ( + ((uint)(Rgb) << 28) + | ((uint)(Full) << 24) + | ((uint)(None) << 20) + | ((uint)(Bt2020) << 10) + | ((uint)(Pq) << 5) + | ((uint)(Identity) << 0) + ), + Jpeg = + ( + ((uint)(Ycbcr) << 28) + | ((uint)(Full) << 24) + | ((uint)(None) << 20) + | ((uint)(ColorPrimaries.Bt709) << 10) + | ((uint)(TransferCharacteristics.Bt601) << 5) + | ((uint)(MatrixCoefficients.Bt601) << 0) + ), + Bt601Limited = + ( + ((uint)(Ycbcr) << 28) + | ((uint)(Limited) << 24) + | ((uint)(Left) << 20) + | ((uint)(ColorPrimaries.Bt601) << 10) + | ((uint)(TransferCharacteristics.Bt601) << 5) + | ((uint)(MatrixCoefficients.Bt601) << 0) + ), + Bt601Full = + ( + ((uint)(Ycbcr) << 28) + | ((uint)(Full) << 24) + | ((uint)(Left) << 20) + | ((uint)(ColorPrimaries.Bt601) << 10) + | ((uint)(TransferCharacteristics.Bt601) << 5) + | ((uint)(MatrixCoefficients.Bt601) << 0) + ), + Bt709Limited = + ( + ((uint)(Ycbcr) << 28) + | ((uint)(Limited) << 24) + | ((uint)(Left) << 20) + | ((uint)(ColorPrimaries.Bt709) << 10) + | ((uint)(TransferCharacteristics.Bt709) << 5) + | ((uint)(MatrixCoefficients.Bt709) << 0) + ), + Bt709Full = + ( + ((uint)(Ycbcr) << 28) + | ((uint)(Full) << 24) + | ((uint)(Left) << 20) + | ((uint)(ColorPrimaries.Bt709) << 10) + | ((uint)(TransferCharacteristics.Bt709) << 5) + | ((uint)(MatrixCoefficients.Bt709) << 0) + ), + Bt2020Limited = + ( + ((uint)(Ycbcr) << 28) + | ((uint)(Limited) << 24) + | ((uint)(Left) << 20) + | ((uint)(Bt2020) << 10) + | ((uint)(Pq) << 5) + | ((uint)(Bt2020Ncl) << 0) + ), + Bt2020Full = + ( + ((uint)(Ycbcr) << 28) + | ((uint)(Full) << 24) + | ((uint)(Left) << 20) + | ((uint)(Bt2020) << 10) + | ((uint)(Pq) << 5) + | ((uint)(Bt2020Ncl) << 0) + ), + RgbDefault = Srgb, + YuvDefault = Jpeg, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_CommonEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_CommonEvent.gen.cs new file mode 100644 index 0000000000..cc2cfb620d --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_CommonEvent.gen.cs @@ -0,0 +1,19 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; + +namespace Silk.NET.SDL; + +public partial struct CommonEvent +{ + [NativeTypeName("Uint32")] + public uint Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_DateFormat.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_DateFormat.gen.cs new file mode 100644 index 0000000000..6ecd54f870 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_DateFormat.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.Runtime.CompilerServices; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum DateFormat : uint +{ + Yyyymmdd = 0, + Ddmmyyyy = 1, + Mmddyyyy = 2, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_DateTime.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_DateTime.gen.cs new file mode 100644 index 0000000000..2ccf0ba32a --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_DateTime.gen.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct DateTime +{ + public int Year; + public int Month; + public int Day; + public int Hour; + public int Minute; + public int Second; + public int Nanosecond; + public int DayOfWeek; + public int UtcOffset; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_DialogFileFilter.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_DialogFileFilter.gen.cs new file mode 100644 index 0000000000..603ff5060c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_DialogFileFilter.gen.cs @@ -0,0 +1,26 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct DialogFileFilter +{ + [NativeTypeName("const char *")] + public sbyte* Name; + + [NativeTypeName("const char *")] + public sbyte* Pattern; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_DisplayEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_DisplayEvent.gen.cs new file mode 100644 index 0000000000..60b0a5f3b6 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_DisplayEvent.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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct DisplayEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_DisplayID")] + public uint DisplayID; + + [NativeTypeName("Sint32")] + public int Data1; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_DisplayMode.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_DisplayMode.gen.cs new file mode 100644 index 0000000000..a5f10ba771 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_DisplayMode.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct DisplayMode +{ + [NativeTypeName("SDL_DisplayID")] + public uint DisplayID; + public PixelFormatEnum Format; + public int W; + public int H; + public float PixelDensity; + public float RefreshRate; + public void* Driverdata; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_DisplayOrientation.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_DisplayOrientation.gen.cs new file mode 100644 index 0000000000..0d450a8019 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_DisplayOrientation.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum DisplayOrientation : uint +{ + Unknown, + Landscape, + LandscapeFlipped, + Portrait, + PortraitFlipped, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_DropEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_DropEvent.gen.cs new file mode 100644 index 0000000000..99b55bdaf7 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_DropEvent.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct DropEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + public float X; + public float Y; + + [NativeTypeName("char *")] + public sbyte* Source; + + [NativeTypeName("char *")] + public sbyte* Data; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Event.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Event.gen.cs new file mode 100644 index 0000000000..a1bd20c1f9 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Event.gen.cs @@ -0,0 +1,128 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +[StructLayout(LayoutKind.Explicit)] +public partial struct Event +{ + [FieldOffset(0)] + [NativeTypeName("Uint32")] + public uint Type; + + [FieldOffset(0)] + public CommonEvent Common; + + [FieldOffset(0)] + public DisplayEvent Display; + + [FieldOffset(0)] + public WindowEvent Window; + + [FieldOffset(0)] + public KeyboardDeviceEvent Kdevice; + + [FieldOffset(0)] + public KeyboardEvent Key; + + [FieldOffset(0)] + public TextEditingEvent Edit; + + [FieldOffset(0)] + public TextInputEvent Text; + + [FieldOffset(0)] + public MouseDeviceEvent Mdevice; + + [FieldOffset(0)] + public MouseMotionEvent Motion; + + [FieldOffset(0)] + public MouseButtonEvent Button; + + [FieldOffset(0)] + public MouseWheelEvent Wheel; + + [FieldOffset(0)] + public JoyDeviceEvent Jdevice; + + [FieldOffset(0)] + public JoyAxisEvent Jaxis; + + [FieldOffset(0)] + public JoyBallEvent Jball; + + [FieldOffset(0)] + public JoyHatEvent Jhat; + + [FieldOffset(0)] + public JoyButtonEvent Jbutton; + + [FieldOffset(0)] + public JoyBatteryEvent Jbattery; + + [FieldOffset(0)] + public GamepadDeviceEvent Gdevice; + + [FieldOffset(0)] + public GamepadAxisEvent Gaxis; + + [FieldOffset(0)] + public GamepadButtonEvent Gbutton; + + [FieldOffset(0)] + public GamepadTouchpadEvent Gtouchpad; + + [FieldOffset(0)] + public GamepadSensorEvent Gsensor; + + [FieldOffset(0)] + public AudioDeviceEvent Adevice; + + [FieldOffset(0)] + public CameraDeviceEvent Cdevice; + + [FieldOffset(0)] + public SensorEvent Sensor; + + [FieldOffset(0)] + public QuitEvent Quit; + + [FieldOffset(0)] + public UserEvent User; + + [FieldOffset(0)] + public TouchFingerEvent Tfinger; + + [FieldOffset(0)] + public PenTipEvent Ptip; + + [FieldOffset(0)] + public PenMotionEvent Pmotion; + + [FieldOffset(0)] + public PenButtonEvent Pbutton; + + [FieldOffset(0)] + public DropEvent Drop; + + [FieldOffset(0)] + public ClipboardEvent Clipboard; + + [FieldOffset(0)] + [NativeTypeName("Uint8[128]")] + public _padding_e__FixedBuffer Padding; + + [InlineArray(128)] + public partial struct _padding_e__FixedBuffer + { + public byte e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_EventAction.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_EventAction.gen.cs new file mode 100644 index 0000000000..ddca85a7a5 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_EventAction.gen.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum EventAction : uint +{ + Addevent, + Peekevent, + Getevent, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_EventType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_EventType.gen.cs new file mode 100644 index 0000000000..a9ea8ae985 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_EventType.gen.cs @@ -0,0 +1,134 @@ +// 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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum EventType : uint +{ + First = 0, + Quit = 0x100, + Terminating, + LowMemory, + WillEnterBackground, + DidEnterBackground, + WillEnterForeground, + DidEnterForeground, + LocaleChanged, + SystemThemeChanged, + DisplayOrientation = 0x151, + DisplayAdded, + DisplayRemoved, + DisplayMoved, + DisplayContentScaleChanged, + DisplayHdrStateChanged, + DisplayFirst = DisplayOrientation, + DisplayLast = DisplayHdrStateChanged, + WindowShown = 0x202, + WindowHidden, + WindowExposed, + WindowMoved, + WindowResized, + WindowPixelSizeChanged, + WindowMinimized, + WindowMaximized, + WindowRestored, + WindowMouseEnter, + WindowMouseLeave, + WindowFocusGained, + WindowFocusLost, + WindowCloseRequested, + WindowTakeFocus, + WindowHitTest, + WindowIccprofChanged, + WindowDisplayChanged, + WindowDisplayScaleChanged, + WindowOccluded, + WindowEnterFullscreen, + WindowLeaveFullscreen, + WindowDestroyed, + WindowPenEnter, + WindowPenLeave, + WindowFirst = WindowShown, + WindowLast = WindowPenLeave, + KeyDown = 0x300, + KeyUp, + TextEditing, + TextInput, + KeymapChanged, + KeyboardAdded, + KeyboardRemoved, + MouseMotion = 0x400, + MouseButtonDown, + MouseButtonUp, + MouseWheel, + MouseAdded, + MouseRemoved, + JoystickAxisMotion = 0x600, + JoystickBallMotion, + JoystickHatMotion, + JoystickButtonDown, + JoystickButtonUp, + JoystickAdded, + JoystickRemoved, + JoystickBatteryUpdated, + JoystickUpdateComplete, + GamepadAxisMotion = 0x650, + GamepadButtonDown, + GamepadButtonUp, + GamepadAdded, + GamepadRemoved, + GamepadRemapped, + GamepadTouchpadDown, + GamepadTouchpadMotion, + GamepadTouchpadUp, + GamepadSensorUpdate, + GamepadUpdateComplete, + GamepadSteamHandleUpdated, + FingerDown = 0x700, + FingerUp, + FingerMotion, + ClipboardUpdate = 0x900, + DropFile = 0x1000, + DropText, + DropBegin, + DropComplete, + DropPosition, + AudioDeviceAdded = 0x1100, + AudioDeviceRemoved, + AudioDeviceFormatChanged, + SensorUpdate = 0x1200, + PenDown = 0x1300, + PenUp, + PenMotion, + PenButtonDown, + PenButtonUp, + CameraDeviceAdded = 0x1400, + CameraDeviceRemoved, + CameraDeviceApproved, + CameraDeviceDenied, + RenderTargetsReset = 0x2000, + RenderDeviceReset, + PollSentinel = 0x7F00, + User = 0x8000, + Last = 0xFFFF, + EnumPadding = 0x7FFFFFFF, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_FColor.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_FColor.gen.cs new file mode 100644 index 0000000000..4133dd61c9 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_FColor.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct FColor +{ + public float R; + public float G; + public float B; + public float A; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_FPoint.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_FPoint.gen.cs new file mode 100644 index 0000000000..9ada8b8af0 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_FPoint.gen.cs @@ -0,0 +1,13 @@ +// 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 FPoint +{ + public float X; + public float Y; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_FRect.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_FRect.gen.cs new file mode 100644 index 0000000000..8f17424d43 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_FRect.gen.cs @@ -0,0 +1,19 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct FRect +{ + public float X; + public float Y; + public float W; + public float H; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Finger.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Finger.gen.cs new file mode 100644 index 0000000000..0269dc788f --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Finger.gen.cs @@ -0,0 +1,20 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct Finger +{ + [NativeTypeName("SDL_FingerID")] + public ulong Id; + public float X; + public float Y; + public float Pressure; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_FlashOperation.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_FlashOperation.gen.cs new file mode 100644 index 0000000000..4c6ce8286b --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_FlashOperation.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum FlashOperation : uint +{ + Cancel, + Briefly, + UntilFocused, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_FlipMode.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_FlipMode.gen.cs new file mode 100644 index 0000000000..f33ef4629a --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_FlipMode.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum FlipMode : uint +{ + None, + Horizontal, + Vertical, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Folder.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Folder.gen.cs new file mode 100644 index 0000000000..74d997dabb --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Folder.gen.cs @@ -0,0 +1,38 @@ +// 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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum Folder : uint +{ + Home, + Desktop, + Documents, + Downloads, + Music, + Pictures, + Publicshare, + Savedgames, + Screenshots, + Templates, + Videos, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GLContextResetNotification.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GLContextResetNotification.gen.cs new file mode 100644 index 0000000000..eedcffac01 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GLContextResetNotification.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum GLContextResetNotification : uint +{ + NoNotification = 0x0000, + LoseContext = 0x0001, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GLattr.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GLattr.gen.cs new file mode 100644 index 0000000000..f5fcaf1b46 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GLattr.gen.cs @@ -0,0 +1,50 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum GLattr : uint +{ + RedSize, + GreenSize, + BlueSize, + AlphaSize, + BufferSize, + Doublebuffer, + DepthSize, + StencilSize, + AccumRedSize, + AccumGreenSize, + AccumBlueSize, + AccumAlphaSize, + Stereo, + Multisamplebuffers, + Multisamplesamples, + AcceleratedVisual, + RetainedBacking, + ContextMajorVersion, + ContextMinorVersion, + ContextFlags, + ContextProfileMask, + ShareWithCurrentContext, + FramebufferSrgbCapable, + ContextReleaseBehavior, + ContextResetNotification, + ContextNoError, + Floatbuffers, + EglPlatform, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GLcontextFlag.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GLcontextFlag.gen.cs new file mode 100644 index 0000000000..f40ae084ce --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GLcontextFlag.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; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum GLcontextFlag : uint +{ + DebugFlag = 0x0001, + ForwardCompatibleFlag = 0x0002, + RobustAccessFlag = 0x0004, + ResetIsolationFlag = 0x0008, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GLcontextReleaseFlag.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GLcontextReleaseFlag.gen.cs new file mode 100644 index 0000000000..efae1c9683 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GLcontextReleaseFlag.gen.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum GLcontextReleaseFlag : uint +{ + None = 0x0000, + Flush = 0x0001, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GLprofile.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GLprofile.gen.cs new file mode 100644 index 0000000000..9ba47bbf6e --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GLprofile.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.Runtime.CompilerServices; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum GLprofile : uint +{ + Core = 0x0001, + Compatibility = 0x0002, + Es = 0x0004, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GUID.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GUID.gen.cs new file mode 100644 index 0000000000..0e29d8ea28 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GUID.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct Guid +{ + [NativeTypeName("Uint8[16]")] + public _data_e__FixedBuffer Data; + + [InlineArray(16)] + public partial struct _data_e__FixedBuffer + { + public byte e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadAxis.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadAxis.gen.cs new file mode 100644 index 0000000000..19c5ccf691 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadAxis.gen.cs @@ -0,0 +1,23 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public enum GamepadAxis +{ + Invalid = -1, + Leftx, + Lefty, + Rightx, + Righty, + LeftTrigger, + RightTrigger, + Max, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadAxisEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadAxisEvent.gen.cs new file mode 100644 index 0000000000..e450f4f617 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadAxisEvent.gen.cs @@ -0,0 +1,54 @@ +// 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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct GamepadAxisEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; + + [NativeTypeName("Uint8")] + public byte Axis; + + [NativeTypeName("Uint8")] + public byte Padding1; + + [NativeTypeName("Uint8")] + public byte Padding2; + + [NativeTypeName("Uint8")] + public byte Padding3; + + [NativeTypeName("Sint16")] + public short Value; + + [NativeTypeName("Uint16")] + public ushort Padding4; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadBinding.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadBinding.gen.cs new file mode 100644 index 0000000000..ef4dadff98 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadBinding.gen.cs @@ -0,0 +1,69 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct GamepadBinding +{ + public GamepadBindingType InputType; + + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L196_C5")] + public _input_e__Union Input; + public GamepadBindingType OutputType; + + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L216_C5")] + public _output_e__Union Output; + + [StructLayout(LayoutKind.Explicit)] + public partial struct _input_e__Union + { + [FieldOffset(0)] + public int button; + + [FieldOffset(0)] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L200_C9")] + public _axis_e__Struct axis; + + [FieldOffset(0)] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L207_C9")] + public _hat_e__Struct hat; + + public partial struct _axis_e__Struct + { + public int axis; + public int axis_min; + public int axis_max; + } + + public partial struct _hat_e__Struct + { + public int hat; + public int hat_mask; + } + } + + [StructLayout(LayoutKind.Explicit)] + public partial struct _output_e__Union + { + [FieldOffset(0)] + public GamepadButton button; + + [FieldOffset(0)] + [NativeTypeName("__AnonymousRecord_SDL_gamepad_L220_C9")] + public _axis_e__Struct axis; + + public partial struct _axis_e__Struct + { + public GamepadAxis axis; + public int axis_min; + public int axis_max; + } + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadBindingType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadBindingType.gen.cs new file mode 100644 index 0000000000..f4b5cc060f --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadBindingType.gen.cs @@ -0,0 +1,26 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum GamepadBindingType : uint +{ + None = 0, + Button, + Axis, + Hat, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButton.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButton.gen.cs new file mode 100644 index 0000000000..9f4e3c06f3 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButton.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.CompilerServices; + +namespace Silk.NET.SDL; + +public enum GamepadButton +{ + Invalid = -1, + South, + East, + West, + North, + Back, + Guide, + Start, + LeftStick, + RightStick, + LeftShoulder, + RightShoulder, + DpadUp, + DpadDown, + DpadLeft, + DpadRight, + Misc1, + RightPaddle1, + LeftPaddle1, + RightPaddle2, + LeftPaddle2, + Touchpad, + Misc2, + Misc3, + Misc4, + Misc5, + Misc6, + Max, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonEvent.gen.cs new file mode 100644 index 0000000000..59ac4eabff --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonEvent.gen.cs @@ -0,0 +1,37 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct GamepadButtonEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; + + [NativeTypeName("Uint8")] + public byte Button; + + [NativeTypeName("Uint8")] + public byte State; + + [NativeTypeName("Uint8")] + public byte Padding1; + + [NativeTypeName("Uint8")] + public byte Padding2; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonLabel.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonLabel.gen.cs new file mode 100644 index 0000000000..d1255df073 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonLabel.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum GamepadButtonLabel : uint +{ + Unknown, + A, + B, + X, + Y, + Cross, + Circle, + Square, + Triangle, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadDeviceEvent.gen.cs new file mode 100644 index 0000000000..b5d5bb92c7 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadDeviceEvent.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct GamepadDeviceEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadSensorEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadSensorEvent.gen.cs new file mode 100644 index 0000000000..be7f66740e --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadSensorEvent.gen.cs @@ -0,0 +1,46 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct GamepadSensorEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; + + [NativeTypeName("Sint32")] + public int Sensor; + + [NativeTypeName("float[3]")] + public _data_e__FixedBuffer Data; + + [NativeTypeName("Uint64")] + public ulong SensorTimestamp; + + [InlineArray(3)] + public partial struct _data_e__FixedBuffer + { + public float e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadTouchpadEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadTouchpadEvent.gen.cs new file mode 100644 index 0000000000..884250e178 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadTouchpadEvent.gen.cs @@ -0,0 +1,40 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct GamepadTouchpadEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; + + [NativeTypeName("Sint32")] + public int Touchpad; + + [NativeTypeName("Sint32")] + public int Finger; + public float X; + public float Y; + public float Pressure; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadType.gen.cs new file mode 100644 index 0000000000..9253e6546f --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_GamepadType.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum GamepadType : uint +{ + Unknown = 0, + Standard, + Xbox360, + Xboxone, + Ps3, + Ps4, + Ps5, + NintendoSwitchPro, + NintendoSwitchJoyconLeft, + NintendoSwitchJoyconRight, + NintendoSwitchJoyconPair, + Max, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HapticCondition.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticCondition.gen.cs new file mode 100644 index 0000000000..22daea026c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticCondition.gen.cs @@ -0,0 +1,90 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct HapticCondition +{ + [NativeTypeName("Uint16")] + public ushort Type; + public HapticDirection Direction; + + [NativeTypeName("Uint32")] + public uint Length; + + [NativeTypeName("Uint16")] + public ushort Delay; + + [NativeTypeName("Uint16")] + public ushort Button; + + [NativeTypeName("Uint16")] + public ushort Interval; + + [NativeTypeName("Uint16[3]")] + public _right_sat_e__FixedBuffer RightSat; + + [NativeTypeName("Uint16[3]")] + public _left_sat_e__FixedBuffer LeftSat; + + [NativeTypeName("Sint16[3]")] + public _right_coeff_e__FixedBuffer RightCoeff; + + [NativeTypeName("Sint16[3]")] + public _left_coeff_e__FixedBuffer LeftCoeff; + + [NativeTypeName("Uint16[3]")] + public _deadband_e__FixedBuffer Deadband; + + [NativeTypeName("Sint16[3]")] + public _center_e__FixedBuffer Center; + + [InlineArray(3)] + public partial struct _right_sat_e__FixedBuffer + { + public ushort e0; + } + + [InlineArray(3)] + public partial struct _left_sat_e__FixedBuffer + { + public ushort e0; + } + + [InlineArray(3)] + public partial struct _right_coeff_e__FixedBuffer + { + public short e0; + } + + [InlineArray(3)] + public partial struct _left_coeff_e__FixedBuffer + { + public short e0; + } + + [InlineArray(3)] + public partial struct _deadband_e__FixedBuffer + { + public ushort e0; + } + + [InlineArray(3)] + public partial struct _center_e__FixedBuffer + { + public short e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HapticConstant.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticConstant.gen.cs new file mode 100644 index 0000000000..acea59dc2c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticConstant.gen.cs @@ -0,0 +1,51 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct HapticConstant +{ + [NativeTypeName("Uint16")] + public ushort Type; + public HapticDirection Direction; + + [NativeTypeName("Uint32")] + public uint Length; + + [NativeTypeName("Uint16")] + public ushort Delay; + + [NativeTypeName("Uint16")] + public ushort Button; + + [NativeTypeName("Uint16")] + public ushort Interval; + + [NativeTypeName("Sint16")] + public short Level; + + [NativeTypeName("Uint16")] + public ushort AttackLength; + + [NativeTypeName("Uint16")] + public ushort AttackLevel; + + [NativeTypeName("Uint16")] + public ushort FadeLength; + + [NativeTypeName("Uint16")] + public ushort FadeLevel; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HapticCustom.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticCustom.gen.cs new file mode 100644 index 0000000000..0685941f0b --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticCustom.gen.cs @@ -0,0 +1,60 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct HapticCustom +{ + [NativeTypeName("Uint16")] + public ushort Type; + public HapticDirection Direction; + + [NativeTypeName("Uint32")] + public uint Length; + + [NativeTypeName("Uint16")] + public ushort Delay; + + [NativeTypeName("Uint16")] + public ushort Button; + + [NativeTypeName("Uint16")] + public ushort Interval; + + [NativeTypeName("Uint8")] + public byte Channels; + + [NativeTypeName("Uint16")] + public ushort Period; + + [NativeTypeName("Uint16")] + public ushort Samples; + + [NativeTypeName("Uint16 *")] + public ushort* Data; + + [NativeTypeName("Uint16")] + public ushort AttackLength; + + [NativeTypeName("Uint16")] + public ushort AttackLevel; + + [NativeTypeName("Uint16")] + public ushort FadeLength; + + [NativeTypeName("Uint16")] + public ushort FadeLevel; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HapticDirection.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticDirection.gen.cs new file mode 100644 index 0000000000..b35ee4de59 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticDirection.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct HapticDirection +{ + [NativeTypeName("Uint8")] + public byte Type; + + [NativeTypeName("Sint32[3]")] + public _dir_e__FixedBuffer Dir; + + [InlineArray(3)] + public partial struct _dir_e__FixedBuffer + { + public int e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HapticEffect.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticEffect.gen.cs new file mode 100644 index 0000000000..0d79531cf6 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticEffect.gen.cs @@ -0,0 +1,37 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +[StructLayout(LayoutKind.Explicit)] +public partial struct HapticEffect +{ + [FieldOffset(0)] + [NativeTypeName("Uint16")] + public ushort Type; + + [FieldOffset(0)] + public HapticConstant Constant; + + [FieldOffset(0)] + public HapticPeriodic Periodic; + + [FieldOffset(0)] + public HapticCondition Condition; + + [FieldOffset(0)] + public HapticRamp Ramp; + + [FieldOffset(0)] + public HapticLeftRight Leftright; + + [FieldOffset(0)] + public HapticCustom Custom; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HapticLeftRight.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticLeftRight.gen.cs new file mode 100644 index 0000000000..c1fc5e7817 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticLeftRight.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct HapticLeftRight +{ + [NativeTypeName("Uint16")] + public ushort Type; + + [NativeTypeName("Uint32")] + public uint Length; + + [NativeTypeName("Uint16")] + public ushort LargeMagnitude; + + [NativeTypeName("Uint16")] + public ushort SmallMagnitude; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HapticPeriodic.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticPeriodic.gen.cs new file mode 100644 index 0000000000..285a2e0985 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticPeriodic.gen.cs @@ -0,0 +1,65 @@ +// 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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct HapticPeriodic +{ + [NativeTypeName("Uint16")] + public ushort Type; + public HapticDirection Direction; + + [NativeTypeName("Uint32")] + public uint Length; + + [NativeTypeName("Uint16")] + public ushort Delay; + + [NativeTypeName("Uint16")] + public ushort Button; + + [NativeTypeName("Uint16")] + public ushort Interval; + + [NativeTypeName("Uint16")] + public ushort Period; + + [NativeTypeName("Sint16")] + public short Magnitude; + + [NativeTypeName("Sint16")] + public short Offset; + + [NativeTypeName("Uint16")] + public ushort Phase; + + [NativeTypeName("Uint16")] + public ushort AttackLength; + + [NativeTypeName("Uint16")] + public ushort AttackLevel; + + [NativeTypeName("Uint16")] + public ushort FadeLength; + + [NativeTypeName("Uint16")] + public ushort FadeLevel; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HapticRamp.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticRamp.gen.cs new file mode 100644 index 0000000000..7c79a58e78 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HapticRamp.gen.cs @@ -0,0 +1,54 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct HapticRamp +{ + [NativeTypeName("Uint16")] + public ushort Type; + public HapticDirection Direction; + + [NativeTypeName("Uint32")] + public uint Length; + + [NativeTypeName("Uint16")] + public ushort Delay; + + [NativeTypeName("Uint16")] + public ushort Button; + + [NativeTypeName("Uint16")] + public ushort Interval; + + [NativeTypeName("Sint16")] + public short Start; + + [NativeTypeName("Sint16")] + public short End; + + [NativeTypeName("Uint16")] + public ushort AttackLength; + + [NativeTypeName("Uint16")] + public ushort AttackLevel; + + [NativeTypeName("Uint16")] + public ushort FadeLength; + + [NativeTypeName("Uint16")] + public ushort FadeLevel; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HintPriority.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HintPriority.gen.cs new file mode 100644 index 0000000000..1c9cf46b0e --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HintPriority.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum HintPriority : uint +{ + Default, + Normal, + Override, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_HitTestResult.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_HitTestResult.gen.cs new file mode 100644 index 0000000000..bf18e6d1a2 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_HitTestResult.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum HitTestResult : uint +{ + Normal, + Draggable, + ResizeTopleft, + ResizeTop, + ResizeTopright, + ResizeRight, + ResizeBottomright, + ResizeBottom, + ResizeBottomleft, + ResizeLeft, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_IOStatus.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_IOStatus.gen.cs new file mode 100644 index 0000000000..a27163ceca --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_IOStatus.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum IOStatus : uint +{ + Ready, + Error, + Eof, + NotReady, + Readonly, + Writeonly, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_IOStreamInterface.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_IOStreamInterface.gen.cs new file mode 100644 index 0000000000..5408c23cfb --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_IOStreamInterface.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct IOStreamInterface +{ + [NativeTypeName("Sint64 (*)(void *)")] + public delegate* unmanaged Size; + + [NativeTypeName("Sint64 (*)(void *, Sint64, int)")] + public delegate* unmanaged Seek; + + [NativeTypeName("size_t (*)(void *, void *, size_t, SDL_IOStatus *)")] + public delegate* unmanaged Read; + + [NativeTypeName("size_t (*)(void *, const void *, size_t, SDL_IOStatus *)")] + public delegate* unmanaged Write; + + [NativeTypeName("int (*)(void *)")] + public delegate* unmanaged Close; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_InitFlags.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_InitFlags.gen.cs new file mode 100644 index 0000000000..ce0aa49bba --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_InitFlags.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +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/SDL3/SDL_JoyAxisEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyAxisEvent.gen.cs new file mode 100644 index 0000000000..22cd44905d --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyAxisEvent.gen.cs @@ -0,0 +1,54 @@ +// 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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct JoyAxisEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; + + [NativeTypeName("Uint8")] + public byte Axis; + + [NativeTypeName("Uint8")] + public byte Padding1; + + [NativeTypeName("Uint8")] + public byte Padding2; + + [NativeTypeName("Uint8")] + public byte Padding3; + + [NativeTypeName("Sint16")] + public short Value; + + [NativeTypeName("Uint16")] + public ushort Padding4; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_JoyBallEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyBallEvent.gen.cs new file mode 100644 index 0000000000..7ecc387e8c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyBallEvent.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.CompilerServices; + +namespace Silk.NET.SDL; + +public partial struct JoyBallEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; + + [NativeTypeName("Uint8")] + public byte Ball; + + [NativeTypeName("Uint8")] + public byte Padding1; + + [NativeTypeName("Uint8")] + public byte Padding2; + + [NativeTypeName("Uint8")] + public byte Padding3; + + [NativeTypeName("Sint16")] + public short Xrel; + + [NativeTypeName("Sint16")] + public short Yrel; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_JoyBatteryEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyBatteryEvent.gen.cs new file mode 100644 index 0000000000..cd2eb196d6 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyBatteryEvent.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct JoyBatteryEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; + public PowerState State; + public int Percent; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_JoyButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyButtonEvent.gen.cs new file mode 100644 index 0000000000..304a939168 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyButtonEvent.gen.cs @@ -0,0 +1,43 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct JoyButtonEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; + + [NativeTypeName("Uint8")] + public byte Button; + + [NativeTypeName("Uint8")] + public byte State; + + [NativeTypeName("Uint8")] + public byte Padding1; + + [NativeTypeName("Uint8")] + public byte Padding2; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_JoyDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyDeviceEvent.gen.cs new file mode 100644 index 0000000000..4273ae72dc --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyDeviceEvent.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct JoyDeviceEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_JoyHatEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyHatEvent.gen.cs new file mode 100644 index 0000000000..7ef523f43c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_JoyHatEvent.gen.cs @@ -0,0 +1,43 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct JoyHatEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_JoystickID")] + public uint Which; + + [NativeTypeName("Uint8")] + public byte Hat; + + [NativeTypeName("Uint8")] + public byte Value; + + [NativeTypeName("Uint8")] + public byte Padding1; + + [NativeTypeName("Uint8")] + public byte Padding2; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_JoystickConnectionState.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_JoystickConnectionState.gen.cs new file mode 100644 index 0000000000..ebe9081d9a --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_JoystickConnectionState.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public enum JoystickConnectionState +{ + Invalid = -1, + Unknown, + Wired, + Wireless, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_JoystickType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_JoystickType.gen.cs new file mode 100644 index 0000000000..5812a89e89 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_JoystickType.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum JoystickType : uint +{ + Unknown, + Gamepad, + Wheel, + ArcadeStick, + FlightStick, + DancePad, + Guitar, + DrumKit, + ArcadePad, + Throttle, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_KeyboardDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_KeyboardDeviceEvent.gen.cs new file mode 100644 index 0000000000..b4985e0cb2 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_KeyboardDeviceEvent.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct KeyboardDeviceEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_KeyboardID")] + public uint Which; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_KeyboardEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_KeyboardEvent.gen.cs new file mode 100644 index 0000000000..73cfdf753e --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_KeyboardEvent.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.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct KeyboardEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("SDL_KeyboardID")] + public uint Which; + + [NativeTypeName("Uint8")] + public byte State; + + [NativeTypeName("Uint8")] + public byte Repeat; + + [NativeTypeName("Uint8")] + public byte Padding2; + + [NativeTypeName("Uint8")] + public byte Padding3; + public Keysym Keysym; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Keymod.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Keymod.gen.cs new file mode 100644 index 0000000000..9eb5e36a0f --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Keymod.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.Runtime.CompilerServices; + +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/SDL3/SDL_Keysym.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Keysym.gen.cs new file mode 100644 index 0000000000..58b0234d52 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Keysym.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct Keysym +{ + public Scancode Scancode; + + [NativeTypeName("SDL_Keycode")] + public int Sym; + + [NativeTypeName("Uint16")] + public ushort Mod; + + [NativeTypeName("Uint32")] + public uint Unused; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Locale.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Locale.gen.cs new file mode 100644 index 0000000000..38e3e24f94 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Locale.gen.cs @@ -0,0 +1,26 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct Locale +{ + [NativeTypeName("const char *")] + public sbyte* Language; + + [NativeTypeName("const char *")] + public sbyte* Country; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_LogCategory.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_LogCategory.gen.cs new file mode 100644 index 0000000000..e4d2917cc5 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_LogCategory.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum LogCategory : uint +{ + Application, + Error, + Assert, + System, + Audio, + Video, + Render, + Input, + Test, + Reserved1, + Reserved2, + Reserved3, + Reserved4, + Reserved5, + Reserved6, + Reserved7, + Reserved8, + Reserved9, + Reserved10, + Custom, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_LogPriority.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_LogPriority.gen.cs new file mode 100644 index 0000000000..4659d7bffc --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_LogPriority.gen.cs @@ -0,0 +1,19 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System.Runtime.CompilerServices; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum LogPriority : uint +{ + LogPriorityVerbose = 1, + LogPriorityDebug, + LogPriorityInfo, + LogPriorityWarn, + LogPriorityError, + LogPriorityCritical, + NumLogPriorities, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MatrixCoefficients.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MatrixCoefficients.gen.cs new file mode 100644 index 0000000000..6771d5cae6 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MatrixCoefficients.gen.cs @@ -0,0 +1,37 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum MatrixCoefficients : uint +{ + Identity = 0, + Bt709 = 1, + Unspecified = 2, + Fcc = 4, + Bt470Bg = 5, + Bt601 = 6, + Smpte240 = 7, + Ycgco = 8, + Bt2020Ncl = 9, + Bt2020Cl = 10, + Smpte2085 = 11, + ChromaDerivedNcl = 12, + ChromaDerivedCl = 13, + Ictcp = 14, + Custom = 31, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonData.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonData.gen.cs new file mode 100644 index 0000000000..01b83c7f2b --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonData.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct MessageBoxButtonData +{ + [NativeTypeName("Uint32")] + public uint Flags; + public int ButtonID; + + [NativeTypeName("const char *")] + public sbyte* Text; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonFlags.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonFlags.gen.cs new file mode 100644 index 0000000000..2f7045f70c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonFlags.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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum MessageBoxButtonFlags : uint +{ + ReturnkeyDefault = 0x00000001, + EscapekeyDefault = 0x00000002, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColor.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColor.gen.cs new file mode 100644 index 0000000000..76d2a34f22 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColor.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct MessageBoxColor +{ + [NativeTypeName("Uint8")] + public byte R; + + [NativeTypeName("Uint8")] + public byte G; + + [NativeTypeName("Uint8")] + public byte B; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorScheme.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorScheme.gen.cs new file mode 100644 index 0000000000..acf7364887 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorScheme.gen.cs @@ -0,0 +1,23 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct MessageBoxColorScheme +{ + [NativeTypeName("SDL_MessageBoxColor[5]")] + public _colors_e__FixedBuffer Colors; + + [InlineArray(5)] + public partial struct _colors_e__FixedBuffer + { + public MessageBoxColor e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorType.gen.cs new file mode 100644 index 0000000000..4b2bc9a5d1 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorType.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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum MessageBoxColorType : uint +{ + Background, + Text, + ButtonBorder, + ButtonBackground, + ButtonSelected, + Max, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxData.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxData.gen.cs new file mode 100644 index 0000000000..cf00c250fc --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxData.gen.cs @@ -0,0 +1,37 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct MessageBoxData +{ + [NativeTypeName("Uint32")] + public uint Flags; + public SDL_Window* Window; + + [NativeTypeName("const char *")] + public sbyte* Title; + + [NativeTypeName("const char *")] + public sbyte* Message; + public int Numbuttons; + + [NativeTypeName("const SDL_MessageBoxButtonData *")] + public MessageBoxButtonData* Buttons; + + [NativeTypeName("const SDL_MessageBoxColorScheme *")] + public MessageBoxColorScheme* ColorScheme; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxFlags.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxFlags.gen.cs new file mode 100644 index 0000000000..a61ac9aa55 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MessageBoxFlags.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +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/SDL3/SDL_MouseButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseButtonEvent.gen.cs new file mode 100644 index 0000000000..27116a29a2 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseButtonEvent.gen.cs @@ -0,0 +1,48 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct MouseButtonEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("SDL_MouseID")] + public uint Which; + + [NativeTypeName("Uint8")] + public byte Button; + + [NativeTypeName("Uint8")] + public byte State; + + [NativeTypeName("Uint8")] + public byte Clicks; + + [NativeTypeName("Uint8")] + public byte Padding; + public float X; + public float Y; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MouseDeviceEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseDeviceEvent.gen.cs new file mode 100644 index 0000000000..5fdfc9b326 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseDeviceEvent.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct MouseDeviceEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_MouseID")] + public uint Which; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MouseMotionEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseMotionEvent.gen.cs new file mode 100644 index 0000000000..8b7eb33d74 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseMotionEvent.gen.cs @@ -0,0 +1,41 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct MouseMotionEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("SDL_MouseID")] + public uint Which; + + [NativeTypeName("Uint32")] + public uint State; + public float X; + public float Y; + public float Xrel; + public float Yrel; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MouseWheelDirection.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseWheelDirection.gen.cs new file mode 100644 index 0000000000..9d43e611c3 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseWheelDirection.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum MouseWheelDirection : uint +{ + Normal, + Flipped, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_MouseWheelEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseWheelEvent.gen.cs new file mode 100644 index 0000000000..344921bd6a --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_MouseWheelEvent.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct MouseWheelEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("SDL_MouseID")] + public uint Which; + public float X; + public float Y; + public MouseWheelDirection Direction; + public float MouseX; + public float MouseY; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PackedLayout.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PackedLayout.gen.cs new file mode 100644 index 0000000000..6f2b272810 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PackedLayout.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum PackedLayout : uint +{ + PackedlayoutNone, + Packedlayout332, + Packedlayout4444, + Packedlayout1555, + Packedlayout5551, + Packedlayout565, + Packedlayout8888, + Packedlayout2101010, + Packedlayout1010102, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PackedOrder.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PackedOrder.gen.cs new file mode 100644 index 0000000000..7ef1d13a14 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PackedOrder.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum PackedOrder : uint +{ + None, + Xrgb, + Rgbx, + Argb, + Rgba, + Xbgr, + Bgrx, + Abgr, + Bgra, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Palette.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Palette.gen.cs new file mode 100644 index 0000000000..588ed9ed49 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Palette.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct Palette +{ + public int Ncolors; + public Color* Colors; + + [NativeTypeName("Uint32")] + public uint Version; + public int Refcount; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PathInfo.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PathInfo.gen.cs new file mode 100644 index 0000000000..07f777f882 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PathInfo.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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct PathInfo +{ + public PathType Type; + + [NativeTypeName("Uint64")] + public ulong Size; + + [NativeTypeName("SDL_Time")] + public long CreateTime; + + [NativeTypeName("SDL_Time")] + public long ModifyTime; + + [NativeTypeName("SDL_Time")] + public long AccessTime; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PathType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PathType.gen.cs new file mode 100644 index 0000000000..ad036bab6d --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PathType.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; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum PathType : uint +{ + None, + File, + Directory, + Other, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PenAxis.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PenAxis.gen.cs new file mode 100644 index 0000000000..b828723cd4 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PenAxis.gen.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum PenAxis : uint +{ + AxisPressure = 0, + AxisXtilt, + AxisYtilt, + AxisDistance, + AxisRotation, + AxisSlider, + NumAxes, + AxisLast = NumAxes - 1, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PenButtonEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PenButtonEvent.gen.cs new file mode 100644 index 0000000000..be8540e6f9 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PenButtonEvent.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.Runtime.CompilerServices; + +namespace Silk.NET.SDL; + +public partial struct PenButtonEvent +{ + 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("Uint8")] + public byte Button; + + [NativeTypeName("Uint8")] + public byte State; + + [NativeTypeName("Uint16")] + public ushort PenState; + public float X; + public float Y; + + [NativeTypeName("float[6]")] + public _axes_e__FixedBuffer Axes; + + [InlineArray(6)] + public partial struct _axes_e__FixedBuffer + { + public float e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PenCapabilityInfo.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PenCapabilityInfo.gen.cs new file mode 100644 index 0000000000..89ba5099c2 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PenCapabilityInfo.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +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/SDL3/SDL_PenMotionEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PenMotionEvent.gen.cs new file mode 100644 index 0000000000..4ad58cc266 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PenMotionEvent.gen.cs @@ -0,0 +1,54 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct PenMotionEvent +{ + 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("Uint8")] + public byte Padding1; + + [NativeTypeName("Uint8")] + public byte Padding2; + + [NativeTypeName("Uint16")] + public ushort PenState; + public float X; + public float Y; + + [NativeTypeName("float[6]")] + public _axes_e__FixedBuffer Axes; + + [InlineArray(6)] + public partial struct _axes_e__FixedBuffer + { + public float e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PenSubtype.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PenSubtype.gen.cs new file mode 100644 index 0000000000..4ad940b70e --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PenSubtype.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +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/SDL3/SDL_PenTipEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PenTipEvent.gen.cs new file mode 100644 index 0000000000..156c027e72 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PenTipEvent.gen.cs @@ -0,0 +1,59 @@ +// 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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct PenTipEvent +{ + 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("Uint8")] + public byte Tip; + + [NativeTypeName("Uint8")] + public byte State; + + [NativeTypeName("Uint16")] + public ushort PenState; + public float X; + public float Y; + + [NativeTypeName("float[6]")] + public _axes_e__FixedBuffer Axes; + + [InlineArray(6)] + public partial struct _axes_e__FixedBuffer + { + public float e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PixelFormat.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PixelFormat.gen.cs new file mode 100644 index 0000000000..2fabf34b23 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PixelFormat.gen.cs @@ -0,0 +1,78 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct PixelFormat +{ + public PixelFormatEnum Format; + public Palette* Palette; + + [NativeTypeName("Uint8")] + public byte BitsPerPixel; + + [NativeTypeName("Uint8")] + public byte BytesPerPixel; + + [NativeTypeName("Uint8[2]")] + public _padding_e__FixedBuffer 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; + + [InlineArray(2)] + public partial struct _padding_e__FixedBuffer + { + public byte e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PixelFormatEnum.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PixelFormatEnum.gen.cs new file mode 100644 index 0000000000..d4975fd2ea --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PixelFormatEnum.gen.cs @@ -0,0 +1,561 @@ +// 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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum PixelFormatEnum : uint +{ + Unknown, + Index1Lsb = + ( + (1 << 28) + | ((Index1) << 24) + | ((Bitmaporder4321) << 20) + | ((0) << 16) + | ((1) << 8) + | ((0) << 0) + ), + Index1Msb = + ( + (1 << 28) + | ((Index1) << 24) + | ((Bitmaporder1234) << 20) + | ((0) << 16) + | ((1) << 8) + | ((0) << 0) + ), + Index2Lsb = + ( + (1 << 28) + | ((Index2) << 24) + | ((Bitmaporder4321) << 20) + | ((0) << 16) + | ((2) << 8) + | ((0) << 0) + ), + Index2Msb = + ( + (1 << 28) + | ((Index2) << 24) + | ((Bitmaporder1234) << 20) + | ((0) << 16) + | ((2) << 8) + | ((0) << 0) + ), + Index4Lsb = + ( + (1 << 28) + | ((Index4) << 24) + | ((Bitmaporder4321) << 20) + | ((0) << 16) + | ((4) << 8) + | ((0) << 0) + ), + Index4Msb = + ( + (1 << 28) + | ((Index4) << 24) + | ((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) + | ((Packed8) << 24) + | ((Xrgb) << 20) + | ((Packedlayout332) << 16) + | ((8) << 8) + | ((1) << 0) + ), + Xrgb4444 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((Xrgb) << 20) + | ((Packedlayout4444) << 16) + | ((12) << 8) + | ((2) << 0) + ), + Rgb444 = Xrgb4444, + Xbgr4444 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((Xbgr) << 20) + | ((Packedlayout4444) << 16) + | ((12) << 8) + | ((2) << 0) + ), + Bgr444 = Xbgr4444, + Xrgb1555 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((Xrgb) << 20) + | ((Packedlayout1555) << 16) + | ((15) << 8) + | ((2) << 0) + ), + Rgb555 = Xrgb1555, + Xbgr1555 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((Xbgr) << 20) + | ((Packedlayout1555) << 16) + | ((15) << 8) + | ((2) << 0) + ), + Bgr555 = Xbgr1555, + Argb4444 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((PackedOrder.Argb) << 20) + | ((Packedlayout4444) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Rgba4444 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((PackedOrder.Rgba) << 20) + | ((Packedlayout4444) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Abgr4444 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((PackedOrder.Abgr) << 20) + | ((Packedlayout4444) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Bgra4444 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((PackedOrder.Bgra) << 20) + | ((Packedlayout4444) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Argb1555 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((PackedOrder.Argb) << 20) + | ((Packedlayout1555) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Rgba5551 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((PackedOrder.Rgba) << 20) + | ((Packedlayout5551) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Abgr1555 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((PackedOrder.Abgr) << 20) + | ((Packedlayout1555) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Bgra5551 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((PackedOrder.Bgra) << 20) + | ((Packedlayout5551) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Rgb565 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((Xrgb) << 20) + | ((Packedlayout565) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Bgr565 = + ( + (1 << 28) + | ((Packed16) << 24) + | ((Xbgr) << 20) + | ((Packedlayout565) << 16) + | ((16) << 8) + | ((2) << 0) + ), + Rgb24 = + ( + (1 << 28) + | ((Arrayu8) << 24) + | ((ArrayOrder.Rgb) << 20) + | ((0) << 16) + | ((24) << 8) + | ((3) << 0) + ), + Bgr24 = + ((1 << 28) | ((Arrayu8) << 24) | ((Bgr) << 20) | ((0) << 16) | ((24) << 8) | ((3) << 0)), + Xrgb8888 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((Xrgb) << 20) + | ((Packedlayout8888) << 16) + | ((24) << 8) + | ((4) << 0) + ), + Rgbx8888 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((Rgbx) << 20) + | ((Packedlayout8888) << 16) + | ((24) << 8) + | ((4) << 0) + ), + Xbgr8888 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((Xbgr) << 20) + | ((Packedlayout8888) << 16) + | ((24) << 8) + | ((4) << 0) + ), + Bgrx8888 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((Bgrx) << 20) + | ((Packedlayout8888) << 16) + | ((24) << 8) + | ((4) << 0) + ), + Argb8888 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((PackedOrder.Argb) << 20) + | ((Packedlayout8888) << 16) + | ((32) << 8) + | ((4) << 0) + ), + Rgba8888 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((PackedOrder.Rgba) << 20) + | ((Packedlayout8888) << 16) + | ((32) << 8) + | ((4) << 0) + ), + Abgr8888 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((PackedOrder.Abgr) << 20) + | ((Packedlayout8888) << 16) + | ((32) << 8) + | ((4) << 0) + ), + Bgra8888 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((PackedOrder.Bgra) << 20) + | ((Packedlayout8888) << 16) + | ((32) << 8) + | ((4) << 0) + ), + Xrgb2101010 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((Xrgb) << 20) + | ((Packedlayout2101010) << 16) + | ((32) << 8) + | ((4) << 0) + ), + Xbgr2101010 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((Xbgr) << 20) + | ((Packedlayout2101010) << 16) + | ((32) << 8) + | ((4) << 0) + ), + Argb2101010 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((PackedOrder.Argb) << 20) + | ((Packedlayout2101010) << 16) + | ((32) << 8) + | ((4) << 0) + ), + Abgr2101010 = + ( + (1 << 28) + | ((Packed32) << 24) + | ((PackedOrder.Abgr) << 20) + | ((Packedlayout2101010) << 16) + | ((32) << 8) + | ((4) << 0) + ), + Rgb48 = + ( + (1 << 28) + | ((Arrayu16) << 24) + | ((ArrayOrder.Rgb) << 20) + | ((0) << 16) + | ((48) << 8) + | ((6) << 0) + ), + Bgr48 = + ((1 << 28) | ((Arrayu16) << 24) | ((Bgr) << 20) | ((0) << 16) | ((48) << 8) | ((6) << 0)), + Rgba64 = + ( + (1 << 28) + | ((Arrayu16) << 24) + | ((ArrayOrder.Rgba) << 20) + | ((0) << 16) + | ((64) << 8) + | ((8) << 0) + ), + Argb64 = + ( + (1 << 28) + | ((Arrayu16) << 24) + | ((ArrayOrder.Argb) << 20) + | ((0) << 16) + | ((64) << 8) + | ((8) << 0) + ), + Bgra64 = + ( + (1 << 28) + | ((Arrayu16) << 24) + | ((ArrayOrder.Bgra) << 20) + | ((0) << 16) + | ((64) << 8) + | ((8) << 0) + ), + Abgr64 = + ( + (1 << 28) + | ((Arrayu16) << 24) + | ((ArrayOrder.Abgr) << 20) + | ((0) << 16) + | ((64) << 8) + | ((8) << 0) + ), + Rgb48Float = + ( + (1 << 28) + | ((Arrayf16) << 24) + | ((ArrayOrder.Rgb) << 20) + | ((0) << 16) + | ((48) << 8) + | ((6) << 0) + ), + Bgr48Float = + ((1 << 28) | ((Arrayf16) << 24) | ((Bgr) << 20) | ((0) << 16) | ((48) << 8) | ((6) << 0)), + Rgba64Float = + ( + (1 << 28) + | ((Arrayf16) << 24) + | ((ArrayOrder.Rgba) << 20) + | ((0) << 16) + | ((64) << 8) + | ((8) << 0) + ), + Argb64Float = + ( + (1 << 28) + | ((Arrayf16) << 24) + | ((ArrayOrder.Argb) << 20) + | ((0) << 16) + | ((64) << 8) + | ((8) << 0) + ), + Bgra64Float = + ( + (1 << 28) + | ((Arrayf16) << 24) + | ((ArrayOrder.Bgra) << 20) + | ((0) << 16) + | ((64) << 8) + | ((8) << 0) + ), + Abgr64Float = + ( + (1 << 28) + | ((Arrayf16) << 24) + | ((ArrayOrder.Abgr) << 20) + | ((0) << 16) + | ((64) << 8) + | ((8) << 0) + ), + Rgb96Float = + ( + (1 << 28) + | ((Arrayf32) << 24) + | ((ArrayOrder.Rgb) << 20) + | ((0) << 16) + | ((96) << 8) + | ((12) << 0) + ), + Bgr96Float = + ((1 << 28) | ((Arrayf32) << 24) | ((Bgr) << 20) | ((0) << 16) | ((96) << 8) | ((12) << 0)), + Rgba128Float = + ( + (1 << 28) + | ((Arrayf32) << 24) + | ((ArrayOrder.Rgba) << 20) + | ((0) << 16) + | ((128) << 8) + | ((16) << 0) + ), + Argb128Float = + ( + (1 << 28) + | ((Arrayf32) << 24) + | ((ArrayOrder.Argb) << 20) + | ((0) << 16) + | ((128) << 8) + | ((16) << 0) + ), + Bgra128Float = + ( + (1 << 28) + | ((Arrayf32) << 24) + | ((ArrayOrder.Bgra) << 20) + | ((0) << 16) + | ((128) << 8) + | ((16) << 0) + ), + Abgr128Float = + ( + (1 << 28) + | ((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/SDL3/SDL_PixelType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PixelType.gen.cs new file mode 100644 index 0000000000..c5b3804672 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PixelType.gen.cs @@ -0,0 +1,40 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum PixelType : uint +{ + Unknown, + Index1, + Index4, + Index8, + Packed8, + Packed16, + Packed32, + Arrayu8, + Arrayu16, + Arrayu32, + Arrayf16, + Arrayf32, + Index2, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Point.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Point.gen.cs new file mode 100644 index 0000000000..36ffc2bd9b --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Point.gen.cs @@ -0,0 +1,13 @@ +// 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 Point +{ + public int X; + public int Y; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PowerState.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PowerState.gen.cs new file mode 100644 index 0000000000..bef49852ed --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PowerState.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public enum PowerState +{ + Error = -1, + Unknown, + OnBattery, + NoBattery, + Charging, + Charged, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_PropertyType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_PropertyType.gen.cs new file mode 100644 index 0000000000..d5c78e9650 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_PropertyType.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum PropertyType : uint +{ + Invalid, + Pointer, + String, + Number, + Float, + Boolean, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_QuitEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_QuitEvent.gen.cs new file mode 100644 index 0000000000..edbd68a996 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_QuitEvent.gen.cs @@ -0,0 +1,22 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct QuitEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Rect.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Rect.gen.cs new file mode 100644 index 0000000000..b1e9201c3e --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Rect.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct Rect +{ + public int X; + public int Y; + public int W; + public int H; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_RendererFlags.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_RendererFlags.gen.cs new file mode 100644 index 0000000000..58de9e10fc --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_RendererFlags.gen.cs @@ -0,0 +1,23 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum RendererFlags : uint +{ + Presentvsync = 0x00000004, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_RendererInfo.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_RendererInfo.gen.cs new file mode 100644 index 0000000000..6e3c79afe8 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_RendererInfo.gen.cs @@ -0,0 +1,43 @@ +// 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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +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 _texture_formats_e__FixedBuffer TextureFormats; + public int MaxTextureWidth; + public int MaxTextureHeight; + + [InlineArray(16)] + public partial struct _texture_formats_e__FixedBuffer + { + public PixelFormatEnum e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_RendererLogicalPresentation.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_RendererLogicalPresentation.gen.cs new file mode 100644 index 0000000000..fe4a3e0d7c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_RendererLogicalPresentation.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum RendererLogicalPresentation : uint +{ + Disabled, + Stretch, + Letterbox, + Overscan, + IntegerScale, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_ScaleMode.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_ScaleMode.gen.cs new file mode 100644 index 0000000000..1583d22731 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_ScaleMode.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum ScaleMode : uint +{ + Nearest, + Linear, + Best, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Scancode.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Scancode.gen.cs new file mode 100644 index 0000000000..b8ff40537d --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Scancode.gen.cs @@ -0,0 +1,270 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum Scancode : uint +{ + ScancodeUnknown = 0, + ScancodeA = 4, + ScancodeB = 5, + ScancodeC = 6, + ScancodeD = 7, + ScancodeE = 8, + ScancodeF = 9, + ScancodeG = 10, + ScancodeH = 11, + ScancodeI = 12, + ScancodeJ = 13, + ScancodeK = 14, + ScancodeL = 15, + ScancodeM = 16, + ScancodeN = 17, + ScancodeO = 18, + ScancodeP = 19, + ScancodeQ = 20, + ScancodeR = 21, + ScancodeS = 22, + ScancodeT = 23, + ScancodeU = 24, + ScancodeV = 25, + ScancodeW = 26, + ScancodeX = 27, + ScancodeY = 28, + ScancodeZ = 29, + Scancode1 = 30, + Scancode2 = 31, + Scancode3 = 32, + Scancode4 = 33, + Scancode5 = 34, + Scancode6 = 35, + Scancode7 = 36, + Scancode8 = 37, + Scancode9 = 38, + Scancode0 = 39, + ScancodeReturn = 40, + ScancodeEscape = 41, + ScancodeBackspace = 42, + ScancodeTab = 43, + ScancodeSpace = 44, + ScancodeMinus = 45, + ScancodeEquals = 46, + ScancodeLeftbracket = 47, + ScancodeRightbracket = 48, + ScancodeBackslash = 49, + ScancodeNonushash = 50, + ScancodeSemicolon = 51, + ScancodeApostrophe = 52, + ScancodeGrave = 53, + ScancodeComma = 54, + ScancodePeriod = 55, + ScancodeSlash = 56, + ScancodeCapslock = 57, + ScancodeF1 = 58, + ScancodeF2 = 59, + ScancodeF3 = 60, + ScancodeF4 = 61, + ScancodeF5 = 62, + ScancodeF6 = 63, + ScancodeF7 = 64, + ScancodeF8 = 65, + ScancodeF9 = 66, + ScancodeF10 = 67, + ScancodeF11 = 68, + ScancodeF12 = 69, + ScancodePrintscreen = 70, + ScancodeScrolllock = 71, + ScancodePause = 72, + ScancodeInsert = 73, + ScancodeHome = 74, + ScancodePageup = 75, + ScancodeDelete = 76, + ScancodeEnd = 77, + ScancodePagedown = 78, + ScancodeRight = 79, + ScancodeLeft = 80, + ScancodeDown = 81, + ScancodeUp = 82, + ScancodeNumlockclear = 83, + ScancodeKpDivide = 84, + ScancodeKpMultiply = 85, + ScancodeKpMinus = 86, + ScancodeKpPlus = 87, + ScancodeKpEnter = 88, + ScancodeKp1 = 89, + ScancodeKp2 = 90, + ScancodeKp3 = 91, + ScancodeKp4 = 92, + ScancodeKp5 = 93, + ScancodeKp6 = 94, + ScancodeKp7 = 95, + ScancodeKp8 = 96, + ScancodeKp9 = 97, + ScancodeKp0 = 98, + ScancodeKpPeriod = 99, + ScancodeNonusbackslash = 100, + ScancodeApplication = 101, + ScancodePower = 102, + ScancodeKpEquals = 103, + ScancodeF13 = 104, + ScancodeF14 = 105, + ScancodeF15 = 106, + ScancodeF16 = 107, + ScancodeF17 = 108, + ScancodeF18 = 109, + ScancodeF19 = 110, + ScancodeF20 = 111, + ScancodeF21 = 112, + ScancodeF22 = 113, + ScancodeF23 = 114, + ScancodeF24 = 115, + ScancodeExecute = 116, + ScancodeHelp = 117, + ScancodeMenu = 118, + ScancodeSelect = 119, + ScancodeStop = 120, + ScancodeAgain = 121, + ScancodeUndo = 122, + ScancodeCut = 123, + ScancodeCopy = 124, + ScancodePaste = 125, + ScancodeFind = 126, + ScancodeMute = 127, + ScancodeVolumeup = 128, + ScancodeVolumedown = 129, + ScancodeKpComma = 133, + ScancodeKpEqualsas400 = 134, + ScancodeInternational1 = 135, + ScancodeInternational2 = 136, + ScancodeInternational3 = 137, + ScancodeInternational4 = 138, + ScancodeInternational5 = 139, + ScancodeInternational6 = 140, + ScancodeInternational7 = 141, + ScancodeInternational8 = 142, + ScancodeInternational9 = 143, + ScancodeLang1 = 144, + ScancodeLang2 = 145, + ScancodeLang3 = 146, + ScancodeLang4 = 147, + ScancodeLang5 = 148, + ScancodeLang6 = 149, + ScancodeLang7 = 150, + ScancodeLang8 = 151, + ScancodeLang9 = 152, + ScancodeAlterase = 153, + ScancodeSysreq = 154, + ScancodeCancel = 155, + ScancodeClear = 156, + ScancodePrior = 157, + ScancodeReturn2 = 158, + ScancodeSeparator = 159, + ScancodeOut = 160, + ScancodeOper = 161, + ScancodeClearagain = 162, + ScancodeCrsel = 163, + ScancodeExsel = 164, + ScancodeKp00 = 176, + ScancodeKp000 = 177, + ScancodeThousandsseparator = 178, + ScancodeDecimalseparator = 179, + ScancodeCurrencyunit = 180, + ScancodeCurrencysubunit = 181, + ScancodeKpLeftparen = 182, + ScancodeKpRightparen = 183, + ScancodeKpLeftbrace = 184, + ScancodeKpRightbrace = 185, + ScancodeKpTab = 186, + ScancodeKpBackspace = 187, + ScancodeKpA = 188, + ScancodeKpB = 189, + ScancodeKpC = 190, + ScancodeKpD = 191, + ScancodeKpE = 192, + ScancodeKpF = 193, + ScancodeKpXor = 194, + ScancodeKpPower = 195, + ScancodeKpPercent = 196, + ScancodeKpLess = 197, + ScancodeKpGreater = 198, + ScancodeKpAmpersand = 199, + ScancodeKpDblampersand = 200, + ScancodeKpVerticalbar = 201, + ScancodeKpDblverticalbar = 202, + ScancodeKpColon = 203, + ScancodeKpHash = 204, + ScancodeKpSpace = 205, + ScancodeKpAt = 206, + ScancodeKpExclam = 207, + ScancodeKpMemstore = 208, + ScancodeKpMemrecall = 209, + ScancodeKpMemclear = 210, + ScancodeKpMemadd = 211, + ScancodeKpMemsubtract = 212, + ScancodeKpMemmultiply = 213, + ScancodeKpMemdivide = 214, + ScancodeKpPlusminus = 215, + ScancodeKpClear = 216, + ScancodeKpClearentry = 217, + ScancodeKpBinary = 218, + ScancodeKpOctal = 219, + ScancodeKpDecimal = 220, + ScancodeKpHexadecimal = 221, + ScancodeLctrl = 224, + ScancodeLshift = 225, + ScancodeLalt = 226, + ScancodeLgui = 227, + ScancodeRctrl = 228, + ScancodeRshift = 229, + 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, + ScancodeSoftleft = 287, + ScancodeSoftright = 288, + ScancodeCall = 289, + ScancodeEndcall = 290, + NumScancodes = 512, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_SensorEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_SensorEvent.gen.cs new file mode 100644 index 0000000000..d1ee51ccec --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_SensorEvent.gen.cs @@ -0,0 +1,43 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct SensorEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_SensorID")] + public uint Which; + + [NativeTypeName("float[6]")] + public _data_e__FixedBuffer Data; + + [NativeTypeName("Uint64")] + public ulong SensorTimestamp; + + [InlineArray(6)] + public partial struct _data_e__FixedBuffer + { + public float e0; + } +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_SensorType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_SensorType.gen.cs new file mode 100644 index 0000000000..5d0d65ad2c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_SensorType.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public enum SensorType +{ + Invalid = -1, + Unknown, + Accel, + Gyro, + AccelL, + GyroL, + AccelR, + GyroR, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_StorageInterface.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_StorageInterface.gen.cs new file mode 100644 index 0000000000..8400eee2f2 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_StorageInterface.gen.cs @@ -0,0 +1,55 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct StorageInterface +{ + [NativeTypeName("int (*)(void *)")] + public delegate* unmanaged Close; + + [NativeTypeName("SDL_bool (*)(void *)")] + public delegate* unmanaged Ready; + + [NativeTypeName("int (*)(void *, const char *, SDL_EnumerateDirectoryCallback, void *)")] + public delegate* unmanaged< + void*, + sbyte*, + delegate* unmanaged, + void*, + int> Enumerate; + + [NativeTypeName("int (*)(void *, const char *, SDL_PathInfo *)")] + public delegate* unmanaged Info; + + [NativeTypeName("int (*)(void *, const char *, void *, Uint64)")] + public delegate* unmanaged ReadFile; + + [NativeTypeName("int (*)(void *, const char *, const void *, Uint64)")] + public delegate* unmanaged WriteFile; + + [NativeTypeName("int (*)(void *, const char *)")] + public delegate* unmanaged Mkdir; + + [NativeTypeName("int (*)(void *, const char *)")] + public delegate* unmanaged Remove; + + [NativeTypeName("int (*)(void *, const char *, const char *)")] + public delegate* unmanaged Rename; + + [NativeTypeName("Uint64 (*)(void *)")] + public delegate* unmanaged SpaceRemaining; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Surface.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Surface.gen.cs new file mode 100644 index 0000000000..f86d38b010 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Surface.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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public unsafe partial struct Surface +{ + [NativeTypeName("Uint32")] + public uint Flags; + 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 SDL_BlitMap* Map; + public int Refcount; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_SystemCursor.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_SystemCursor.gen.cs new file mode 100644 index 0000000000..4b7ad942f4 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_SystemCursor.gen.cs @@ -0,0 +1,43 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +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, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_SystemTheme.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_SystemTheme.gen.cs new file mode 100644 index 0000000000..87ef86b143 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_SystemTheme.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum SystemTheme : uint +{ + Unknown, + Light, + Dark, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_TextEditingEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_TextEditingEvent.gen.cs new file mode 100644 index 0000000000..3ceb00b1f7 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_TextEditingEvent.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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public unsafe partial struct TextEditingEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("char *")] + public sbyte* Text; + + [NativeTypeName("Sint32")] + public int Start; + + [NativeTypeName("Sint32")] + public int Length; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_TextInputEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_TextInputEvent.gen.cs new file mode 100644 index 0000000000..b16b11c7ce --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_TextInputEvent.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct TextInputEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("char *")] + public sbyte* Text; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_TextureAccess.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_TextureAccess.gen.cs new file mode 100644 index 0000000000..9058c6b38e --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_TextureAccess.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum TextureAccess : uint +{ + Static, + Streaming, + Target, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_ThreadPriority.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_ThreadPriority.gen.cs new file mode 100644 index 0000000000..65d71ce238 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_ThreadPriority.gen.cs @@ -0,0 +1,20 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum ThreadPriority : uint +{ + Low, + Normal, + High, + TimeCritical, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_TimeFormat.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_TimeFormat.gen.cs new file mode 100644 index 0000000000..8256f13c2d --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_TimeFormat.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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum TimeFormat : uint +{ + Format24Hr = 0, + Format12Hr = 1, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_TouchDeviceType.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_TouchDeviceType.gen.cs new file mode 100644 index 0000000000..d5ae511c4c --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_TouchDeviceType.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; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public enum TouchDeviceType +{ + Invalid = -1, + Direct, + IndirectAbsolute, + IndirectRelative, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_TouchFingerEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_TouchFingerEvent.gen.cs new file mode 100644 index 0000000000..d8694230ae --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_TouchFingerEvent.gen.cs @@ -0,0 +1,42 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct TouchFingerEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_TouchID")] + public ulong TouchID; + + [NativeTypeName("SDL_FingerID")] + public ulong FingerID; + public float X; + public float Y; + public float Dx; + public float Dy; + public float Pressure; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_TransferCharacteristics.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_TransferCharacteristics.gen.cs new file mode 100644 index 0000000000..560ce1777e --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_TransferCharacteristics.gen.cs @@ -0,0 +1,41 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum TransferCharacteristics : uint +{ + Unknown = 0, + Bt709 = 1, + Unspecified = 2, + Gamma22 = 4, + Gamma28 = 5, + Bt601 = 6, + Smpte240 = 7, + Linear = 8, + Log100 = 9, + Log100Sqrt10 = 10, + Iec61966 = 11, + Bt1361 = 12, + Srgb = 13, + Bt2020X10Bit = 14, + Bt2020X12Bit = 15, + Pq = 16, + Smpte428 = 17, + Hlg = 18, + Custom = 31, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_UserEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_UserEvent.gen.cs new file mode 100644 index 0000000000..6ebbcb9fea --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_UserEvent.gen.cs @@ -0,0 +1,37 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct UserEvent +{ + [NativeTypeName("Uint32")] + public uint Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("Sint32")] + public int Code; + public void* Data1; + public void* Data2; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Version.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Version.gen.cs new file mode 100644 index 0000000000..a9762afcd3 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Version.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; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct Version +{ + [NativeTypeName("Uint8")] + public byte Major; + + [NativeTypeName("Uint8")] + public byte Minor; + + [NativeTypeName("Uint8")] + public byte Patch; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_Vertex.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_Vertex.gen.cs new file mode 100644 index 0000000000..72000dbae6 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_Vertex.gen.cs @@ -0,0 +1,24 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public partial struct Vertex +{ + public FPoint Position; + public FColor Color; + public FPoint TexCoord; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_VirtualJoystickDesc.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_VirtualJoystickDesc.gen.cs new file mode 100644 index 0000000000..b21a9c8557 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_VirtualJoystickDesc.gen.cs @@ -0,0 +1,69 @@ +// 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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +public unsafe partial struct VirtualJoystickDesc +{ + [NativeTypeName("Uint16")] + public ushort Type; + + [NativeTypeName("Uint16")] + public ushort Naxes; + + [NativeTypeName("Uint16")] + public ushort Nbuttons; + + [NativeTypeName("Uint16")] + public ushort Nhats; + + [NativeTypeName("Uint16")] + public ushort VendorId; + + [NativeTypeName("Uint16")] + public ushort ProductId; + + [NativeTypeName("Uint16")] + public ushort Padding; + + [NativeTypeName("Uint32")] + public uint ButtonMask; + + [NativeTypeName("Uint32")] + public uint AxisMask; + + [NativeTypeName("const char *")] + public sbyte* Name; + public void* Userdata; + + [NativeTypeName("void (*)(void *)")] + public delegate* unmanaged Update; + + [NativeTypeName("void (*)(void *, int)")] + public delegate* unmanaged SetPlayerIndex; + + [NativeTypeName("int (*)(void *, Uint16, Uint16)")] + public delegate* unmanaged Rumble; + + [NativeTypeName("int (*)(void *, Uint16, Uint16)")] + public delegate* unmanaged RumbleTriggers; + + [NativeTypeName("int (*)(void *, Uint8, Uint8, Uint8)")] + public delegate* unmanaged SetLED; + + [NativeTypeName("int (*)(void *, const void *, int)")] + public delegate* unmanaged SendEffect; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_WindowEvent.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_WindowEvent.gen.cs new file mode 100644 index 0000000000..92d98d1258 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_WindowEvent.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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public partial struct WindowEvent +{ + public EventType Type; + + [NativeTypeName("Uint32")] + public uint Reserved; + + [NativeTypeName("Uint64")] + public ulong Timestamp; + + [NativeTypeName("SDL_WindowID")] + public uint WindowID; + + [NativeTypeName("Sint32")] + public int Data1; + + [NativeTypeName("Sint32")] + public int Data2; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_errorcode.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_errorcode.gen.cs new file mode 100644 index 0000000000..8f8c66873a --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_errorcode.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; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum Errorcode : uint +{ + Enomem, + Efread, + Efwrite, + Efseek, + Unsupported, + Lasterror, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_hid_bus_type.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_hid_bus_type.gen.cs new file mode 100644 index 0000000000..7ed8833316 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_hid_bus_type.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +[NativeTypeName("unsigned int")] +public enum HidBusType : uint +{ + Unknown = 0x00, + Usb = 0x01, + Bluetooth = 0x02, + I2C = 0x03, + Spi = 0x04, +} diff --git a/sources/SDL/SDL/SDL3/SDL3/SDL_hid_device_info.gen.cs b/sources/SDL/SDL/SDL3/SDL3/SDL_hid_device_info.gen.cs new file mode 100644 index 0000000000..399d447bb8 --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/SDL_hid_device_info.gen.cs @@ -0,0 +1,45 @@ +// 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 HidDeviceInfo +{ + [NativeTypeName("char *")] + public sbyte* Path; + + [NativeTypeName("unsigned short")] + public ushort VendorId; + + [NativeTypeName("unsigned short")] + public ushort ProductId; + + [NativeTypeName("wchar_t *")] + public uint* SerialNumber; + + [NativeTypeName("unsigned short")] + public ushort ReleaseNumber; + + [NativeTypeName("wchar_t *")] + public uint* ManufacturerString; + + [NativeTypeName("wchar_t *")] + public uint* ProductString; + + [NativeTypeName("unsigned short")] + public ushort UsagePage; + + [NativeTypeName("unsigned short")] + public ushort Usage; + public int InterfaceNumber; + public int InterfaceClass; + public int InterfaceSubclass; + public int InterfaceProtocol; + public HidBusType BusType; + + [NativeTypeName("struct SDL_hid_device_info *")] + public HidDeviceInfo* Next; +} diff --git a/sources/SDL/SDL/SDL3/SDL3/Sdl.gen.cs b/sources/SDL/SDL/SDL3/SDL3/Sdl.gen.cs new file mode 100644 index 0000000000..60c1f8f28f --- /dev/null +++ b/sources/SDL/SDL/SDL3/SDL3/Sdl.gen.cs @@ -0,0 +1,72934 @@ +// 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; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.Scancode; + +namespace Silk.NET.SDL; + +public unsafe partial class Sdl : ISdl, ISdl.Static +{ + public partial class DllImport : ISdl.Static + { + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* AcquireCameraFrame( + SDL_Camera* camera, + [NativeTypeName("Uint64 *")] ulong* timestampNS + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AcquireCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr AcquireCameraFrame( + Ref camera, + [NativeTypeName("Uint64 *")] Ref timestampNS + ) + { + fixed (ulong* __dsl_timestampNS = timestampNS) + fixed (SDL_Camera* __dsl_camera = camera) + { + return (Surface*)AcquireCameraFrame(__dsl_camera, __dsl_timestampNS); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (int)AddEventWatch(filter, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddGamepadMapping([NativeTypeName("const char *")] Ref mapping) + { + fixed (sbyte* __dsl_mapping = mapping) + { + return (int)AddGamepadMapping(__dsl_mapping); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int AddGamepadMappingsFromFile( + [NativeTypeName("const char *")] sbyte* file + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddGamepadMappingsFromFile( + [NativeTypeName("const char *")] Ref file + ) + { + fixed (sbyte* __dsl_file = file) + { + return (int)AddGamepadMappingsFromFile(__dsl_file); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int AddGamepadMappingsFromIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddGamepadMappingsFromIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (SDL_IOStream* __dsl_src = src) + { + return (int)AddGamepadMappingsFromIO(__dsl_src, (int)closeio); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int AddHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_name = name) + { + return (int)AddHintCallback(__dsl_name, callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_TimerID")] + public static extern uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + void* param2 + ); + + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + Ref param2 + ) + { + fixed (void* __dsl_param2 = param2) + { + return (uint)AddTimer(interval, callback, __dsl_param2); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int AddVulkanRenderSemaphores( + SDL_Renderer* renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddVulkanRenderSemaphores( + Ref renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)AddVulkanRenderSemaphores( + __dsl_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) => + (void*)AllocateEventMemoryRaw(size); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AllocateEventMemory")] + public static extern void* AllocateEventMemoryRaw([NativeTypeName("size_t")] nuint size); + + [DllImport("SDL3", ExactSpelling = true)] + 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)] + [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)] + [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)] + public static extern int AtomicGet(AtomicInt* a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AtomicGet(Ref a) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)AtomicGet(__dsl_a); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void* AtomicGetPtr(void** a); + + [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)] + 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)] + public static extern void* AtomicSetPtr(void** a, void* v); + + [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)] + [return: NativeTypeName("SDL_JoystickID")] + public static extern uint AttachVirtualJoystick( + JoystickType type, + int naxes, + int nbuttons, + int nhats + ); + + [DllImport("SDL3", ExactSpelling = true)] + [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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint AttachVirtualJoystickEx( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc + ) + { + fixed (VirtualJoystickDesc* __dsl_desc = desc) + { + return (uint)AttachVirtualJoystickEx(__dsl_desc); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + public static MaybeBool AudioDevicePaused( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ) => (MaybeBool)(int)AudioDevicePausedRaw(dev); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_AudioDevicePaused")] + [return: NativeTypeName("SDL_bool")] + public static extern int AudioDevicePausedRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream* stream + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref stream + ) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)BindAudioStream(devid, __dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream** streams, + int num_streams + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref2D streams, + int num_streams + ) + { + fixed (SDL_AudioStream** __dsl_streams = streams) + { + return (int)BindAudioStreams(devid, __dsl_streams, num_streams); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int BlitSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (int)BlitSurface(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int BlitSurfaceScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect, + ScaleMode scaleMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurfaceScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + 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)BlitSurfaceScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int BlitSurfaceUnchecked( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurfaceUnchecked( + 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 (int)BlitSurfaceUnchecked( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int BlitSurfaceUncheckedScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurfaceUncheckedScaled( + 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)BlitSurfaceUncheckedScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int BroadcastCondition(SDL_Condition* cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BroadcastCondition(Ref cond) + { + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)BroadcastCondition(__dsl_cond); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int CaptureMouse([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] + public static int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => + (int)CaptureMouse((int)enabled); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void CleanupTLS(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ClearAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ClearAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)ClearAudioStream(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ClearClipboardData(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void ClearComposition(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void ClearError(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)ClearProperty(props, __dsl_name); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void CloseAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void CloseCamera(SDL_Camera* camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseCamera")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseCamera(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + CloseCamera(__dsl_camera); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void CloseGamepad(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseGamepad(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + CloseGamepad(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void CloseHaptic(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseHaptic(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + CloseHaptic(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int CloseIO(SDL_IOStream* context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CloseIO(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (int)CloseIO(__dsl_context); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void CloseJoystick(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseJoystick(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + CloseJoystick(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void CloseSensor(SDL_Sensor* sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseSensor(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + CloseSensor(__dsl_sensor); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int CloseStorage(SDL_Storage* storage); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CloseStorage(Ref storage) + { + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)CloseStorage(__dsl_storage); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern BlendMode ComposeCustomBlendMode( + BlendFactor srcColorFactor, + BlendFactor dstColorFactor, + BlendOperation colorOperation, + BlendFactor srcAlphaFactor, + BlendFactor dstAlphaFactor, + BlendOperation alphaOperation + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const Uint8 *")] byte* src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec, + [NativeTypeName("Uint8 **")] byte** dst_data, + int* dst_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const Uint8 *")] Ref src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec, + [NativeTypeName("Uint8 **")] Ref2D dst_data, + Ref dst_len + ) + { + fixed (int* __dsl_dst_len = dst_len) + fixed (byte** __dsl_dst_data = dst_data) + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + 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 + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ConvertEventToRenderCoordinates( + SDL_Renderer* renderer, + Event* @event + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertEventToRenderCoordinates( + Ref renderer, + Ref @event + ) + { + fixed (Event* __dsl_event = @event) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)ConvertEventToRenderCoordinates(__dsl_renderer, __dsl_event); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + 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 + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + void* dst, + int dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + Ref dst, + 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 + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* ConvertSurface( + Surface* surface, + [NativeTypeName("const SDL_PixelFormat *")] 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 + ) + { + fixed (PixelFormat* __dsl_format = format) + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)ConvertSurface(__dsl_surface, __dsl_format); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* ConvertSurfaceFormat( + Surface* surface, + PixelFormatEnum pixel_format + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr ConvertSurfaceFormat( + Ref surface, + PixelFormatEnum pixel_format + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)ConvertSurfaceFormat(__dsl_surface, pixel_format); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* ConvertSurfaceFormatAndColorspace( + Surface* surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr ConvertSurfaceFormatAndColorspace( + Ref surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)ConvertSurfaceFormatAndColorspace( + __dsl_surface, + pixel_format, + colorspace, + props + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_AudioStream* CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ) + { + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + fixed (AudioSpec* __dsl_src_spec = src_spec) + { + return (SDL_AudioStream*)CreateAudioStream(__dsl_src_spec, __dsl_dst_spec); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Cursor* CreateColorCursor(Surface* surface, int hot_x, int hot_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateColorCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateColorCursor(Ref surface, int hot_x, int hot_y) + { + fixed (Surface* __dsl_surface = surface) + { + return (SDL_Cursor*)CreateColorCursor(__dsl_surface, hot_x, hot_y); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateCondition() => (SDL_Condition*)CreateConditionRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateCondition")] + public static extern SDL_Condition* CreateConditionRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Cursor* CreateCursor( + [NativeTypeName("const Uint8 *")] byte* data, + [NativeTypeName("const Uint8 *")] byte* mask, + int w, + int h, + int hot_x, + int hot_y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateCursor( + [NativeTypeName("const Uint8 *")] Ref data, + [NativeTypeName("const Uint8 *")] Ref mask, + int w, + int h, + int hot_x, + int hot_y + ) + { + fixed (byte* __dsl_mask = mask) + fixed (byte* __dsl_data = data) + { + return (SDL_Cursor*)CreateCursor(__dsl_data, __dsl_mask, w, h, hot_x, hot_y); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int CreateDirectory([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateDirectory([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (int)CreateDirectory(__dsl_path); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int CreateHapticEffect( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateHapticEffect( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) + { + fixed (HapticEffect* __dsl_effect = effect) + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)CreateHapticEffect(__dsl_haptic, __dsl_effect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateMutex() => (SDL_Mutex*)CreateMutexRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateMutex")] + public static extern SDL_Mutex* CreateMutexRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreatePalette(int ncolors) => + (Palette*)CreatePaletteRaw(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)] + public static extern SDL_Window* CreatePopupWindow( + SDL_Window* parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreatePopupWindow( + Ref parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) + { + fixed (SDL_Window* __dsl_parent = parent) + { + return (SDL_Window*)CreatePopupWindow( + __dsl_parent, + offset_x, + offset_y, + w, + h, + flags + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint CreateProperties(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Renderer* CreateRenderer( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Uint32")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateRenderer( + Ref window, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Uint32")] uint flags + ) + { + fixed (sbyte* __dsl_name = name) + fixed (SDL_Window* __dsl_window = window) + { + return (SDL_Renderer*)CreateRenderer(__dsl_window, __dsl_name, flags); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateRendererWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => (SDL_Renderer*)CreateRendererWithPropertiesRaw(props); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateRendererWithProperties")] + public static extern SDL_Renderer* CreateRendererWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateRWLock() => (SDL_RWLock*)CreateRWLockRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateRWLock")] + public static extern SDL_RWLock* CreateRWLockRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSemaphore( + [NativeTypeName("Uint32")] uint initial_value + ) => (SDL_Semaphore*)CreateSemaphoreRaw(initial_value); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateSemaphore")] + public static extern SDL_Semaphore* CreateSemaphoreRaw( + [NativeTypeName("Uint32")] uint initial_value + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Renderer* CreateSoftwareRenderer(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSoftwareRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSoftwareRenderer(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (SDL_Renderer*)CreateSoftwareRenderer(__dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int CreateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)CreateStorageDirectory(__dsl_storage, __dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSurface(int width, int height, PixelFormatEnum format) => + (Surface*)CreateSurfaceRaw(width, height, format); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* CreateSurfaceFrom( + void* pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSurfaceFrom( + Ref pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ) + { + fixed (void* __dsl_pixels = pixels) + { + return (Surface*)CreateSurfaceFrom(__dsl_pixels, width, height, pitch, format); + } + } + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateSurface")] + public static extern Surface* CreateSurfaceRaw( + int width, + int height, + PixelFormatEnum format + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSystemCursor(SystemCursor id) => + (SDL_Cursor*)CreateSystemCursorRaw(id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateSystemCursor")] + public static extern SDL_Cursor* CreateSystemCursorRaw(SystemCursor id); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Texture* CreateTexture( + SDL_Renderer* renderer, + PixelFormatEnum format, + int access, + int w, + int h + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateTexture( + Ref renderer, + PixelFormatEnum format, + int access, + int w, + int h + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)CreateTexture(__dsl_renderer, format, access, w, h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Texture* CreateTextureFromSurface( + SDL_Renderer* renderer, + Surface* surface + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateTextureFromSurface( + Ref renderer, + Ref surface + ) + { + fixed (Surface* __dsl_surface = surface) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)CreateTextureFromSurface(__dsl_renderer, __dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Texture* CreateTextureWithProperties( + SDL_Renderer* renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateTextureWithProperties( + Ref renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)CreateTextureWithProperties(__dsl_renderer, props); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Thread* CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + void* data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + Ref data + ) + { + fixed (void* __dsl_data = data) + fixed (sbyte* __dsl_name = name) + { + return (SDL_Thread*)CreateThread(fn, __dsl_name, __dsl_data); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Thread* CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const size_t")] nuint stacksize, + void* data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const size_t")] nuint stacksize, + Ref data + ) + { + fixed (void* __dsl_data = data) + fixed (sbyte* __dsl_name = name) + { + return (SDL_Thread*)CreateThreadWithStackSize( + fn, + __dsl_name, + stacksize, + __dsl_data + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_TLSID")] + public static extern uint CreateTLS(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Window* CreateWindow( + [NativeTypeName("const char *")] sbyte* title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateWindow( + [NativeTypeName("const char *")] Ref title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) + { + fixed (sbyte* __dsl_title = title) + { + return (SDL_Window*)CreateWindow(__dsl_title, w, h, flags); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int CreateWindowAndRenderer( + [NativeTypeName("const char *")] sbyte* title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + SDL_Window** window, + SDL_Renderer** renderer + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateWindowAndRenderer( + [NativeTypeName("const char *")] Ref title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + Ref2D window, + Ref2D renderer + ) + { + fixed (SDL_Renderer** __dsl_renderer = renderer) + fixed (SDL_Window** __dsl_window = window) + fixed (sbyte* __dsl_title = title) + { + return (int)CreateWindowAndRenderer( + __dsl_title, + width, + height, + window_flags, + __dsl_window, + __dsl_renderer + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateWindowWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => (SDL_Window*)CreateWindowWithPropertiesRaw(props); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CreateWindowWithProperties")] + public static extern SDL_Window* CreateWindowWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + public static MaybeBool CursorVisible() => (MaybeBool)(int)CursorVisibleRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_CursorVisible")] + [return: NativeTypeName("SDL_bool")] + public static extern int CursorVisibleRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] DateTime* dt, + [NativeTypeName("SDL_Time *")] long* ticks + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] Ref dt, + [NativeTypeName("SDL_Time *")] Ref ticks + ) + { + fixed (long* __dsl_ticks = ticks) + fixed (DateTime* __dsl_dt = dt) + { + return (int)DateTimeToTime(__dsl_dt, __dsl_ticks); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void Delay([NativeTypeName("Uint32")] uint ms); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DelayNS([NativeTypeName("Uint64")] ulong ns); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + DelEventWatch(filter, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DelHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged 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")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_name = name) + { + DelHintCallback(__dsl_name, callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + DestroyAudioStream(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyCondition(SDL_Condition* cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyCondition(Ref cond) + { + fixed (SDL_Condition* __dsl_cond = cond) + { + DestroyCondition(__dsl_cond); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyCursor(SDL_Cursor* cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyCursor(Ref cursor) + { + fixed (SDL_Cursor* __dsl_cursor = cursor) + { + DestroyCursor(__dsl_cursor); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyHapticEffect(SDL_Haptic* haptic, int effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyHapticEffect(Ref haptic, int effect) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + DestroyHapticEffect(__dsl_haptic, effect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + DestroyMutex(__dsl_mutex); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyPalette(Palette* palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyPalette(Ref palette) + { + fixed (Palette* __dsl_palette = palette) + { + DestroyPalette(__dsl_palette); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + 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)] + public static extern void DestroyProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyRenderer(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyRenderer(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + DestroyRenderer(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyRWLock(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyRWLock(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + DestroyRWLock(__dsl_rwlock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroySemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroySemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + DestroySemaphore(__dsl_sem); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroySurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroySurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + DestroySurface(__dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyTexture(SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyTexture(Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + DestroyTexture(__dsl_texture); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DestroyWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + DestroyWindow(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int DestroyWindowSurface(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int DestroyWindowSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)DestroyWindowSurface(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void DetachThread(SDL_Thread* thread); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DetachThread(Ref thread) + { + fixed (SDL_Thread* __dsl_thread = thread) + { + DetachThread(__dsl_thread); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int DetachVirtualJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int DisableScreenSaver(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* DuplicateSurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr DuplicateSurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)DuplicateSurface(__dsl_surface); + } + } + + [return: NativeTypeName("SDL_EGLConfig")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr EGLGetCurrentEGLConfig() => (void*)EGLGetCurrentEGLConfigRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [return: NativeTypeName("SDL_EGLConfig")] + public static extern void* EGLGetCurrentEGLConfigRaw(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr EGLGetCurrentEGLDisplay() => (void*)EGLGetCurrentEGLDisplayRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [return: NativeTypeName("SDL_EGLDisplay")] + public static extern void* EGLGetCurrentEGLDisplayRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_FunctionPointer")] + public static extern delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) + { + fixed (sbyte* __dsl_proc = proc) + { + return (delegate* unmanaged)EGLGetProcAddress(__dsl_proc); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_EGLSurface")] + public static extern void* EGLGetWindowEGLSurface(SDL_Window* window); + + [return: NativeTypeName("SDL_EGLSurface")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr EGLGetWindowEGLSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (void*)EGLGetWindowEGLSurface(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void EGLSetEGLAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + delegate* unmanaged platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] + delegate* unmanaged surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] + delegate* unmanaged contextAttribCallback + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int EnableScreenSaver(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int EnumerateDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnumerateDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_path = path) + { + return (int)EnumerateDirectory(__dsl_path, callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (int)EnumerateProperties(props, callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int EnumerateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnumerateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)EnumerateStorageDirectory( + __dsl_storage, + __dsl_path, + callback, + __dsl_userdata + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int Error(Errorcode code); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => + (MaybeBool)(int)EventEnabledRaw(type); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_EventEnabled")] + [return: NativeTypeName("SDL_bool")] + public static extern int EventEnabledRaw([NativeTypeName("Uint32")] uint type); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int FillSurfaceRect( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("Uint32")] uint color + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FillSurfaceRect( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("Uint32")] uint color + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (Surface* __dsl_dst = dst) + { + return (int)FillSurfaceRect(__dsl_dst, __dsl_rect, color); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int FillSurfaceRects( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int count, + [NativeTypeName("Uint32")] uint color + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FillSurfaceRects( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int count, + [NativeTypeName("Uint32")] uint color + ) + { + fixed (Rect* __dsl_rects = rects) + fixed (Surface* __dsl_dst = dst) + { + return (int)FillSurfaceRects(__dsl_dst, __dsl_rects, count, color); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FilterEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + FilterEvents(filter, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int FlashWindow(SDL_Window* window, FlashOperation operation); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlashWindow(Ref window, FlashOperation operation) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)FlashWindow(__dsl_window, operation); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int FlipSurface(Surface* surface, FlipMode flip); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlipSurface(Ref surface, FlipMode flip) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)FlipSurface(__dsl_surface, flip); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int FlushAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlushAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)FlushAudioStream(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void FlushEvent([NativeTypeName("Uint32")] uint type); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void FlushEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int FlushRenderer(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlushRenderer(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)FlushRenderer(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GamepadConnected(SDL_Gamepad* gamepad); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadConnected(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadConnected(__dsl_gamepad); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + public static MaybeBool GamepadEventsEnabled() => + (MaybeBool)(int)GamepadEventsEnabledRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GamepadEventsEnabled")] + [return: NativeTypeName("SDL_bool")] + public static extern int GamepadEventsEnabledRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GamepadHasAxis(SDL_Gamepad* gamepad, GamepadAxis axis); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadHasAxis(Ref gamepad, GamepadAxis axis) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadHasAxis(__dsl_gamepad, axis); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GamepadHasButton(SDL_Gamepad* gamepad, GamepadButton button); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadHasButton( + Ref gamepad, + GamepadButton button + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadHasButton(__dsl_gamepad, button); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GamepadHasSensor(SDL_Gamepad* gamepad, SensorType type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadHasSensor(Ref gamepad, SensorType type) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadHasSensor(__dsl_gamepad, type); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GamepadSensorEnabled(SDL_Gamepad* gamepad, SensorType type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadSensorEnabled(Ref gamepad, SensorType type) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadSensorEnabled(__dsl_gamepad, type); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_AssertionHandler")] + public static extern delegate* unmanaged< + AssertData*, + void*, + AssertState> GetAssertionHandler(void** puserdata); + + [return: NativeTypeName("SDL_AssertionHandler")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged GetAssertionHandler( + Ref2D puserdata + ) + { + fixed (void** __dsl_puserdata = puserdata) + { + return (delegate* unmanaged)GetAssertionHandler( + __dsl_puserdata + ); + } + } + + [return: NativeTypeName("const SDL_AssertData *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAssertionReport() => (AssertData*)GetAssertionReportRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAssertionReport")] + [return: NativeTypeName("const SDL_AssertData *")] + public static extern AssertData* GetAssertionReportRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_AudioDeviceID *")] + public static extern uint* GetAudioCaptureDevices(int* count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioCaptureDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetAudioCaptureDevices(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioSpec* spec, + int* sample_frames + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref spec, + 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: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioDeviceName( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => (sbyte*)GetAudioDeviceNameRaw(devid); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioDeviceName")] + [return: NativeTypeName("char *")] + public static extern sbyte* GetAudioDeviceNameRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioDriver(int index) => (sbyte*)GetAudioDriverRaw(index); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetAudioDriver")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetAudioDriverRaw(int index); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_AudioDeviceID *")] + public static extern uint* GetAudioOutputDevices(int* count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioOutputDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetAudioOutputDevices(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetAudioStreamAvailable(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamAvailable(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)GetAudioStreamAvailable(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetAudioStreamData(SDL_AudioStream* stream, void* buf, int len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamData(Ref stream, Ref buf, int len) + { + fixed (void* __dsl_buf = buf) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)GetAudioStreamData(__dsl_stream, __dsl_buf, len); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_AudioDeviceID")] + public static extern uint GetAudioStreamDevice(SDL_AudioStream* stream); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetAudioStreamDevice(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (uint)GetAudioStreamDevice(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetAudioStreamFormat( + SDL_AudioStream* stream, + AudioSpec* src_spec, + AudioSpec* dst_spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamFormat( + Ref stream, + Ref src_spec, + Ref dst_spec + ) + { + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + fixed (AudioSpec* __dsl_src_spec = src_spec) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)GetAudioStreamFormat(__dsl_stream, __dsl_src_spec, __dsl_dst_spec); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern float GetAudioStreamFrequencyRatio(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetAudioStreamFrequencyRatio(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (float)GetAudioStreamFrequencyRatio(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetAudioStreamProperties(SDL_AudioStream* stream); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetAudioStreamProperties(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (uint)GetAudioStreamProperties(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetAudioStreamQueued(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamQueued")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamQueued(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)GetAudioStreamQueued(__dsl_stream); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetBasePath() => (sbyte*)GetBasePathRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetBasePath")] + [return: NativeTypeName("char *")] + public static extern sbyte* GetBasePathRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool) + (int)GetBooleanProperty(props, __dsl_name, (int)default_value); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] + [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 + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern CameraPosition GetCameraDevicePosition( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_CameraDeviceID *")] + public static extern uint* GetCameraDevices(int* count); + + [return: NativeTypeName("SDL_CameraDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCameraDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetCameraDevices(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern CameraSpec* GetCameraDeviceSupportedFormats( + [NativeTypeName("SDL_CameraDeviceID")] uint devid, + int* count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] + [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); + } + } + + [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)] + public static extern int GetCameraFormat(SDL_Camera* camera, CameraSpec* spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCameraFormat(Ref camera, Ref spec) + { + fixed (CameraSpec* __dsl_spec = spec) + fixed (SDL_Camera* __dsl_camera = camera) + { + return (int)GetCameraFormat(__dsl_camera, __dsl_spec); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_CameraDeviceID")] + public static extern uint GetCameraInstanceID(SDL_Camera* camera); + + [return: NativeTypeName("SDL_CameraDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetCameraInstanceID(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + return (uint)GetCameraInstanceID(__dsl_camera); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetCameraPermissionState(SDL_Camera* camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCameraPermissionState(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + return (int)GetCameraPermissionState(__dsl_camera); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetCameraProperties(SDL_Camera* camera); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetCameraProperties(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + return (uint)GetCameraProperties(__dsl_camera); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void* GetClipboardData( + [NativeTypeName("const char *")] sbyte* mime_type, + [NativeTypeName("size_t *")] nuint* size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetClipboardData( + [NativeTypeName("const char *")] Ref mime_type, + [NativeTypeName("size_t *")] Ref size + ) + { + fixed (nuint* __dsl_size = size) + fixed (sbyte* __dsl_mime_type = mime_type) + { + return (void*)GetClipboardData(__dsl_mime_type, __dsl_size); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetClipboardText() => (sbyte*)GetClipboardTextRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetClipboardText")] + [return: NativeTypeName("char *")] + public static extern sbyte* GetClipboardTextRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const SDL_DisplayMode *")] + public static extern DisplayMode* GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] int include_high_density_modes + ); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr 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 + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetCPUCacheLineSize(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetCPUCount(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentAudioDriver() => (sbyte*)GetCurrentAudioDriverRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCurrentAudioDriver")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetCurrentAudioDriverRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentCameraDriver() => (sbyte*)GetCurrentCameraDriverRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCurrentCameraDriver")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetCurrentCameraDriverRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => (DisplayMode*)GetCurrentDisplayModeRaw(displayID); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCurrentDisplayMode")] + [return: NativeTypeName("const SDL_DisplayMode *")] + public static extern DisplayMode* GetCurrentDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern DisplayOrientation GetCurrentDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetCurrentRenderOutputSize(SDL_Renderer* renderer, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCurrentRenderOutputSize( + Ref renderer, + Ref w, + Ref h + ) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetCurrentRenderOutputSize(__dsl_renderer, __dsl_w, __dsl_h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_ThreadID")] + public static extern ulong GetCurrentThreadID(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) + { + fixed (long* __dsl_ticks = ticks) + { + return (int)GetCurrentTime(__dsl_ticks); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentVideoDriver() => (sbyte*)GetCurrentVideoDriverRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCurrentVideoDriver")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetCurrentVideoDriverRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCursor() => (SDL_Cursor*)GetCursorRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetCursor")] + public static extern SDL_Cursor* GetCursorRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetDayOfWeek(int year, int month, int day); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetDayOfYear(int year, int month, int day); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetDaysInMonth(int year, int month); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_AssertionHandler")] + public static extern delegate* unmanaged< + AssertData*, + void*, + AssertState> GetDefaultAssertionHandler(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetDefaultCursor() => (SDL_Cursor*)GetDefaultCursorRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDefaultCursor")] + public static extern SDL_Cursor* GetDefaultCursorRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetDesktopDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => (DisplayMode*)GetDesktopDisplayModeRaw(displayID); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDesktopDisplayMode")] + [return: NativeTypeName("const SDL_DisplayMode *")] + public static extern DisplayMode* GetDesktopDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + { + return (int)GetDisplayBounds(displayID, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern float GetDisplayContentScale( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_DisplayID")] + public static extern uint GetDisplayForPoint( + [NativeTypeName("const SDL_Point *")] Point* point + ); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayForPoint( + [NativeTypeName("const SDL_Point *")] Ref point + ) + { + fixed (Point* __dsl_point = point) + { + return (uint)GetDisplayForPoint(__dsl_point); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_DisplayID")] + public static extern uint GetDisplayForRect( + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (uint)GetDisplayForRect(__dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_DisplayID")] + public static extern uint GetDisplayForWindow(SDL_Window* window); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayForWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetDisplayForWindow(__dsl_window); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint displayID) => + (sbyte*)GetDisplayNameRaw(displayID); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetDisplayName")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetDisplayNameRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetDisplayProperties( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_DisplayID *")] + public static extern uint* GetDisplays(int* count); + + [return: NativeTypeName("SDL_DisplayID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplays")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetDisplays(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetDisplays(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + { + return (int)GetDisplayUsableBounds(displayID, __dsl_rect); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetError() => (sbyte*)GetErrorRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetError")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetErrorRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + void** userdata + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + Ref2D userdata + ) + { + fixed (void** __dsl_userdata = userdata) + { + return (MaybeBool)(int)GetEventFilter(filter, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float default_value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (float)GetFloatProperty(props, __dsl_name, default_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [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( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (DisplayMode**)GetFullscreenDisplayModes(displayID, __dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadAppleSFSymbolsNameForAxis( + SDL_Gamepad* gamepad, + GamepadAxis axis + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadAppleSFSymbolsNameForAxis( + Ref gamepad, + GamepadAxis axis + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadAppleSFSymbolsNameForAxis(__dsl_gamepad, axis); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadAppleSFSymbolsNameForButton( + SDL_Gamepad* gamepad, + GamepadButton button + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadAppleSFSymbolsNameForButton( + Ref gamepad, + GamepadButton button + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadAppleSFSymbolsNameForButton(__dsl_gamepad, button); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Sint16")] + public static extern short GetGamepadAxis(SDL_Gamepad* gamepad, GamepadAxis axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static short GetGamepadAxis(Ref gamepad, GamepadAxis axis) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (short)GetGamepadAxis(__dsl_gamepad, axis); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadAxis GetGamepadAxisFromString( + [NativeTypeName("const char *")] sbyte* str + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxisFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadAxis GetGamepadAxisFromString( + [NativeTypeName("const char *")] Ref str + ) + { + fixed (sbyte* __dsl_str = str) + { + return (GamepadAxis)GetGamepadAxisFromString(__dsl_str); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadBinding** GetGamepadBindings(SDL_Gamepad* gamepad, int* count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadBindings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetGamepadBindings( + Ref gamepad, + Ref count + ) + { + fixed (int* __dsl_count = count) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadBinding**)GetGamepadBindings(__dsl_gamepad, __dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint8")] + public static extern byte GetGamepadButton(SDL_Gamepad* gamepad, GamepadButton button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetGamepadButton(Ref gamepad, GamepadButton button) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (byte)GetGamepadButton(__dsl_gamepad, button); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] sbyte* str + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] Ref str + ) + { + fixed (sbyte* __dsl_str = str) + { + return (GamepadButton)GetGamepadButtonFromString(__dsl_str); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadButtonLabel GetGamepadButtonLabel( + SDL_Gamepad* gamepad, + GamepadButton button + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonLabel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadButtonLabel GetGamepadButtonLabel( + Ref gamepad, + GamepadButton button + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadButtonLabel)GetGamepadButtonLabel(__dsl_gamepad, button); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadButtonLabel GetGamepadButtonLabelForType( + GamepadType type, + GamepadButton button + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern JoystickConnectionState GetGamepadConnectionState( + SDL_Gamepad* gamepad + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickConnectionState GetGamepadConnectionState(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (JoystickConnectionState)GetGamepadConnectionState(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadFirmwareVersion(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadFirmwareVersion(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)GetGamepadFirmwareVersion(__dsl_gamepad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (SDL_Gamepad*)GetGamepadFromInstanceIDRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadFromInstanceID")] + public static extern SDL_Gamepad* GetGamepadFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadFromPlayerIndex(int player_index) => + (SDL_Gamepad*)GetGamepadFromPlayerIndexRaw(player_index); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + public static extern SDL_Gamepad* GetGamepadFromPlayerIndexRaw(int player_index); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_JoystickGUID")] + public static extern Guid GetGamepadInstanceGuid( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_JoystickID")] + public static extern uint GetGamepadInstanceID(SDL_Gamepad* gamepad); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGamepadInstanceID(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (uint)GetGamepadInstanceID(__dsl_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)] + public static extern int GetGamepadInstancePlayerIndex( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadInstanceProduct( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadInstanceProductVersion( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadType GetGamepadInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadInstanceVendor( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Joystick* GetGamepadJoystick(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadJoystick(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (SDL_Joystick*)GetGamepadJoystick(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("char *")] + public static extern sbyte* GetGamepadMapping(SDL_Gamepad* gamepad); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadMapping(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadMapping(__dsl_gamepad); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadMappingForGuid( + [NativeTypeName("SDL_JoystickGUID")] 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 + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("char **")] + public static extern sbyte** GetGamepadMappings(int* count); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetGamepadMappings(Ref count) + { + fixed (int* __dsl_count = count) + { + return (sbyte**)GetGamepadMappings(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadName(SDL_Gamepad* gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadName(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadName(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadPath(SDL_Gamepad* gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadPath(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadPath(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetGamepadPlayerIndex(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadPlayerIndex(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetGamepadPlayerIndex(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern PowerState GetGamepadPowerInfo(SDL_Gamepad* gamepad, int* percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PowerState GetGamepadPowerInfo(Ref gamepad, Ref percent) + { + fixed (int* __dsl_percent = percent) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (PowerState)GetGamepadPowerInfo(__dsl_gamepad, __dsl_percent); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadProduct(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadProduct(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)GetGamepadProduct(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadProductVersion(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadProductVersion(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)GetGamepadProductVersion(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetGamepadProperties(SDL_Gamepad* gamepad); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGamepadProperties(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (uint)GetGamepadProperties(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_JoystickID *")] + public static extern uint* GetGamepads(int* count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepads(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetGamepads(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetGamepadSensorData( + SDL_Gamepad* gamepad, + SensorType type, + float* data, + int num_values + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadSensorData( + Ref gamepad, + SensorType type, + Ref data, + int num_values + ) + { + fixed (float* __dsl_data = data) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetGamepadSensorData(__dsl_gamepad, type, __dsl_data, num_values); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern float GetGamepadSensorDataRate(SDL_Gamepad* gamepad, SensorType type); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorDataRate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetGamepadSensorDataRate(Ref gamepad, SensorType type) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (float)GetGamepadSensorDataRate(__dsl_gamepad, type); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadSerial(SDL_Gamepad* gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadSerial(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadSerial(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint64")] + public static extern ulong GetGamepadSteamHandle(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSteamHandle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetGamepadSteamHandle(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ulong)GetGamepadSteamHandle(__dsl_gamepad); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadStringForAxis(GamepadAxis axis) => + (sbyte*)GetGamepadStringForAxisRaw(axis); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadStringForAxis")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadStringForAxisRaw(GamepadAxis axis); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadStringForButton(GamepadButton button) => + (sbyte*)GetGamepadStringForButtonRaw(button); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadStringForButton")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadStringForButtonRaw(GamepadButton button); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadStringForType(GamepadType type) => + (sbyte*)GetGamepadStringForTypeRaw(type); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGamepadStringForType")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetGamepadStringForTypeRaw(GamepadType type); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetGamepadTouchpadFinger( + SDL_Gamepad* gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] byte* state, + float* x, + float* y, + float* pressure + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadTouchpadFinger( + Ref gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] Ref state, + Ref x, + Ref y, + Ref pressure + ) + { + fixed (float* __dsl_pressure = pressure) + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + fixed (byte* __dsl_state = state) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetGamepadTouchpadFinger( + __dsl_gamepad, + touchpad, + finger, + __dsl_state, + __dsl_x, + __dsl_y, + __dsl_pressure + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadType GetGamepadType(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetGamepadType(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadType)GetGamepadType(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadType GetGamepadTypeFromString( + [NativeTypeName("const char *")] sbyte* str + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetGamepadTypeFromString( + [NativeTypeName("const char *")] Ref str + ) + { + fixed (sbyte* __dsl_str = str) + { + return (GamepadType)GetGamepadTypeFromString(__dsl_str); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetGamepadVendor(SDL_Gamepad* gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadVendor(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)GetGamepadVendor(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint GetGlobalMouseState(float* x, float* y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGlobalMouseState(Ref x, Ref y) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + { + return (uint)GetGlobalMouseState(__dsl_x, __dsl_y); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetGlobalProperties(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGrabbedWindow() => (SDL_Window*)GetGrabbedWindowRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetGrabbedWindow")] + public static extern SDL_Window* GetGrabbedWindowRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetHapticEffectStatus(SDL_Haptic* haptic, int effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetHapticEffectStatus(Ref haptic, int effect) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)GetHapticEffectStatus(__dsl_haptic, effect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint GetHapticFeatures(SDL_Haptic* haptic); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetHapticFeatures(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (uint)GetHapticFeatures(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetHapticFromInstanceID( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => (SDL_Haptic*)GetHapticFromInstanceIDRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetHapticFromInstanceID")] + public static extern SDL_Haptic* GetHapticFromInstanceIDRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_HapticID")] + public static extern uint GetHapticInstanceID(SDL_Haptic* haptic); + + [return: NativeTypeName("SDL_HapticID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetHapticInstanceID(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (uint)GetHapticInstanceID(__dsl_haptic); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [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 + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetHapticName(SDL_Haptic* haptic); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetHapticName(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (sbyte*)GetHapticName(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_HapticID *")] + public static extern uint* GetHaptics(int* count); + + [return: NativeTypeName("SDL_HapticID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHaptics")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetHaptics(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetHaptics(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetHint([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetHint([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (sbyte*)GetHint(__dsl_name); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetHintBoolean( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetHintBoolean( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)GetHintBoolean(__dsl_name, (int)default_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetIOProperties(SDL_IOStream* context); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetIOProperties(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (uint)GetIOProperties(__dsl_context); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Sint64")] + public static extern long GetIOSize(SDL_IOStream* context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long GetIOSize(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (long)GetIOSize(__dsl_context); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern IOStatus GetIOStatus(SDL_IOStream* context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static IOStatus GetIOStatus(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (IOStatus)GetIOStatus(__dsl_context); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Sint16")] + public static extern short GetJoystickAxis(SDL_Joystick* joystick, int axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static short GetJoystickAxis(Ref joystick, int axis) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (short)GetJoystickAxis(__dsl_joystick, axis); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetJoystickAxisInitialState( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16 *")] short* state + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetJoystickAxisInitialState( + Ref joystick, + int axis, + [NativeTypeName("Sint16 *")] Ref state + ) + { + fixed (short* __dsl_state = state) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (MaybeBool) + (int)GetJoystickAxisInitialState(__dsl_joystick, axis, __dsl_state); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetJoystickBall( + SDL_Joystick* joystick, + int ball, + int* dx, + int* dy + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetJoystickBall( + Ref joystick, + int ball, + Ref dx, + Ref dy + ) + { + fixed (int* __dsl_dy = dy) + fixed (int* __dsl_dx = dx) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetJoystickBall(__dsl_joystick, ball, __dsl_dx, __dsl_dy); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint8")] + public static extern byte GetJoystickButton(SDL_Joystick* joystick, int button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetJoystickButton(Ref joystick, int button) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (byte)GetJoystickButton(__dsl_joystick, button); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern JoystickConnectionState GetJoystickConnectionState( + SDL_Joystick* joystick + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickConnectionState GetJoystickConnectionState(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (JoystickConnectionState)GetJoystickConnectionState(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickFirmwareVersion(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickFirmwareVersion(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)GetJoystickFirmwareVersion(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (SDL_Joystick*)GetJoystickFromInstanceIDRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickFromInstanceID")] + public static extern SDL_Joystick* GetJoystickFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickFromPlayerIndex(int player_index) => + (SDL_Joystick*)GetJoystickFromPlayerIndexRaw(player_index); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + public static extern SDL_Joystick* GetJoystickFromPlayerIndexRaw(int player_index); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_JoystickGUID")] + public static extern Guid GetJoystickGuid(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_JoystickGUID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Guid GetJoystickGuid(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (Guid)GetJoystickGuid(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_JoystickGUID")] + public static extern Guid GetJoystickGuidFromString( + [NativeTypeName("const char *")] sbyte* pchGUID + ); + + [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)] + public static extern void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] ushort* vendor, + [NativeTypeName("Uint16 *")] ushort* product, + [NativeTypeName("Uint16 *")] ushort* version, + [NativeTypeName("Uint16 *")] ushort* crc16 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] Ref vendor, + [NativeTypeName("Uint16 *")] Ref product, + [NativeTypeName("Uint16 *")] Ref version, + [NativeTypeName("Uint16 *")] Ref crc16 + ) + { + fixed (ushort* __dsl_crc16 = crc16) + fixed (ushort* __dsl_version = version) + fixed (ushort* __dsl_product = product) + fixed (ushort* __dsl_vendor = vendor) + { + GetJoystickGuidInfo(guid, __dsl_vendor, __dsl_product, __dsl_version, __dsl_crc16); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + 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)] + [return: NativeTypeName("Uint8")] + public static extern byte GetJoystickHat(SDL_Joystick* joystick, int hat); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetJoystickHat(Ref joystick, int hat) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (byte)GetJoystickHat(__dsl_joystick, hat); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_JoystickGUID")] + public static extern Guid GetJoystickInstanceGuid( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_JoystickID")] + public static extern uint GetJoystickInstanceID(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetJoystickInstanceID(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (uint)GetJoystickInstanceID(__dsl_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 + ) => (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 + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickInstancePath( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (sbyte*)GetJoystickInstancePathRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetJoystickInstancePath")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetJoystickInstancePathRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetJoystickInstancePlayerIndex( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickInstanceProduct( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickInstanceProductVersion( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern JoystickType GetJoystickInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickInstanceVendor( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetJoystickName(SDL_Joystick* joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickName(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (sbyte*)GetJoystickName(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetJoystickPath(SDL_Joystick* joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickPath(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (sbyte*)GetJoystickPath(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetJoystickPlayerIndex(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetJoystickPlayerIndex(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetJoystickPlayerIndex(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern PowerState GetJoystickPowerInfo(SDL_Joystick* joystick, int* percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PowerState GetJoystickPowerInfo(Ref joystick, Ref percent) + { + fixed (int* __dsl_percent = percent) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (PowerState)GetJoystickPowerInfo(__dsl_joystick, __dsl_percent); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickProduct(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickProduct(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)GetJoystickProduct(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickProductVersion(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickProductVersion(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)GetJoystickProductVersion(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetJoystickProperties(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetJoystickProperties(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (uint)GetJoystickProperties(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_JoystickID *")] + public static extern uint* GetJoysticks(int* count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoysticks(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetJoysticks(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetJoystickSerial(SDL_Joystick* joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickSerial(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (sbyte*)GetJoystickSerial(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern JoystickType GetJoystickType(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickType GetJoystickType(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (JoystickType)GetJoystickType(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint16")] + public static extern ushort GetJoystickVendor(SDL_Joystick* joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickVendor(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)GetJoystickVendor(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyboardFocus() => (SDL_Window*)GetKeyboardFocusRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetKeyboardFocus")] + public static extern SDL_Window* GetKeyboardFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyboardInstanceName( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ) => (sbyte*)GetKeyboardInstanceNameRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetKeyboardInstanceName")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetKeyboardInstanceNameRaw( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_KeyboardID *")] + public static extern uint* GetKeyboards(int* count); + + [return: NativeTypeName("SDL_KeyboardID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyboards(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetKeyboards(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const Uint8 *")] + public static extern byte* GetKeyboardState(int* numkeys); + + [return: NativeTypeName("const Uint8 *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyboardState(Ref numkeys) + { + fixed (int* __dsl_numkeys = numkeys) + { + return (byte*)GetKeyboardState(__dsl_numkeys); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_Keycode")] + public static extern int GetKeyFromName([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("SDL_Keycode")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetKeyFromName([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (int)GetKeyFromName(__dsl_name); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_Keycode")] + public static extern int GetKeyFromScancode(Scancode scancode); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int 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); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + void** userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + Ref2D userdata + ) + { + fixed (void** __dsl_userdata = userdata) + { + GetLogOutputFunction(callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetMasksForPixelFormatEnum( + PixelFormatEnum format, + int* bpp, + [NativeTypeName("Uint32 *")] uint* Rmask, + [NativeTypeName("Uint32 *")] uint* Gmask, + [NativeTypeName("Uint32 *")] uint* Bmask, + [NativeTypeName("Uint32 *")] uint* Amask + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetMasksForPixelFormatEnum( + PixelFormatEnum format, + Ref bpp, + [NativeTypeName("Uint32 *")] Ref Rmask, + [NativeTypeName("Uint32 *")] Ref Gmask, + [NativeTypeName("Uint32 *")] Ref Bmask, + [NativeTypeName("Uint32 *")] Ref Amask + ) + { + fixed (uint* __dsl_Amask = Amask) + fixed (uint* __dsl_Bmask = Bmask) + fixed (uint* __dsl_Gmask = Gmask) + fixed (uint* __dsl_Rmask = Rmask) + fixed (int* __dsl_bpp = bpp) + { + return (MaybeBool) + (int)GetMasksForPixelFormatEnum( + format, + __dsl_bpp, + __dsl_Rmask, + __dsl_Gmask, + __dsl_Bmask, + __dsl_Amask + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetMaxHapticEffects(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetMaxHapticEffects(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)GetMaxHapticEffects(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetMaxHapticEffectsPlaying(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffectsPlaying")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetMaxHapticEffectsPlaying(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)GetMaxHapticEffectsPlaying(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_MouseID *")] + public static extern uint* GetMice(int* count); + + [return: NativeTypeName("SDL_MouseID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetMice(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetMice(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Keymod GetModState(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetMouseFocus() => (SDL_Window*)GetMouseFocusRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetMouseFocus")] + public static extern SDL_Window* GetMouseFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetMouseInstanceName( + [NativeTypeName("SDL_MouseID")] uint instance_id + ) => (sbyte*)GetMouseInstanceNameRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetMouseInstanceName")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetMouseInstanceNameRaw( + [NativeTypeName("SDL_MouseID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint GetMouseState(float* x, float* y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetMouseState(Ref x, Ref y) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + { + return (uint)GetMouseState(__dsl_x, __dsl_y); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern DisplayOrientation GetNaturalDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumAudioDrivers(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Sint64")] + public static extern long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long default_value + ); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (long)GetNumberProperty(props, __dsl_name, default_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumCameraDrivers(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumGamepadTouchpadFingers(SDL_Gamepad* gamepad, int touchpad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpadFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumGamepadTouchpadFingers(Ref gamepad, int touchpad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetNumGamepadTouchpadFingers(__dsl_gamepad, touchpad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumGamepadTouchpads(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumGamepadTouchpads(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetNumGamepadTouchpads(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumHapticAxes(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumHapticAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumHapticAxes(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)GetNumHapticAxes(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumJoystickAxes(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickAxes(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetNumJoystickAxes(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumJoystickBalls(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickBalls")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickBalls(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetNumJoystickBalls(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumJoystickButtons(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickButtons")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickButtons(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetNumJoystickButtons(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumJoystickHats(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickHats")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickHats(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetNumJoystickHats(__dsl_joystick); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumRenderDrivers(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetNumVideoDrivers(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetPathInfo( + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetPathInfo( + [NativeTypeName("const char *")] Ref path, + Ref info + ) + { + fixed (PathInfo* __dsl_info = info) + fixed (sbyte* __dsl_path = path) + { + return (int)GetPathInfo(__dsl_path, __dsl_info); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [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)] + [return: NativeTypeName("SDL_PenID")] + public static extern uint GetPenFromGuid(Guid guid); + + [DllImport("SDL3", ExactSpelling = true)] + 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)] + [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)] + [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); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint64")] + public static extern ulong GetPerformanceCounter(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint64")] + public static extern ulong GetPerformanceFrequency(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern PixelFormatEnum GetPixelFormatEnumForMasks( + int bpp, + [NativeTypeName("Uint32")] uint Rmask, + [NativeTypeName("Uint32")] uint Gmask, + [NativeTypeName("Uint32")] uint Bmask, + [NativeTypeName("Uint32")] uint Amask + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPixelFormatName(PixelFormatEnum format) => + (sbyte*)GetPixelFormatNameRaw(format); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPixelFormatName")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetPixelFormatNameRaw(PixelFormatEnum format); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPlatform() => (sbyte*)GetPlatformRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPlatform")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetPlatformRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern PowerState GetPowerInfo(int* seconds, int* percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PowerState GetPowerInfo(Ref seconds, Ref percent) + { + fixed (int* __dsl_percent = percent) + fixed (int* __dsl_seconds = seconds) + { + return (PowerState)GetPowerInfo(__dsl_seconds, __dsl_percent); + } + } + + [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(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("char *")] + public static extern sbyte* GetPrefPath( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* 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 + ) + { + fixed (sbyte* __dsl_app = app) + fixed (sbyte* __dsl_org = org) + { + return (sbyte*)GetPrefPath(__dsl_org, __dsl_app); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_DisplayID")] + public static extern uint GetPrimaryDisplay(); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPrimarySelectionText() => (sbyte*)GetPrimarySelectionTextRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetPrimarySelectionText")] + [return: NativeTypeName("char *")] + public static extern sbyte* GetPrimarySelectionTextRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + 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)] + public static extern PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (PropertyType)GetPropertyType(props, __dsl_name); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadType GetRealGamepadInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern GamepadType GetRealGamepadType(SDL_Gamepad* gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetRealGamepadType(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadType)GetRealGamepadType(__dsl_gamepad); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int* X1, + int* Y1, + int* X2, + int* Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) + { + fixed (int* __dsl_Y2 = Y2) + fixed (int* __dsl_X2 = X2) + fixed (int* __dsl_Y1 = Y1) + fixed (int* __dsl_X1 = X1) + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool) + (int)GetRectAndLineIntersection( + __dsl_rect, + __dsl_X1, + __dsl_Y1, + __dsl_X2, + __dsl_Y2 + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* rect, + float* X1, + float* Y1, + float* X2, + float* Y2 + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) + { + fixed (float* __dsl_Y2 = Y2) + fixed (float* __dsl_X2 = X2) + fixed (float* __dsl_Y1 = Y1) + fixed (float* __dsl_X1 = X1) + fixed (FRect* __dsl_rect = rect) + { + return (MaybeBool) + (int)GetRectAndLineIntersectionFloat( + __dsl_rect, + __dsl_X1, + __dsl_Y1, + __dsl_X2, + __dsl_Y2 + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Point* points, + int count, + [NativeTypeName("const SDL_Rect *")] Rect* clip, + Rect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Ref points, + int count, + [NativeTypeName("const SDL_Rect *")] Ref clip, + Ref result + ) + { + fixed (Rect* __dsl_result = result) + fixed (Rect* __dsl_clip = clip) + fixed (Point* __dsl_points = points) + { + return (MaybeBool) + (int)GetRectEnclosingPoints(__dsl_points, count, __dsl_clip, __dsl_result); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count, + [NativeTypeName("const SDL_FRect *")] FRect* clip, + FRect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count, + [NativeTypeName("const SDL_FRect *")] Ref clip, + Ref result + ) + { + fixed (FRect* __dsl_result = result) + fixed (FRect* __dsl_clip = clip) + fixed (FPoint* __dsl_points = points) + { + return (MaybeBool) + (int)GetRectEnclosingPointsFloat(__dsl_points, count, __dsl_clip, __dsl_result); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectIntersection( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ) + { + fixed (Rect* __dsl_result = result) + fixed (Rect* __dsl_B = B) + fixed (Rect* __dsl_A = A) + { + return (MaybeBool)(int)GetRectIntersection(__dsl_A, __dsl_B, __dsl_result); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B, + Ref result + ) + { + fixed (FRect* __dsl_result = result) + fixed (FRect* __dsl_B = B) + fixed (FRect* __dsl_A = A) + { + return (MaybeBool) + (int)GetRectIntersectionFloat(__dsl_A, __dsl_B, __dsl_result); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ) + { + fixed (Rect* __dsl_result = result) + fixed (Rect* __dsl_B = B) + fixed (Rect* __dsl_A = A) + { + return (int)GetRectUnion(__dsl_A, __dsl_B, __dsl_result); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRectUnionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRectUnionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B, + Ref result + ) + { + fixed (FRect* __dsl_result = result) + fixed (FRect* __dsl_B = B) + fixed (FRect* __dsl_A = A) + { + return (int)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)] + [return: NativeTypeName("Uint32")] + public static extern uint GetRelativeMouseState(float* x, float* y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetRelativeMouseState(Ref x, Ref y) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + { + return (uint)GetRelativeMouseState(__dsl_x, __dsl_y); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderClipRect(SDL_Renderer* renderer, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderClipRect(Ref renderer, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderClipRect(__dsl_renderer, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderColorScale(SDL_Renderer* renderer, float* scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderColorScale(Ref renderer, Ref scale) + { + fixed (float* __dsl_scale = scale) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderColorScale(__dsl_renderer, __dsl_scale); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderDrawBlendMode( + SDL_Renderer* renderer, + BlendMode* blendMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderDrawBlendMode( + Ref renderer, + Ref blendMode + ) + { + fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderDrawBlendMode(__dsl_renderer, __dsl_blendMode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) + { + fixed (byte* __dsl_a = a) + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderDrawColor(__dsl_renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderDrawColorFloat( + SDL_Renderer* renderer, + float* r, + float* g, + float* b, + float* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderDrawColorFloat( + Ref renderer, + 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 (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderDrawColorFloat( + __dsl_renderer, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderDriver(int index) => (sbyte*)GetRenderDriverRaw(index); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRenderDriver")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetRenderDriverRaw(int index); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Renderer* GetRenderer(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderer(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (SDL_Renderer*)GetRenderer(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Renderer* GetRendererFromTexture(SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRendererFromTexture(Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (SDL_Renderer*)GetRendererFromTexture(__dsl_texture); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRendererInfo(SDL_Renderer* renderer, RendererInfo* info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRendererInfo(Ref renderer, Ref info) + { + fixed (RendererInfo* __dsl_info = info) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRendererInfo(__dsl_renderer, __dsl_info); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetRendererProperties(SDL_Renderer* renderer); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetRendererProperties(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (uint)GetRendererProperties(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderLogicalPresentation( + SDL_Renderer* renderer, + int* w, + int* h, + RendererLogicalPresentation* mode, + ScaleMode* scale_mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderLogicalPresentation( + Ref renderer, + Ref w, + Ref h, + Ref mode, + Ref scale_mode + ) + { + fixed (ScaleMode* __dsl_scale_mode = scale_mode) + fixed (RendererLogicalPresentation* __dsl_mode = mode) + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderLogicalPresentation( + __dsl_renderer, + __dsl_w, + __dsl_h, + __dsl_mode, + __dsl_scale_mode + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void* GetRenderMetalCommandEncoder(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalCommandEncoder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderMetalCommandEncoder(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (void*)GetRenderMetalCommandEncoder(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void* GetRenderMetalLayer(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderMetalLayer(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (void*)GetRenderMetalLayer(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderOutputSize(SDL_Renderer* renderer, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderOutputSize(Ref renderer, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderOutputSize(__dsl_renderer, __dsl_w, __dsl_h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderScale( + SDL_Renderer* renderer, + float* scaleX, + float* scaleY + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderScale( + Ref renderer, + Ref scaleX, + Ref scaleY + ) + { + fixed (float* __dsl_scaleY = scaleY) + fixed (float* __dsl_scaleX = scaleX) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderScale(__dsl_renderer, __dsl_scaleX, __dsl_scaleY); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Texture* GetRenderTarget(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderTarget(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)GetRenderTarget(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderViewport(SDL_Renderer* renderer, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderViewport(Ref renderer, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderViewport(__dsl_renderer, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetRenderVSync(SDL_Renderer* renderer, int* vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderVSync(Ref renderer, Ref vsync) + { + fixed (int* __dsl_vsync = vsync) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderVSync(__dsl_renderer, __dsl_vsync); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Window* GetRenderWindow(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderWindow(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Window*)GetRenderWindow(__dsl_renderer); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRevision() => (sbyte*)GetRevisionRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetRevision")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetRevisionRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) + { + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (PixelFormat* __dsl_format = format) + { + GetRGB(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) + { + fixed (byte* __dsl_a = a) + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (PixelFormat* __dsl_format = format) + { + GetRgba(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Scancode GetScancodeFromName( + [NativeTypeName("const char *")] sbyte* name + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Scancode GetScancodeFromName([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (Scancode)GetScancodeFromName(__dsl_name); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetScancodeName(Scancode scancode) => + (sbyte*)GetScancodeNameRaw(scancode); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetScancodeName")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetScancodeNameRaw(Scancode scancode); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint GetSemaphoreValue(SDL_Semaphore* sem); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSemaphoreValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSemaphoreValue(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (uint)GetSemaphoreValue(__dsl_sem); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSensorData(SDL_Sensor* sensor, float* data, int num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSensorData(Ref sensor, Ref data, int num_values) + { + fixed (float* __dsl_data = data) + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (int)GetSensorData(__dsl_sensor, __dsl_data, num_values); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSensorFromInstanceID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => (SDL_Sensor*)GetSensorFromInstanceIDRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetSensorFromInstanceID")] + public static extern SDL_Sensor* GetSensorFromInstanceIDRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_SensorID")] + public static extern uint GetSensorInstanceID(SDL_Sensor* sensor); + + [return: NativeTypeName("SDL_SensorID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSensorInstanceID(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (uint)GetSensorInstanceID(__dsl_sensor); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSensorInstanceName( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => (sbyte*)GetSensorInstanceNameRaw(instance_id); + + [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)] + public static extern int GetSensorInstanceNonPortableType( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SensorType GetSensorInstanceType( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetSensorName(SDL_Sensor* sensor); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSensorName(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (sbyte*)GetSensorName(__dsl_sensor); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSensorNonPortableType(SDL_Sensor* sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSensorNonPortableType(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (int)GetSensorNonPortableType(__dsl_sensor); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetSensorProperties(SDL_Sensor* sensor); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSensorProperties(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (uint)GetSensorProperties(__dsl_sensor); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_SensorID *")] + public static extern uint* GetSensors(int* count); + + [return: NativeTypeName("SDL_SensorID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSensors(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetSensors(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SensorType GetSensorType(SDL_Sensor* sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SensorType GetSensorType(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (SensorType)GetSensorType(__dsl_sensor); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSilenceValueForFormat( + [NativeTypeName("SDL_AudioFormat")] ushort format + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetStorageFileSize( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("Uint64 *")] ulong* length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetStorageFileSize( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("Uint64 *")] Ref length + ) + { + fixed (ulong* __dsl_length = length) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)GetStorageFileSize(__dsl_storage, __dsl_path, __dsl_length); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetStoragePathInfo( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetStoragePathInfo( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref info + ) + { + fixed (PathInfo* __dsl_info = info) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)GetStoragePathInfo(__dsl_storage, __dsl_path, __dsl_info); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint64")] + public static extern ulong GetStorageSpaceRemaining(SDL_Storage* storage); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageSpaceRemaining")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetStorageSpaceRemaining(Ref storage) + { + fixed (SDL_Storage* __dsl_storage = storage) + { + return (ulong)GetStorageSpaceRemaining(__dsl_storage); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* default_value + ); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref default_value + ) + { + fixed (sbyte* __dsl_default_value = default_value) + fixed (sbyte* __dsl_name = name) + { + return (sbyte*)GetStringProperty(props, __dsl_name, __dsl_default_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSurfaceAlphaMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* alpha + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref alpha + ) + { + fixed (byte* __dsl_alpha = alpha) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceAlphaMod(__dsl_surface, __dsl_alpha); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceBlendMode(Ref surface, Ref blendMode) + { + fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceBlendMode(__dsl_surface, __dsl_blendMode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSurfaceClipRect(Surface* surface, Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceClipRect(Ref surface, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceClipRect(__dsl_surface, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSurfaceColorKey( + Surface* surface, + [NativeTypeName("Uint32 *")] uint* key + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceColorKey( + Ref surface, + [NativeTypeName("Uint32 *")] Ref key + ) + { + fixed (uint* __dsl_key = key) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceColorKey(__dsl_surface, __dsl_key); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) + { + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceColorMod(__dsl_surface, __dsl_r, __dsl_g, __dsl_b); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceColorspace(Ref surface, Ref colorspace) + { + fixed (Colorspace* __dsl_colorspace = colorspace) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceColorspace(__dsl_surface, __dsl_colorspace); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetSurfaceProperties(Surface* surface); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSurfaceProperties(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (uint)GetSurfaceProperties(__dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetSystemRAM(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SystemTheme GetSystemTheme(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetTextureAlphaMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* alpha + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref alpha + ) + { + fixed (byte* __dsl_alpha = alpha) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureAlphaMod(__dsl_texture, __dsl_alpha); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetTextureAlphaModFloat(SDL_Texture* texture, float* alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureAlphaModFloat(Ref texture, Ref alpha) + { + fixed (float* __dsl_alpha = alpha) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureAlphaModFloat(__dsl_texture, __dsl_alpha); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetTextureBlendMode(SDL_Texture* texture, BlendMode* blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureBlendMode(Ref texture, Ref blendMode) + { + fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureBlendMode(__dsl_texture, __dsl_blendMode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) + { + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureColorMod(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetTextureColorModFloat( + SDL_Texture* texture, + float* r, + float* g, + float* b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureColorModFloat( + Ref texture, + Ref r, + Ref g, + Ref b + ) + { + fixed (float* __dsl_b = b) + fixed (float* __dsl_g = g) + fixed (float* __dsl_r = r) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureColorModFloat(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetTextureProperties(SDL_Texture* texture); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetTextureProperties(Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (uint)GetTextureProperties(__dsl_texture); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetTextureScaleMode(SDL_Texture* texture, ScaleMode* scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureScaleMode(Ref texture, Ref scaleMode) + { + fixed (ScaleMode* __dsl_scaleMode = scaleMode) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureScaleMode(__dsl_texture, __dsl_scaleMode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_ThreadID")] + public static extern ulong GetThreadID(SDL_Thread* thread); + + [return: NativeTypeName("SDL_ThreadID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetThreadID(Ref thread) + { + fixed (SDL_Thread* __dsl_thread = thread) + { + return (ulong)GetThreadID(__dsl_thread); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetThreadName(SDL_Thread* thread); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetThreadName(Ref thread) + { + fixed (SDL_Thread* __dsl_thread = thread) + { + return (sbyte*)GetThreadName(__dsl_thread); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint64")] + public static extern ulong GetTicks(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint64")] + public static extern ulong GetTicksNS(); + + [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); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetTouchDeviceName( + [NativeTypeName("SDL_TouchID")] ulong touchID + ) => (sbyte*)GetTouchDeviceNameRaw(touchID); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetTouchDeviceName")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetTouchDeviceNameRaw( + [NativeTypeName("SDL_TouchID")] ulong touchID + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_TouchID *")] + public static extern ulong* GetTouchDevices(int* count); + + [return: NativeTypeName("SDL_TouchID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetTouchDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (ulong*)GetTouchDevices(__dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern TouchDeviceType GetTouchDeviceType( + [NativeTypeName("SDL_TouchID")] ulong touchID + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Finger** GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + int* count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (Finger**)GetTouchFingers(touchID, __dsl_count); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetUserFolder(Folder folder) => (sbyte*)GetUserFolderRaw(folder); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetUserFolder")] + [return: NativeTypeName("char *")] + public static extern sbyte* GetUserFolderRaw(Folder folder); + + [DllImport("SDL3", ExactSpelling = true)] + 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); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetVideoDriver(int index) => (sbyte*)GetVideoDriverRaw(index); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetVideoDriver")] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetVideoDriverRaw(int index); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetWindowBordersSize( + SDL_Window* window, + int* top, + int* left, + int* bottom, + int* right + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowBordersSize( + Ref window, + Ref top, + Ref left, + Ref bottom, + Ref right + ) + { + fixed (int* __dsl_right = right) + fixed (int* __dsl_bottom = bottom) + fixed (int* __dsl_left = left) + fixed (int* __dsl_top = top) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowBordersSize( + __dsl_window, + __dsl_top, + __dsl_left, + __dsl_bottom, + __dsl_right + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern float GetWindowDisplayScale(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowDisplayScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetWindowDisplayScale(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (float)GetWindowDisplayScale(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_WindowFlags")] + public static extern uint GetWindowFlags(SDL_Window* window); + + [return: NativeTypeName("SDL_WindowFlags")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFlags")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowFlags(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetWindowFlags(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id) => + (SDL_Window*)GetWindowFromIDRaw(id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GetWindowFromID")] + public static extern SDL_Window* GetWindowFromIDRaw( + [NativeTypeName("SDL_WindowID")] uint id + ); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const SDL_DisplayMode *")] + public static extern DisplayMode* GetWindowFullscreenMode(SDL_Window* window); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowFullscreenMode(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (DisplayMode*)GetWindowFullscreenMode(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void* GetWindowICCProfile( + SDL_Window* window, + [NativeTypeName("size_t *")] nuint* size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowICCProfile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowICCProfile( + Ref window, + [NativeTypeName("size_t *")] Ref size + ) + { + fixed (nuint* __dsl_size = size) + fixed (SDL_Window* __dsl_window = window) + { + return (void*)GetWindowICCProfile(__dsl_window, __dsl_size); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_WindowID")] + public static extern uint GetWindowID(SDL_Window* window); + + [return: NativeTypeName("SDL_WindowID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowID(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetWindowID(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetWindowKeyboardGrab(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowKeyboardGrab(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)GetWindowKeyboardGrab(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetWindowMaximumSize(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowMaximumSize(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowMaximumSize(__dsl_window, __dsl_w, __dsl_h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetWindowMinimumSize(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowMinimumSize(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowMinimumSize(__dsl_window, __dsl_w, __dsl_h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GetWindowMouseGrab(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowMouseGrab(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)GetWindowMouseGrab(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const SDL_Rect *")] + public static extern Rect* GetWindowMouseRect(SDL_Window* window); + + [return: NativeTypeName("const SDL_Rect *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowMouseRect(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (Rect*)GetWindowMouseRect(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetWindowOpacity(SDL_Window* window, float* out_opacity); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowOpacity(Ref window, Ref out_opacity) + { + fixed (float* __dsl_out_opacity = out_opacity) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowOpacity(__dsl_window, __dsl_out_opacity); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Window* GetWindowParent(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowParent(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (SDL_Window*)GetWindowParent(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern float GetWindowPixelDensity(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelDensity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetWindowPixelDensity(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (float)GetWindowPixelDensity(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint GetWindowPixelFormat(SDL_Window* window); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowPixelFormat(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetWindowPixelFormat(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetWindowPosition(SDL_Window* window, int* x, int* y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowPosition(Ref window, Ref x, Ref y) + { + fixed (int* __dsl_y = y) + fixed (int* __dsl_x = x) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowPosition(__dsl_window, __dsl_x, __dsl_y); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_PropertiesID")] + public static extern uint GetWindowProperties(SDL_Window* window); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowProperties(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetWindowProperties(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetWindowSize(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowSize(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowSize(__dsl_window, __dsl_w, __dsl_h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GetWindowSizeInPixels(SDL_Window* window, int* w, int* h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowSizeInPixels(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowSizeInPixels(__dsl_window, __dsl_w, __dsl_h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* GetWindowSurface(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (Surface*)GetWindowSurface(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("const char *")] + public static extern sbyte* GetWindowTitle(SDL_Window* window); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowTitle(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (sbyte*)GetWindowTitle(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_GLContext")] + public static extern void* GLCreateContext(SDL_Window* window); + + [return: NativeTypeName("SDL_GLContext")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GLCreateContext(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (void*)GLCreateContext(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context); + + [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); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int GLExtensionSupported( + [NativeTypeName("const char *")] sbyte* extension + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GLExtensionSupported( + [NativeTypeName("const char *")] Ref extension + ) + { + fixed (sbyte* __dsl_extension = extension) + { + return (MaybeBool)(int)GLExtensionSupported(__dsl_extension); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GLGetAttribute(GLattr attr, int* value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLGetAttribute(GLattr attr, Ref value) + { + fixed (int* __dsl_value = value) + { + return (int)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(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GLGetCurrentWindow() => (SDL_Window*)GLGetCurrentWindowRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_GL_GetCurrentWindow")] + public static extern SDL_Window* GLGetCurrentWindowRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_FunctionPointer")] + public static extern delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) + { + fixed (sbyte* __dsl_proc = proc) + { + return (delegate* unmanaged)GLGetProcAddress(__dsl_proc); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GLGetSwapInterval(int* interval); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLGetSwapInterval(Ref interval) + { + fixed (int* __dsl_interval = interval) + { + return (int)GLGetSwapInterval(__dsl_interval); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLLoadLibrary([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (int)GLLoadLibrary(__dsl_path); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GLMakeCurrent( + SDL_Window* window, + [NativeTypeName("SDL_GLContext")] void* context + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLMakeCurrent( + Ref window, + [NativeTypeName("SDL_GLContext")] Ref context + ) + { + fixed (void* __dsl_context = context) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GLMakeCurrent(__dsl_window, __dsl_context); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void GLResetAttributes(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GLSetAttribute(GLattr attr, int value); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GLSetSwapInterval(int interval); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int GLSwapWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLSwapWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)GLSwapWindow(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void GLUnloadLibrary(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("char **")] + public static extern sbyte** GlobDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GlobDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) + { + fixed (int* __dsl_count = count) + fixed (sbyte* __dsl_pattern = pattern) + fixed (sbyte* __dsl_path = path) + { + return (sbyte**)GlobDirectory(__dsl_path, __dsl_pattern, flags, __dsl_count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("char **")] + public static extern sbyte** GlobStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GlobStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) + { + fixed (int* __dsl_count = count) + fixed (sbyte* __dsl_pattern = pattern) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (sbyte**)GlobStorageDirectory( + __dsl_storage, + __dsl_path, + __dsl_pattern, + flags, + __dsl_count + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + 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)] + public static extern int GuidToString( + Guid guid, + [NativeTypeName("char *")] sbyte* pszGUID, + int cbGUID + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GuidToString( + Guid guid, + [NativeTypeName("char *")] Ref pszGUID, + int cbGUID + ) + { + fixed (sbyte* __dsl_pszGUID = pszGUID) + { + return (int)GuidToString(guid, __dsl_pszGUID, cbGUID); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int HapticEffectSupported( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HapticEffectSupported( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) + { + fixed (HapticEffect* __dsl_effect = effect) + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (MaybeBool)(int)HapticEffectSupported(__dsl_haptic, __dsl_effect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int HapticRumbleSupported(SDL_Haptic* haptic); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HapticRumbleSupported(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (MaybeBool)(int)HapticRumbleSupported(__dsl_haptic); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + public static MaybeBool HasAltiVec() => (MaybeBool)(int)HasAltiVecRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasAltiVec")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasAltiVecRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + public static MaybeBool HasArmsimd() => (MaybeBool)(int)HasArmsimdRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasARMSIMD")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasArmsimdRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + public static MaybeBool HasAVX() => (MaybeBool)(int)HasAVXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + public static MaybeBool HasAVX2() => (MaybeBool)(int)HasAVX2Raw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasAVX2")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasAVX2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + public static MaybeBool HasAVX512F() => (MaybeBool)(int)HasAVX512FRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasAVX512F")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasAVX512FRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasAVX")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasAVXRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int HasClipboardData( + [NativeTypeName("const char *")] sbyte* mime_type + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + public static MaybeBool HasClipboardText() => + (MaybeBool)(int)HasClipboardTextRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasClipboardText")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasClipboardTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => + (MaybeBool)(int)HasEventRaw(type); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasEvent")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasEventRaw([NativeTypeName("Uint32")] uint type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + public static MaybeBool HasEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => (MaybeBool)(int)HasEventsRaw(minType, maxType); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasEvents")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasEventsRaw( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + public static MaybeBool HasGamepad() => (MaybeBool)(int)HasGamepadRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasGamepad")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasGamepadRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + public static MaybeBool HasJoystick() => (MaybeBool)(int)HasJoystickRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasJoystick")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasJoystickRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + public static MaybeBool HasKeyboard() => (MaybeBool)(int)HasKeyboardRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasKeyboard")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasKeyboardRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + public static MaybeBool HasLasx() => (MaybeBool)(int)HasLasxRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasLASX")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasLasxRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + public static MaybeBool HasLSX() => (MaybeBool)(int)HasLSXRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasLSX")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasLSXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + public static MaybeBool HasMMX() => (MaybeBool)(int)HasMMXRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasMMX")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasMMXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + public static MaybeBool HasMouse() => (MaybeBool)(int)HasMouseRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasMouse")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasMouseRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + public static MaybeBool HasNeon() => (MaybeBool)(int)HasNeonRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasNEON")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasNeonRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + public static MaybeBool HasPrimarySelectionText() => + (MaybeBool)(int)HasPrimarySelectionTextRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasPrimarySelectionText")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasPrimarySelectionTextRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B + ) + { + fixed (Rect* __dsl_B = B) + fixed (Rect* __dsl_A = A) + { + return (MaybeBool)(int)HasRectIntersection(__dsl_A, __dsl_B); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B + ) + { + fixed (FRect* __dsl_B = B) + fixed (FRect* __dsl_A = A) + { + return (MaybeBool)(int)HasRectIntersectionFloat(__dsl_A, __dsl_B); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + public static MaybeBool HasScreenKeyboardSupport() => + (MaybeBool)(int)HasScreenKeyboardSupportRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasScreenKeyboardSupport")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasScreenKeyboardSupportRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + public static MaybeBool HasSSE() => (MaybeBool)(int)HasSSERaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + public static MaybeBool HasSSE2() => (MaybeBool)(int)HasSSE2Raw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE2")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasSSE2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + public static MaybeBool HasSSE3() => (MaybeBool)(int)HasSSE3Raw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE3")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasSSE3Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + public static MaybeBool HasSSE41() => (MaybeBool)(int)HasSSE41Raw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE41")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasSSE41Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + public static MaybeBool HasSSE42() => (MaybeBool)(int)HasSSE42Raw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE42")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasSSE42Raw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_HasSSE")] + [return: NativeTypeName("SDL_bool")] + public static extern int HasSSERaw(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void HidBleScan([NativeTypeName("SDL_bool")] int active); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] + public static void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active) => + HidBleScan((int)active); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidClose(SDL_hid_device* dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidClose(Ref dev) + { + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidClose(__dsl_dev); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint HidDeviceChangeCount(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr HidEnumerate( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ) => (HidDeviceInfo*)HidEnumerateRaw(vendor_id, product_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_hid_enumerate")] + public static extern HidDeviceInfo* HidEnumerateRaw( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidExit(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void HidFreeEnumeration(HidDeviceInfo* devs); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_free_enumeration")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void HidFreeEnumeration(Ref devs) + { + fixed (HidDeviceInfo* __dsl_devs = devs) + { + HidFreeEnumeration(__dsl_devs); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern HidDeviceInfo* HidGetDeviceInfo(SDL_hid_device* dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_device_info")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr HidGetDeviceInfo(Ref dev) + { + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (HidDeviceInfo*)HidGetDeviceInfo(__dsl_dev); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidGetFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_feature_report")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetFeatureReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetFeatureReport(__dsl_dev, __dsl_data, length); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidGetIndexedString( + SDL_hid_device* dev, + int string_index, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_indexed_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetIndexedString( + Ref dev, + int string_index, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetIndexedString(__dsl_dev, string_index, __dsl_string, maxlen); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidGetInputReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_input_report")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetInputReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetInputReport(__dsl_dev, __dsl_data, length); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidGetManufacturerString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_manufacturer_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetManufacturerString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetManufacturerString(__dsl_dev, __dsl_string, maxlen); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidGetProductString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_product_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetProductString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetProductString(__dsl_dev, __dsl_string, maxlen); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidGetReportDescriptor( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* buf, + [NativeTypeName("size_t")] nuint buf_size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetReportDescriptor( + Ref dev, + [NativeTypeName("unsigned char *")] Ref buf, + [NativeTypeName("size_t")] nuint buf_size + ) + { + fixed (byte* __dsl_buf = buf) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetReportDescriptor(__dsl_dev, __dsl_buf, buf_size); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidGetSerialNumberString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_serial_number_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetSerialNumberString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetSerialNumberString(__dsl_dev, __dsl_string, maxlen); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidInit(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_hid_device* HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] uint* serial_number + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] Ref serial_number + ) + { + fixed (uint* __dsl_serial_number = serial_number) + { + return (SDL_hid_device*)HidOpen(vendor_id, product_id, __dsl_serial_number); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_hid_device* HidOpenPath( + [NativeTypeName("const char *")] sbyte* path + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open_path")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr HidOpenPath( + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + { + return (SDL_hid_device*)HidOpenPath(__dsl_path); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidRead( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidRead( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidRead(__dsl_dev, __dsl_data, length); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidReadTimeout( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read_timeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidReadTimeout( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidReadTimeout(__dsl_dev, __dsl_data, length, milliseconds); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidSendFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_send_feature_report")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidSendFeatureReport( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidSendFeatureReport(__dsl_dev, __dsl_data, length); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidSetNonblocking(SDL_hid_device* dev, int nonblock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_set_nonblocking")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidSetNonblocking(Ref dev, int nonblock) + { + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidSetNonblocking(__dsl_dev, nonblock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HidWrite( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_write")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidWrite( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidWrite(__dsl_dev, __dsl_data, length); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HideCursor(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int HideWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HideWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)HideWindow(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int Init([NativeTypeName("Uint32")] uint flags); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int InitHapticRumble(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int InitHapticRumble(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)InitHapticRumble(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int InitSubSystem([NativeTypeName("Uint32")] uint flags); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_IOStream* IOFromConstMem( + [NativeTypeName("const void *")] void* mem, + [NativeTypeName("size_t")] nuint size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr IOFromConstMem( + [NativeTypeName("const void *")] Ref mem, + [NativeTypeName("size_t")] nuint size + ) + { + fixed (void* __dsl_mem = mem) + { + return (SDL_IOStream*)IOFromConstMem(__dsl_mem, size); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr IOFromDynamicMem() => (SDL_IOStream*)IOFromDynamicMemRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IOFromDynamicMem")] + public static extern SDL_IOStream* IOFromDynamicMemRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_IOStream* IOFromFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const char *")] sbyte* mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr IOFromFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const char *")] Ref mode + ) + { + fixed (sbyte* __dsl_mode = mode) + fixed (sbyte* __dsl_file = file) + { + return (SDL_IOStream*)IOFromFile(__dsl_file, __dsl_mode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_IOStream* IOFromMem( + void* mem, + [NativeTypeName("size_t")] nuint size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr IOFromMem(Ref mem, [NativeTypeName("size_t")] nuint size) + { + fixed (void* __dsl_mem = mem) + { + return (SDL_IOStream*)IOFromMem(__dsl_mem, size); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("size_t")] + public static extern nuint IOvprintf( + SDL_IOStream* context, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOvprintf")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint IOvprintf( + Ref context, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) + { + fixed (sbyte* __dsl_ap = ap) + fixed (sbyte* __dsl_fmt = fmt) + fixed (SDL_IOStream* __dsl_context = context) + { + return (nuint)IOvprintf(__dsl_context, __dsl_fmt, __dsl_ap); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + public static MaybeBool IsGamepad( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (MaybeBool)(int)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); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int IsJoystickHaptic(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsJoystickHaptic(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (MaybeBool)(int)IsJoystickHaptic(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + public static MaybeBool IsJoystickVirtual( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (MaybeBool)(int)IsJoystickVirtualRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsJoystickVirtual")] + [return: NativeTypeName("SDL_bool")] + public static extern int IsJoystickVirtualRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + public static MaybeBool IsMouseHaptic() => (MaybeBool)(int)IsMouseHapticRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsMouseHaptic")] + [return: NativeTypeName("SDL_bool")] + public static extern int IsMouseHapticRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + public static MaybeBool IsTablet() => (MaybeBool)(int)IsTabletRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_IsTablet")] + [return: NativeTypeName("SDL_bool")] + public static extern int IsTabletRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int JoystickConnected(SDL_Joystick* joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool JoystickConnected(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (MaybeBool)(int)JoystickConnected(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + public static MaybeBool JoystickEventsEnabled() => + (MaybeBool)(int)JoystickEventsEnabledRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_JoystickEventsEnabled")] + [return: NativeTypeName("SDL_bool")] + public static extern int JoystickEventsEnabledRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* LoadBMP([NativeTypeName("const char *")] sbyte* file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadBMP([NativeTypeName("const char *")] Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (Surface*)LoadBMP(__dsl_file); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* LoadBMPIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadBMPIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (SDL_IOStream* __dsl_src = src) + { + return (Surface*)LoadBMPIO(__dsl_src, (int)closeio); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void* LoadFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("size_t *")] nuint* datasize + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("size_t *")] Ref datasize + ) + { + fixed (nuint* __dsl_datasize = datasize) + fixed (sbyte* __dsl_file = file) + { + return (void*)LoadFile(__dsl_file, __dsl_datasize); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void* LoadFileIO( + SDL_IOStream* src, + [NativeTypeName("size_t *")] nuint* datasize, + [NativeTypeName("SDL_bool")] int closeio + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadFileIO( + Ref src, + [NativeTypeName("size_t *")] Ref datasize, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (nuint* __dsl_datasize = datasize) + fixed (SDL_IOStream* __dsl_src = src) + { + return (void*)LoadFileIO(__dsl_src, __dsl_datasize, (int)closeio); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_FunctionPointer")] + public static extern delegate* unmanaged LoadFunction( + void* handle, + [NativeTypeName("const char *")] sbyte* name + ); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged LoadFunction( + Ref handle, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + fixed (void* __dsl_handle = handle) + { + return (delegate* unmanaged)LoadFunction(__dsl_handle, __dsl_name); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void* 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) + { + fixed (sbyte* __dsl_sofile = sofile) + { + return (void*)LoadObject(__dsl_sofile); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int LoadWAV( + [NativeTypeName("const char *")] sbyte* path, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LoadWAV( + [NativeTypeName("const char *")] Ref path, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ) + { + fixed (uint* __dsl_audio_len = audio_len) + fixed (byte** __dsl_audio_buf = audio_buf) + fixed (AudioSpec* __dsl_spec = spec) + fixed (sbyte* __dsl_path = path) + { + return (int)LoadWAV(__dsl_path, __dsl_spec, __dsl_audio_buf, __dsl_audio_len); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int LoadWAVIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LoadWAVIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ) + { + fixed (uint* __dsl_audio_len = audio_len) + fixed (byte** __dsl_audio_buf = audio_buf) + fixed (AudioSpec* __dsl_spec = spec) + fixed (SDL_IOStream* __dsl_src = src) + { + return (int)LoadWAVIO( + __dsl_src, + (int)closeio, + __dsl_spec, + __dsl_audio_buf, + __dsl_audio_len + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int LockAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)LockAudioStream(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void LockJoysticks(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void LockMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + LockMutex(__dsl_mutex); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void LockRWLockForReading(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockRWLockForReading(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + LockRWLockForReading(__dsl_rwlock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void LockRWLockForWriting(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockRWLockForWriting(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + LockRWLockForWriting(__dsl_rwlock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) + { + fixed (int* __dsl_lock = @lock) + { + LockSpinlock(__dsl_lock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int LockSurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockSurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)LockSurface(__dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int LockTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + void** pixels, + int* pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D pixels, + Ref pitch + ) + { + fixed (int* __dsl_pitch = pitch) + fixed (void** __dsl_pixels = pixels) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)LockTexture(__dsl_texture, __dsl_rect, __dsl_pixels, __dsl_pitch); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int LockTextureToSurface( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + Surface** surface + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockTextureToSurface( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D surface + ) + { + fixed (Surface** __dsl_surface = surface) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)LockTextureToSurface(__dsl_texture, __dsl_rect, __dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern LogPriority LogGetPriority(int category); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) + { + fixed (sbyte* __dsl_ap = ap) + fixed (sbyte* __dsl_fmt = fmt) + { + LogMessageV(category, priority, __dsl_fmt, __dsl_ap); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void LogResetPriorities(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void LogSetAllPriority(LogPriority priority); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void LogSetPriority(int category, LogPriority priority); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (PixelFormat* __dsl_format = format) + { + return (uint)MapRGB(__dsl_format, r, g, b); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (PixelFormat* __dsl_format = format) + { + return (uint)MapRgba(__dsl_format, r, g, b, a); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int MaximizeWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int MaximizeWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)MaximizeWindow(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void MemoryBarrierAcquireFunction(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void MemoryBarrierReleaseFunction(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_MetalView")] + public static extern void* MetalCreateView(SDL_Window* window); + + [return: NativeTypeName("SDL_MetalView")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_CreateView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr MetalCreateView(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (void*)MetalCreateView(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_DestroyView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view) + { + fixed (void* __dsl_view = view) + { + MetalDestroyView(__dsl_view); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void* MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_GetLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) + { + fixed (void* __dsl_view = view) + { + return (void*)MetalGetLayer(__dsl_view); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int MinimizeWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int MinimizeWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)MinimizeWindow(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int MixAudioFormat( + [NativeTypeName("Uint8 *")] byte* dst, + [NativeTypeName("const Uint8 *")] byte* src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int MixAudioFormat( + [NativeTypeName("Uint8 *")] Ref dst, + [NativeTypeName("const Uint8 *")] Ref src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ) + { + fixed (byte* __dsl_src = src) + fixed (byte* __dsl_dst = dst) + { + return (int)MixAudioFormat(__dsl_dst, __dsl_src, format, len, volume); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void OnApplicationDidBecomeActive(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void OnApplicationDidEnterBackground(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void OnApplicationDidReceiveMemoryWarning(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void OnApplicationWillEnterForeground(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void OnApplicationWillResignActive(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void OnApplicationWillTerminate(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_AudioDeviceID")] + public static extern uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec + ); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec + ) + { + fixed (AudioSpec* __dsl_spec = spec) + { + return (uint)OpenAudioDevice(devid, __dsl_spec); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_AudioStream* OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDeviceStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (AudioSpec* __dsl_spec = spec) + { + return (SDL_AudioStream*)OpenAudioDeviceStream( + devid, + __dsl_spec, + callback, + __dsl_userdata + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Camera* OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] Ref spec + ) + { + fixed (CameraSpec* __dsl_spec = spec) + { + return (SDL_Camera*)OpenCameraDevice(instance_id, __dsl_spec); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Storage* OpenFileStorage( + [NativeTypeName("const char *")] sbyte* path + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenFileStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenFileStorage( + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + { + return (SDL_Storage*)OpenFileStorage(__dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenGamepad( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (SDL_Gamepad*)OpenGamepadRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OpenGamepad")] + public static extern SDL_Gamepad* OpenGamepadRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenHaptic( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => (SDL_Haptic*)OpenHapticRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Haptic* OpenHapticFromJoystick(SDL_Joystick* joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenHapticFromJoystick(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (SDL_Haptic*)OpenHapticFromJoystick(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenHapticFromMouse() => + (SDL_Haptic*)OpenHapticFromMouseRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OpenHapticFromMouse")] + public static extern SDL_Haptic* OpenHapticFromMouseRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OpenHaptic")] + public static extern SDL_Haptic* OpenHapticRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_IOStream* OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] IOStreamInterface* iface, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] Ref iface, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (IOStreamInterface* __dsl_iface = iface) + { + return (SDL_IOStream*)OpenIO(__dsl_iface, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (SDL_Joystick*)OpenJoystickRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OpenJoystick")] + public static extern SDL_Joystick* OpenJoystickRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenSensor( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => (SDL_Sensor*)OpenSensorRaw(instance_id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_OpenSensor")] + public static extern SDL_Sensor* OpenSensorRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Storage* OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] StorageInterface* iface, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] Ref iface, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (StorageInterface* __dsl_iface = iface) + { + return (SDL_Storage*)OpenStorage(__dsl_iface, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Storage* OpenTitleStorage( + [NativeTypeName("const char *")] sbyte* @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenTitleStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenTitleStorage( + [NativeTypeName("const char *")] Ref @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (sbyte* __dsl_override = @override) + { + return (SDL_Storage*)OpenTitleStorage(__dsl_override, props); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int OpenURL([NativeTypeName("const char *")] sbyte* url); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int OpenURL([NativeTypeName("const char *")] Ref url) + { + fixed (sbyte* __dsl_url = url) + { + return (int)OpenURL(__dsl_url); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern SDL_Storage* OpenUserStorage( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app, + [NativeTypeName("SDL_PropertiesID")] uint props + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenUserStorage( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (sbyte* __dsl_app = app) + fixed (sbyte* __dsl_org = org) + { + return (SDL_Storage*)OpenUserStorage(__dsl_org, __dsl_app, props); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int PauseHaptic(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PauseHaptic(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)PauseHaptic(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int PeepEvents( + Event* events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PeepEvents( + Ref events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) + { + fixed (Event* __dsl_events = events) + { + return (int)PeepEvents(__dsl_events, numevents, action, minType, maxType); + } + } + + [return: NativeTypeName("SDL_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); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int PlayHapticRumble( + SDL_Haptic* haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PlayHapticRumble( + Ref haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)PlayHapticRumble(__dsl_haptic, strength, length); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int PollEvent(Event* @event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PollEvent(Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (MaybeBool)(int)PollEvent(__dsl_event); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int PostSemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PostSemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)PostSemaphore(__dsl_sem); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ) + { + 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 + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void PumpEvents(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int PushEvent(Event* @event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PushEvent(Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (int)PushEvent(__dsl_event); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int PutAudioStreamData( + SDL_AudioStream* stream, + [NativeTypeName("const void *")] void* buf, + int len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PutAudioStreamData( + Ref stream, + [NativeTypeName("const void *")] Ref buf, + int len + ) + { + fixed (void* __dsl_buf = buf) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)PutAudioStreamData(__dsl_stream, __dsl_buf, len); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int QueryTexture( + SDL_Texture* texture, + PixelFormatEnum* format, + int* access, + int* w, + int* h + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int QueryTexture( + Ref 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) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)QueryTexture( + __dsl_texture, + __dsl_format, + __dsl_access, + __dsl_w, + __dsl_h + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void Quit(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void QuitSubSystem([NativeTypeName("Uint32")] uint flags); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RaiseWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RaiseWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)RaiseWindow(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("size_t")] + public static extern nuint ReadIO( + SDL_IOStream* context, + void* ptr, + [NativeTypeName("size_t")] nuint size + ); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint ReadIO( + Ref context, + Ref ptr, + [NativeTypeName("size_t")] nuint size + ) + { + fixed (void* __dsl_ptr = ptr) + fixed (SDL_IOStream* __dsl_context = context) + { + return (nuint)ReadIO(__dsl_context, __dsl_ptr, size); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadS16BE( + SDL_IOStream* src, + [NativeTypeName("Sint16 *")] short* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS16BE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) + { + fixed (short* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS16BE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadS16LE( + SDL_IOStream* src, + [NativeTypeName("Sint16 *")] short* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS16LE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) + { + fixed (short* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS16LE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadS32BE( + SDL_IOStream* src, + [NativeTypeName("Sint32 *")] int* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS32BE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) + { + fixed (int* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS32BE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadS32LE( + SDL_IOStream* src, + [NativeTypeName("Sint32 *")] int* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS32LE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) + { + fixed (int* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS32LE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadS64BE( + SDL_IOStream* src, + [NativeTypeName("Sint64 *")] long* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS64BE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) + { + fixed (long* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS64BE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadS64LE( + SDL_IOStream* src, + [NativeTypeName("Sint64 *")] long* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS64LE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) + { + fixed (long* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS64LE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ReadStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + void* destination, + [NativeTypeName("Uint64")] ulong length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref destination, + [NativeTypeName("Uint64")] ulong length + ) + { + fixed (void* __dsl_destination = destination) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)ReadStorageFile(__dsl_storage, __dsl_path, __dsl_destination, length); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ReadSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) + { + fixed (byte* __dsl_a = a) + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + 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 + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadU16BE( + SDL_IOStream* src, + [NativeTypeName("Uint16 *")] ushort* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU16BE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) + { + fixed (ushort* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU16BE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadU16LE( + SDL_IOStream* src, + [NativeTypeName("Uint16 *")] ushort* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU16LE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) + { + fixed (ushort* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU16LE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadU32BE( + SDL_IOStream* src, + [NativeTypeName("Uint32 *")] uint* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU32BE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) + { + fixed (uint* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU32BE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadU32LE( + SDL_IOStream* src, + [NativeTypeName("Uint32 *")] uint* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU32LE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) + { + fixed (uint* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU32LE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadU64BE( + SDL_IOStream* src, + [NativeTypeName("Uint64 *")] ulong* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU64BE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) + { + fixed (ulong* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU64BE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadU64LE( + SDL_IOStream* src, + [NativeTypeName("Uint64 *")] ulong* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU64LE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) + { + fixed (ulong* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU64LE(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ReadU8(SDL_IOStream* src, [NativeTypeName("Uint8 *")] byte* value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU8( + Ref src, + [NativeTypeName("Uint8 *")] Ref value + ) + { + fixed (byte* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU8(__dsl_src, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint RegisterEvents(int numevents); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ReleaseCameraFrame(SDL_Camera* camera, Surface* frame); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReleaseCameraFrame(Ref camera, Ref frame) + { + fixed (Surface* __dsl_frame = frame) + fixed (SDL_Camera* __dsl_camera = camera) + { + return (int)ReleaseCameraFrame(__dsl_camera, __dsl_frame); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ReloadGamepadMappings(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RemovePath([NativeTypeName("const char *")] sbyte* path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RemovePath([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (int)RemovePath(__dsl_path); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RemoveStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RemoveStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)RemoveStoragePath(__dsl_storage, __dsl_path); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => + (MaybeBool)(int)RemoveTimerRaw(id); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_RemoveTimer")] + [return: NativeTypeName("SDL_bool")] + public static extern int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenamePath( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenamePath( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + { + return (int)RenamePath(__dsl_oldpath, __dsl_newpath); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenameStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenameStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)RenameStoragePath(__dsl_storage, __dsl_oldpath, __dsl_newpath); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderClear(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderClear(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderClear(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int RenderClipEnabled(SDL_Renderer* renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderClipEnabled(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (MaybeBool)(int)RenderClipEnabled(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderCoordinatesFromWindow( + SDL_Renderer* renderer, + float window_x, + float window_y, + float* x, + float* y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderCoordinatesFromWindow( + Ref renderer, + float window_x, + float window_y, + Ref x, + Ref y + ) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderCoordinatesFromWindow( + __dsl_renderer, + window_x, + window_y, + __dsl_x, + __dsl_y + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderCoordinatesToWindow( + SDL_Renderer* renderer, + float x, + float y, + float* window_x, + float* window_y + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderCoordinatesToWindow( + Ref renderer, + float x, + float y, + Ref window_x, + Ref window_y + ) + { + fixed (float* __dsl_window_y = window_y) + fixed (float* __dsl_window_x = window_x) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderCoordinatesToWindow( + __dsl_renderer, + x, + y, + __dsl_window_x, + __dsl_window_y + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderFillRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderFillRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) + { + fixed (FRect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderFillRect(__dsl_renderer, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderFillRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderFillRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) + { + fixed (FRect* __dsl_rects = rects) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderFillRects(__dsl_renderer, __dsl_rects, count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderGeometry( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, + int num_vertices, + [NativeTypeName("const int *")] int* indices, + int num_indices + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderGeometry( + Ref renderer, + Ref texture, + [NativeTypeName("const SDL_Vertex *")] Ref vertices, + int num_vertices, + [NativeTypeName("const int *")] Ref indices, + int num_indices + ) + { + fixed (int* __dsl_indices = indices) + fixed (Vertex* __dsl_vertices = vertices) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderGeometry( + __dsl_renderer, + __dsl_texture, + __dsl_vertices, + num_vertices, + __dsl_indices, + num_indices + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderGeometryRaw( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const float *")] float* xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] Color* 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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderGeometryRaw( + Ref renderer, + Ref texture, + [NativeTypeName("const float *")] Ref xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] 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 (Color* __dsl_color = color) + fixed (float* __dsl_xy = xy) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderGeometryRaw( + __dsl_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)] + public static extern int RenderGeometryRawFloat( + SDL_Renderer* renderer, + SDL_Texture* 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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderGeometryRawFloat( + Ref renderer, + Ref 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) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderGeometryRawFloat( + __dsl_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)] + public static extern int RenderLine( + SDL_Renderer* renderer, + float x1, + float y1, + float x2, + float y2 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderLine( + Ref renderer, + float x1, + float y1, + float x2, + float y2 + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderLine(__dsl_renderer, x1, y1, x2, y2); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderLines( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderLines( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) + { + fixed (FPoint* __dsl_points = points) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderLines(__dsl_renderer, __dsl_points, count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderPoint(SDL_Renderer* renderer, float x, float y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderPoint(Ref renderer, float x, float y) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderPoint(__dsl_renderer, x, y); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderPoints( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderPoints( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) + { + fixed (FPoint* __dsl_points = points) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderPoints(__dsl_renderer, __dsl_points, count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderPresent(SDL_Renderer* renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderPresent(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderPresent(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern Surface* RenderReadPixels( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr RenderReadPixels( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (Surface*)RenderReadPixels(__dsl_renderer, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) + { + fixed (FRect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderRect(__dsl_renderer, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) + { + fixed (FRect* __dsl_rects = rects) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderRects(__dsl_renderer, __dsl_rects, count); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderTexture( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderTexture( + Ref renderer, + 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 (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderTexture( + __dsl_renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RenderTextureRotated( + SDL_Renderer* renderer, + SDL_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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderTextureRotated( + Ref renderer, + 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 + ) + { + fixed (FPoint* __dsl_center = center) + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderTextureRotated( + __dsl_renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect, + angle, + __dsl_center, + flip + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int RenderViewportSet(SDL_Renderer* renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderViewportSet(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (MaybeBool)(int)RenderViewportSet(__dsl_renderer); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern AssertState ReportAssertion( + AssertData* data, + [NativeTypeName("const char *")] sbyte* func, + [NativeTypeName("const char *")] sbyte* file, + int line + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static AssertState ReportAssertion( + Ref data, + [NativeTypeName("const char *")] Ref func, + [NativeTypeName("const char *")] Ref file, + int line + ) + { + fixed (sbyte* __dsl_file = file) + fixed (sbyte* __dsl_func = func) + fixed (AssertData* __dsl_data = data) + { + return (AssertState)ReportAssertion(__dsl_data, __dsl_func, __dsl_file, line); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void ResetAssertionReport(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ResetHint([NativeTypeName("const char *")] sbyte* name); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)ResetHint(__dsl_name); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void ResetHints(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void ResetKeyboard(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RestoreWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RestoreWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)RestoreWindow(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ResumeHaptic(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ResumeHaptic(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)ResumeHaptic(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RumbleGamepad( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleGamepad( + Ref gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)RumbleGamepad( + __dsl_gamepad, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RumbleGamepadTriggers( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleGamepadTriggers( + Ref gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)RumbleGamepadTriggers( + __dsl_gamepad, + left_rumble, + right_rumble, + duration_ms + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RumbleJoystick( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleJoystick( + Ref joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)RumbleJoystick( + __dsl_joystick, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RumbleJoystickTriggers( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleJoystickTriggers( + Ref joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)RumbleJoystickTriggers( + __dsl_joystick, + left_rumble, + right_rumble, + duration_ms + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int RunHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RunHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)RunHapticEffect(__dsl_haptic, effect, iterations); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SaveBMP( + Surface* surface, + [NativeTypeName("const char *")] sbyte* file + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SaveBMP( + Ref surface, + [NativeTypeName("const char *")] Ref file + ) + { + fixed (sbyte* __dsl_file = file) + fixed (Surface* __dsl_surface = surface) + { + return (int)SaveBMP(__dsl_surface, __dsl_file); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SaveBMPIO( + Surface* surface, + SDL_IOStream* dst, + [NativeTypeName("SDL_bool")] int closeio + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SaveBMPIO( + Ref surface, + Ref dst, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + fixed (Surface* __dsl_surface = surface) + { + return (int)SaveBMPIO(__dsl_surface, __dsl_dst, (int)closeio); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int ScreenKeyboardShown(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ScreenKeyboardShown(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)ScreenKeyboardShown(__dsl_window); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + public static MaybeBool ScreenSaverEnabled() => + (MaybeBool)(int)ScreenSaverEnabledRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_ScreenSaverEnabled")] + [return: NativeTypeName("SDL_bool")] + public static extern int ScreenSaverEnabledRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Sint64")] + public static extern long SeekIO( + SDL_IOStream* context, + [NativeTypeName("Sint64")] long offset, + int whence + ); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long SeekIO( + Ref context, + [NativeTypeName("Sint64")] long offset, + int whence + ) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (long)SeekIO(__dsl_context, offset, whence); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SendGamepadEffect( + SDL_Gamepad* gamepad, + [NativeTypeName("const void *")] void* data, + int size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SendGamepadEffect( + Ref gamepad, + [NativeTypeName("const void *")] Ref data, + int size + ) + { + fixed (void* __dsl_data = data) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)SendGamepadEffect(__dsl_gamepad, __dsl_data, size); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SendJoystickEffect( + SDL_Joystick* joystick, + [NativeTypeName("const void *")] void* data, + int size + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SendJoystickEffect( + Ref joystick, + [NativeTypeName("const void *")] Ref data, + int size + ) + { + fixed (void* __dsl_data = data) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SendJoystickEffect(__dsl_joystick, __dsl_data, size); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + SetAssertionHandler(handler, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (int)SetAudioPostmixCallback(devid, callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetAudioStreamFormat( + SDL_AudioStream* stream, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamFormat( + Ref stream, + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ) + { + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + fixed (AudioSpec* __dsl_src_spec = src_spec) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)SetAudioStreamFormat(__dsl_stream, __dsl_src_spec, __dsl_dst_spec); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetAudioStreamFrequencyRatio(SDL_AudioStream* stream, float ratio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamFrequencyRatio(Ref stream, float ratio) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)SetAudioStreamFrequencyRatio(__dsl_stream, ratio); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetAudioStreamGetCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamGetCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)SetAudioStreamGetCallback(__dsl_stream, callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetAudioStreamPutCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamPutCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)SetAudioStreamPutCallback(__dsl_stream, callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)SetBooleanProperty(props, __dsl_name, (int)value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] + delegate* unmanaged cleanup, + void* userdata, + [NativeTypeName("const char **")] sbyte** mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] + delegate* unmanaged cleanup, + Ref userdata, + [NativeTypeName("const char **")] Ref2D mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ) + { + 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 + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetClipboardText([NativeTypeName("const char *")] sbyte* text); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetClipboardText([NativeTypeName("const char *")] Ref text) + { + fixed (sbyte* __dsl_text = text) + { + return (int)SetClipboardText(__dsl_text); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetCursor(SDL_Cursor* cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetCursor(Ref cursor) + { + fixed (SDL_Cursor* __dsl_cursor = cursor) + { + return (int)SetCursor(__dsl_cursor); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] int enabled + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] + public static void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => SetEventEnabled(type, (int)enabled); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + SetEventFilter(filter, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)SetFloatProperty(props, __dsl_name, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] + public static void SetGamepadEventsEnabled( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => SetGamepadEventsEnabled((int)enabled); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetGamepadLED( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadLED( + Ref gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)SetGamepadLED(__dsl_gamepad, red, green, blue); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] sbyte* mapping + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] Ref mapping + ) + { + fixed (sbyte* __dsl_mapping = mapping) + { + return (int)SetGamepadMapping(instance_id, __dsl_mapping); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetGamepadPlayerIndex(SDL_Gamepad* gamepad, int player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadPlayerIndex(Ref gamepad, int player_index) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)SetGamepadPlayerIndex(__dsl_gamepad, player_index); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetGamepadSensorEnabled( + SDL_Gamepad* gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] int enabled + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadSensorEnabled( + Ref gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)SetGamepadSensorEnabled(__dsl_gamepad, type, (int)enabled); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetHapticAutocenter(SDL_Haptic* haptic, int autocenter); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetHapticAutocenter(Ref haptic, int autocenter) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)SetHapticAutocenter(__dsl_haptic, autocenter); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetHapticGain(SDL_Haptic* haptic, int gain); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetHapticGain(Ref haptic, int gain) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)SetHapticGain(__dsl_haptic, gain); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int SetHint( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetHint( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) + { + fixed (sbyte* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)SetHint(__dsl_name, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int SetHintWithPriority( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value, + HintPriority priority + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetHintWithPriority( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value, + HintPriority priority + ) + { + fixed (sbyte* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)SetHintWithPriority(__dsl_name, __dsl_value, priority); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void SetJoystickEventsEnabled( + [NativeTypeName("SDL_bool")] int enabled + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] + public static void SetJoystickEventsEnabled( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => SetJoystickEventsEnabled((int)enabled); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetJoystickLED( + SDL_Joystick* joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickLED( + Ref joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickLED(__dsl_joystick, red, green, blue); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetJoystickPlayerIndex(SDL_Joystick* joystick, int player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickPlayerIndex(Ref joystick, int player_index) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickPlayerIndex(__dsl_joystick, player_index); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetJoystickVirtualAxis( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16")] short value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickVirtualAxis( + Ref joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickVirtualAxis(__dsl_joystick, axis, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetJoystickVirtualButton( + SDL_Joystick* joystick, + int button, + [NativeTypeName("Uint8")] byte value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickVirtualButton( + Ref joystick, + int button, + [NativeTypeName("Uint8")] byte value + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickVirtualButton(__dsl_joystick, button, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetJoystickVirtualHat( + SDL_Joystick* joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickVirtualHat( + Ref joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickVirtualHat(__dsl_joystick, hat, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + SetLogOutputFunction(callback, __dsl_userdata); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void SetModState(Keymod modstate); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)SetNumberProperty(props, __dsl_name, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetPaletteColors( + Palette* palette, + [NativeTypeName("const SDL_Color *")] Color* colors, + int firstcolor, + int ncolors + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetPaletteColors( + Ref palette, + [NativeTypeName("const SDL_Color *")] Ref colors, + int firstcolor, + 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)] + 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)] + 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); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value + ) + { + fixed (void* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (int)SetProperty(props, __dsl_name, __dsl_value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + void* userdata + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (void* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (int)SetPropertyWithCleanup( + props, + __dsl_name, + __dsl_value, + cleanup, + __dsl_userdata + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + public static int SetRelativeMouseMode( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => (int)SetRelativeMouseMode((int)enabled); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderClipRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderClipRect( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderClipRect(__dsl_renderer, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderColorScale(SDL_Renderer* renderer, float scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderColorScale(Ref renderer, float scale) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderColorScale(__dsl_renderer, scale); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderDrawBlendMode( + SDL_Renderer* renderer, + BlendMode blendMode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderDrawBlendMode(Ref renderer, BlendMode blendMode) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderDrawBlendMode(__dsl_renderer, blendMode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderDrawColor(__dsl_renderer, r, g, b, a); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderDrawColorFloat( + SDL_Renderer* renderer, + float r, + float g, + float b, + float a + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderDrawColorFloat( + Ref renderer, + float r, + float g, + float b, + float a + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderDrawColorFloat(__dsl_renderer, r, g, b, a); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderLogicalPresentation( + SDL_Renderer* renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderLogicalPresentation( + Ref renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderLogicalPresentation(__dsl_renderer, w, h, mode, scale_mode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderScale(SDL_Renderer* renderer, float scaleX, float scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderScale(Ref renderer, float scaleX, float scaleY) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderScale(__dsl_renderer, scaleX, scaleY); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderTarget(SDL_Renderer* renderer, SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderTarget(Ref renderer, Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderTarget(__dsl_renderer, __dsl_texture); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderViewport( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderViewport( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderViewport(__dsl_renderer, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetRenderVSync(SDL_Renderer* renderer, int vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderVSync(Ref renderer, int vsync) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderVSync(__dsl_renderer, vsync); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int 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); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetSurfaceAlphaMod( + Surface* surface, + [NativeTypeName("Uint8")] byte alpha + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8")] byte alpha + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceAlphaMod(__dsl_surface, alpha); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceBlendMode(Ref surface, BlendMode blendMode) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceBlendMode(__dsl_surface, blendMode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int SetSurfaceClipRect( + Surface* surface, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetSurfaceClipRect( + Ref surface, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(int)SetSurfaceClipRect(__dsl_surface, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetSurfaceColorKey( + Surface* surface, + int flag, + [NativeTypeName("Uint32")] uint key + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceColorKey( + Ref surface, + int flag, + [NativeTypeName("Uint32")] uint key + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceColorKey(__dsl_surface, flag, key); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceColorMod(__dsl_surface, r, g, b); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetSurfaceColorspace(Surface* surface, Colorspace colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceColorspace(Ref surface, Colorspace colorspace) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceColorspace(__dsl_surface, colorspace); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetSurfacePalette(Surface* surface, Palette* palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfacePalette(Ref surface, Ref palette) + { + fixed (Palette* __dsl_palette = palette) + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfacePalette(__dsl_surface, __dsl_palette); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetSurfaceRLE(Surface* surface, int flag); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceRLE(Ref surface, int flag) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceRLE(__dsl_surface, flag); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (int)SetTextInputRect(__dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetTextureAlphaMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte alpha + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8")] byte alpha + ) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureAlphaMod(__dsl_texture, alpha); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetTextureAlphaModFloat(SDL_Texture* texture, float alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureAlphaModFloat(Ref texture, float alpha) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureAlphaModFloat(__dsl_texture, alpha); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetTextureBlendMode(SDL_Texture* texture, BlendMode blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureBlendMode(Ref texture, BlendMode blendMode) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureBlendMode(__dsl_texture, blendMode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureColorMod(__dsl_texture, r, g, b); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetTextureColorModFloat( + SDL_Texture* texture, + float r, + float g, + float b + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureColorModFloat( + Ref texture, + float r, + float g, + float b + ) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureColorModFloat(__dsl_texture, r, g, b); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetTextureScaleMode(SDL_Texture* texture, ScaleMode scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureScaleMode(Ref texture, ScaleMode scaleMode) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureScaleMode(__dsl_texture, scaleMode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetThreadPriority(ThreadPriority priority); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] void* value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] Ref value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ) + { + fixed (void* __dsl_value = value) + { + return (int)SetTLS(id, __dsl_value, destructor); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowAlwaysOnTop( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int on_top + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowAlwaysOnTop( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool on_top + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowAlwaysOnTop(__dsl_window, (int)on_top); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowBordered( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int bordered + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowBordered( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool bordered + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowBordered(__dsl_window, (int)bordered); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowFocusable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int focusable + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowFocusable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool focusable + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowFocusable(__dsl_window, (int)focusable); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowFullscreen( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int fullscreen + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowFullscreen( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool fullscreen + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowFullscreen(__dsl_window, (int)fullscreen); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowFullscreenMode( + SDL_Window* window, + [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowFullscreenMode( + Ref window, + [NativeTypeName("const SDL_DisplayMode *")] Ref mode + ) + { + fixed (DisplayMode* __dsl_mode = mode) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowFullscreenMode(__dsl_window, __dsl_mode); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowHitTest( + SDL_Window* window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + void* callback_data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowHitTest( + Ref window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + Ref callback_data + ) + { + fixed (void* __dsl_callback_data = callback_data) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowHitTest(__dsl_window, callback, __dsl_callback_data); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowIcon(SDL_Window* window, Surface* icon); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowIcon(Ref window, Ref icon) + { + fixed (Surface* __dsl_icon = icon) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowIcon(__dsl_window, __dsl_icon); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowInputFocus(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowInputFocus(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowInputFocus(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowKeyboardGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowKeyboardGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowKeyboardGrab(__dsl_window, (int)grabbed); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowMaximumSize(SDL_Window* window, int max_w, int max_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMaximumSize(Ref window, int max_w, int max_h) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowMaximumSize(__dsl_window, max_w, max_h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowMinimumSize(SDL_Window* window, int min_w, int min_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMinimumSize(Ref window, int min_w, int min_h) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowMinimumSize(__dsl_window, min_w, min_h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowModalFor( + SDL_Window* modal_window, + SDL_Window* parent_window + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowModalFor( + Ref modal_window, + Ref parent_window + ) + { + fixed (SDL_Window* __dsl_parent_window = parent_window) + fixed (SDL_Window* __dsl_modal_window = modal_window) + { + return (int)SetWindowModalFor(__dsl_modal_window, __dsl_parent_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowMouseGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMouseGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowMouseGrab(__dsl_window, (int)grabbed); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowMouseRect( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMouseRect( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowMouseRect(__dsl_window, __dsl_rect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowOpacity(SDL_Window* window, float opacity); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowOpacity(Ref window, float opacity) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowOpacity(__dsl_window, opacity); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowPosition(SDL_Window* window, int x, int y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowPosition(Ref window, int x, int y) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowPosition(__dsl_window, x, y); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowResizable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int resizable + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowResizable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool resizable + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowResizable(__dsl_window, (int)resizable); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowShape(SDL_Window* window, Surface* shape); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowShape(Ref window, Ref shape) + { + fixed (Surface* __dsl_shape = shape) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowShape(__dsl_window, __dsl_shape); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowSize(SDL_Window* window, int w, int h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowSize(Ref window, int w, int h) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowSize(__dsl_window, w, h); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SetWindowTitle( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* title + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowTitle( + Ref window, + [NativeTypeName("const char *")] Ref title + ) + { + fixed (sbyte* __dsl_title = title) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowTitle(__dsl_window, __dsl_title); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ShowCursor(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, + int* buttonid + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, + Ref buttonid + ) + { + fixed (int* __dsl_buttonid = buttonid) + fixed (MessageBoxData* __dsl_messageboxdata = messageboxdata) + { + return (int)ShowMessageBox(__dsl_messageboxdata, __dsl_buttonid); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) + { + fixed (sbyte* __dsl_default_location = default_location) + fixed (DialogFileFilter* __dsl_filters = filters) + fixed (SDL_Window* __dsl_window = window) + fixed (void* __dsl_userdata = userdata) + { + ShowOpenFileDialog( + callback, + __dsl_userdata, + __dsl_window, + __dsl_filters, + __dsl_default_location, + (int)allow_many + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) + { + fixed (sbyte* __dsl_default_location = default_location) + fixed (SDL_Window* __dsl_window = window) + fixed (void* __dsl_userdata = userdata) + { + ShowOpenFolderDialog( + callback, + __dsl_userdata, + __dsl_window, + __dsl_default_location, + (int)allow_many + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location + ) + { + fixed (sbyte* __dsl_default_location = default_location) + fixed (DialogFileFilter* __dsl_filters = filters) + fixed (SDL_Window* __dsl_window = window) + fixed (void* __dsl_userdata = userdata) + { + ShowSaveFileDialog( + callback, + __dsl_userdata, + __dsl_window, + __dsl_filters, + __dsl_default_location + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] sbyte* title, + [NativeTypeName("const char *")] sbyte* message, + SDL_Window* window + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] Ref title, + [NativeTypeName("const char *")] Ref message, + Ref window + ) + { + fixed (SDL_Window* __dsl_window = window) + fixed (sbyte* __dsl_message = message) + fixed (sbyte* __dsl_title = title) + { + return (int)ShowSimpleMessageBox(flags, __dsl_title, __dsl_message, __dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ShowWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)ShowWindow(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int ShowWindowSystemMenu(SDL_Window* window, int x, int y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowWindowSystemMenu(Ref window, int x, int y) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)ShowWindowSystemMenu(__dsl_window, x, y); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SignalCondition(SDL_Condition* cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SignalCondition(Ref cond) + { + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)SignalCondition(__dsl_cond); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("size_t")] + public static extern nuint SimdGetAlignment(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SoftStretch( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ); + + [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 + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void StartTextInput(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int StopHapticEffect(SDL_Haptic* haptic, int effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StopHapticEffect(Ref haptic, int effect) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)StopHapticEffect(__dsl_haptic, effect); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int StopHapticEffects(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StopHapticEffects(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)StopHapticEffects(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int StopHapticRumble(SDL_Haptic* haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StopHapticRumble(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)StopHapticRumble(__dsl_haptic); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void StopTextInput(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int StorageReady(SDL_Storage* storage); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool StorageReady(Ref storage) + { + fixed (SDL_Storage* __dsl_storage = storage) + { + return (MaybeBool)(int)StorageReady(__dsl_storage); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int SurfaceHasColorKey(Surface* surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SurfaceHasColorKey(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(int)SurfaceHasColorKey(__dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int SurfaceHasRLE(Surface* surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SurfaceHasRLE(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(int)SurfaceHasRLE(__dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int SyncWindow(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SyncWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SyncWindow(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Sint64")] + public static extern long TellIO(SDL_IOStream* context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long TellIO(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (long)TellIO(__dsl_context); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + public static MaybeBool TextInputActive() => (MaybeBool)(int)TextInputActiveRaw(); + + [DllImport("SDL3", ExactSpelling = true, EntryPoint = "SDL_TextInputActive")] + [return: NativeTypeName("SDL_bool")] + public static extern int TextInputActiveRaw(); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_Time")] + public static extern long TimeFromWindows( + [NativeTypeName("Uint32")] uint dwLowDateTime, + [NativeTypeName("Uint32")] uint dwHighDateTime + ); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + DateTime* dt, + [NativeTypeName("SDL_bool")] int localTime + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + Ref dt, + [NativeTypeName("SDL_bool")] MaybeBool localTime + ) + { + fixed (DateTime* __dsl_dt = dt) + { + return (int)TimeToDateTime(ticks, __dsl_dt, (int)localTime); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] uint* dwLowDateTime, + [NativeTypeName("Uint32 *")] uint* dwHighDateTime + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] Ref dwLowDateTime, + [NativeTypeName("Uint32 *")] Ref dwHighDateTime + ) + { + fixed (uint* __dsl_dwHighDateTime = dwHighDateTime) + fixed (uint* __dsl_dwLowDateTime = dwLowDateTime) + { + TimeToWindows(ticks, __dsl_dwLowDateTime, __dsl_dwHighDateTime); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int TryLockMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + return (int)TryLockMutex(__dsl_mutex); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int TryLockRWLockForReading(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockRWLockForReading(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + return (int)TryLockRWLockForReading(__dsl_rwlock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int TryLockRWLockForWriting(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockRWLockForWriting(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + return (int)TryLockRWLockForWriting(__dsl_rwlock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool TryLockSpinlock( + [NativeTypeName("SDL_SpinLock *")] Ref @lock + ) + { + fixed (int* __dsl_lock = @lock) + { + return (MaybeBool)(int)TryLockSpinlock(__dsl_lock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int TryWaitSemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryWaitSemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)TryWaitSemaphore(__dsl_sem); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnbindAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnbindAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + UnbindAudioStream(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnbindAudioStreams(SDL_AudioStream** streams, int num_streams); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnbindAudioStreams(Ref2D streams, int num_streams) + { + fixed (SDL_AudioStream** __dsl_streams = streams) + { + UnbindAudioStreams(__dsl_streams, num_streams); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnloadObject(void* handle); + + [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); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int UnlockAudioStream(SDL_AudioStream* stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UnlockAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)UnlockAudioStream(__dsl_stream); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnlockJoysticks(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnlockMutex(SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + UnlockMutex(__dsl_mutex); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnlockRWLock(SDL_RWLock* rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockRWLock(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + UnlockRWLock(__dsl_rwlock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) + { + fixed (int* __dsl_lock = @lock) + { + UnlockSpinlock(__dsl_lock); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnlockSurface(Surface* surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockSurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + UnlockSurface(__dsl_surface); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UnlockTexture(SDL_Texture* texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockTexture(Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + UnlockTexture(__dsl_texture); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UpdateGamepads(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int UpdateHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] Ref data + ) + { + fixed (HapticEffect* __dsl_data = data) + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)UpdateHapticEffect(__dsl_haptic, effect, __dsl_data); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UpdateJoysticks(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int UpdateNVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* UVplane, + int UVpitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateNVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref UVplane, + int UVpitch + ) + { + fixed (byte* __dsl_UVplane = UVplane) + fixed (byte* __dsl_Yplane = Yplane) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)UpdateNVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_UVplane, + UVpitch + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void UpdateSensors(); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int UpdateTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const void *")] void* pixels, + int pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const void *")] Ref pixels, + int pitch + ) + { + fixed (void* __dsl_pixels = pixels) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)UpdateTexture(__dsl_texture, __dsl_rect, __dsl_pixels, pitch); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int UpdateWindowSurface(SDL_Window* window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateWindowSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)UpdateWindowSurface(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int UpdateWindowSurfaceRects( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int numrects + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateWindowSurfaceRects( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int numrects + ) + { + fixed (Rect* __dsl_rects = rects) + fixed (SDL_Window* __dsl_window = window) + { + return (int)UpdateWindowSurfaceRects(__dsl_window, __dsl_rects, numrects); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int UpdateYUVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] byte* Vplane, + int Vpitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateYUVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] Ref Vplane, + int Vpitch + ) + { + fixed (byte* __dsl_Vplane = Vplane) + fixed (byte* __dsl_Uplane = Uplane) + fixed (byte* __dsl_Yplane = Yplane) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)UpdateYUVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_Uplane, + Upitch, + __dsl_Vplane, + Vpitch + ); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int WaitCondition(SDL_Condition* cond, SDL_Mutex* mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitCondition(Ref cond, Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)WaitCondition(__dsl_cond, __dsl_mutex); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int WaitConditionTimeout( + SDL_Condition* cond, + SDL_Mutex* mutex, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitConditionTimeout( + Ref cond, + Ref mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)WaitConditionTimeout(__dsl_cond, __dsl_mutex, timeoutMS); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WaitEvent(Event* @event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WaitEvent(Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (MaybeBool)(int)WaitEvent(__dsl_event); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WaitEventTimeout( + Event* @event, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WaitEventTimeout( + Ref @event, + [NativeTypeName("Sint32")] int timeoutMS + ) + { + fixed (Event* __dsl_event = @event) + { + return (MaybeBool)(int)WaitEventTimeout(__dsl_event, timeoutMS); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int WaitSemaphore(SDL_Semaphore* sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitSemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)WaitSemaphore(__dsl_sem); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int WaitSemaphoreTimeout( + SDL_Semaphore* sem, + [NativeTypeName("Sint32")] int timeoutMS + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitSemaphoreTimeout( + Ref sem, + [NativeTypeName("Sint32")] int timeoutMS + ) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)WaitSemaphoreTimeout(__dsl_sem, timeoutMS); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void WaitThread(SDL_Thread* thread, int* status); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void WaitThread(Ref thread, Ref status) + { + fixed (int* __dsl_status = status) + fixed (SDL_Thread* __dsl_thread = thread) + { + WaitThread(__dsl_thread, __dsl_status); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int WarpMouseGlobal(float x, float y); + + [DllImport("SDL3", ExactSpelling = true)] + public static extern void WarpMouseInWindow(SDL_Window* window, float x, float y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void WarpMouseInWindow(Ref window, float x, float y) + { + fixed (SDL_Window* __dsl_window = window) + { + WarpMouseInWindow(__dsl_window, x, y); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("Uint32")] + public static extern uint WasInit([NativeTypeName("Uint32")] uint flags); + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WindowHasSurface(SDL_Window* window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WindowHasSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)WindowHasSurface(__dsl_window); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("size_t")] + public static extern nuint WriteIO( + SDL_IOStream* context, + [NativeTypeName("const void *")] void* ptr, + [NativeTypeName("size_t")] nuint size + ); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint WriteIO( + Ref context, + [NativeTypeName("const void *")] Ref ptr, + [NativeTypeName("size_t")] nuint size + ) + { + fixed (void* __dsl_ptr = ptr) + fixed (SDL_IOStream* __dsl_context = context) + { + return (nuint)WriteIO(__dsl_context, __dsl_ptr, size); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteS16BE( + SDL_IOStream* dst, + [NativeTypeName("Sint16")] short value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS16BE( + Ref dst, + [NativeTypeName("Sint16")] short value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS16BE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteS16LE( + SDL_IOStream* dst, + [NativeTypeName("Sint16")] short value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS16LE( + Ref dst, + [NativeTypeName("Sint16")] short value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS16LE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteS32BE( + SDL_IOStream* dst, + [NativeTypeName("Sint32")] int value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS32BE( + Ref dst, + [NativeTypeName("Sint32")] int value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS32BE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteS32LE( + SDL_IOStream* dst, + [NativeTypeName("Sint32")] int value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS32LE( + Ref dst, + [NativeTypeName("Sint32")] int value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS32LE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteS64BE( + SDL_IOStream* dst, + [NativeTypeName("Sint64")] long value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS64BE( + Ref dst, + [NativeTypeName("Sint64")] long value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS64BE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteS64LE( + SDL_IOStream* dst, + [NativeTypeName("Sint64")] long value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS64LE( + Ref dst, + [NativeTypeName("Sint64")] long value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS64LE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + public static extern int WriteStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const void *")] void* source, + [NativeTypeName("Uint64")] ulong length + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const void *")] Ref source, + [NativeTypeName("Uint64")] ulong length + ) + { + fixed (void* __dsl_source = source) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)WriteStorageFile(__dsl_storage, __dsl_path, __dsl_source, length); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteU16BE( + SDL_IOStream* dst, + [NativeTypeName("Uint16")] ushort value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU16BE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU16BE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteU16LE( + SDL_IOStream* dst, + [NativeTypeName("Uint16")] ushort value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU16LE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU16LE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteU32BE( + SDL_IOStream* dst, + [NativeTypeName("Uint32")] uint value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU32BE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU32BE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteU32LE( + SDL_IOStream* dst, + [NativeTypeName("Uint32")] uint value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU32LE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU32LE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteU64BE( + SDL_IOStream* dst, + [NativeTypeName("Uint64")] ulong value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU64BE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU64BE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteU64LE( + SDL_IOStream* dst, + [NativeTypeName("Uint64")] ulong value + ); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU64LE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU64LE(__dsl_dst, value); + } + } + + [DllImport("SDL3", ExactSpelling = true)] + [return: NativeTypeName("SDL_bool")] + public static extern int WriteU8(SDL_IOStream* dst, [NativeTypeName("Uint8")] byte value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU8( + Ref dst, + [NativeTypeName("Uint8")] byte value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU8(__dsl_dst, value); + } + } + } + + public partial class StaticWrapper : ISdl + where T : ISdl.Static + { + [NativeFunction("SDL3", EntryPoint = "AcquireCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* AcquireCameraFrame( + SDL_Camera* camera, + [NativeTypeName("Uint64 *")] ulong* timestampNS + ) => T.AcquireCameraFrame(camera, timestampNS); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AcquireCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr AcquireCameraFrame( + Ref camera, + [NativeTypeName("Uint64 *")] Ref timestampNS + ) => T.AcquireCameraFrame(camera, timestampNS); + + [NativeFunction("SDL3", EntryPoint = "AddEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => T.AddEventWatch(filter, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) => T.AddEventWatch(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping) => + T.AddGamepadMapping(mapping); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddGamepadMapping([NativeTypeName("const char *")] Ref mapping) => + T.AddGamepadMapping(mapping); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddGamepadMappingsFromFile([NativeTypeName("const char *")] sbyte* file) => + T.AddGamepadMappingsFromFile(file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddGamepadMappingsFromFile([NativeTypeName("const char *")] Ref file) => + T.AddGamepadMappingsFromFile(file); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddGamepadMappingsFromIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio + ) => T.AddGamepadMappingsFromIO(src, closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddGamepadMappingsFromIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) => T.AddGamepadMappingsFromIO(src, closeio); + + [NativeFunction("SDL3", EntryPoint = "AddHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ) => T.AddHintCallback(name, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ) => T.AddHintCallback(name, callback, userdata); + + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "AddTimer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + void* param2 + ) => T.AddTimer(interval, callback, param2); + + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + Ref param2 + ) => T.AddTimer(interval, callback, param2); + + [NativeFunction("SDL3", EntryPoint = "AddVulkanRenderSemaphores")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddVulkanRenderSemaphores( + SDL_Renderer* renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + T.AddVulkanRenderSemaphores( + renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AddVulkanRenderSemaphores( + Ref renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + T.AddVulkanRenderSemaphores( + renderer, + wait_stage_mask, + wait_semaphore, + 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 = "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 = "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 = "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 = "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 = "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 = "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 = "AtomicSetPtr")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* AtomicSetPtr(void** a, void* v) => T.AtomicSetPtr(a, v); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr AtomicSetPtr(Ref2D a, Ref v) => T.AtomicSetPtr(a, v); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "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 = "AttachVirtualJoystickEx")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint AttachVirtualJoystickEx( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc + ) => T.AttachVirtualJoystickEx(desc); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AttachVirtualJoystickEx")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint AttachVirtualJoystickEx( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc + ) => T.AttachVirtualJoystickEx(desc); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool AudioDevicePaused([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + T.AudioDevicePaused(dev); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + T.AudioDevicePausedRaw(dev); + + [NativeFunction("SDL3", EntryPoint = "BindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream* stream + ) => T.BindAudioStream(devid, stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref stream + ) => T.BindAudioStream(devid, stream); + + [NativeFunction("SDL3", EntryPoint = "BindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream** streams, + int num_streams + ) => T.BindAudioStreams(devid, streams, num_streams); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref2D streams, + int num_streams + ) => T.BindAudioStreams(devid, streams, num_streams); + + [NativeFunction("SDL3", EntryPoint = "BlitSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BlitSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect + ) => T.BlitSurface(src, srcrect, dst, dstrect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect + ) => T.BlitSurface(src, srcrect, dst, dstrect); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BlitSurfaceScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect, + ScaleMode scaleMode + ) => T.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BlitSurfaceScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect, + ScaleMode scaleMode + ) => T.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUnchecked")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BlitSurfaceUnchecked( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => T.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BlitSurfaceUnchecked( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) => T.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUncheckedScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BlitSurfaceUncheckedScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ) => T.BlitSurfaceUncheckedScaled(src, srcrect, dst, dstrect, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BlitSurfaceUncheckedScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ) => T.BlitSurfaceUncheckedScaled(src, srcrect, dst, dstrect, scaleMode); + + [NativeFunction("SDL3", EntryPoint = "BroadcastCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BroadcastCondition(SDL_Condition* cond) => T.BroadcastCondition(cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int BroadcastCondition(Ref cond) => T.BroadcastCondition(cond); + + [NativeFunction("SDL3", EntryPoint = "CaptureMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CaptureMouse([NativeTypeName("SDL_bool")] int enabled) => + T.CaptureMouse(enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => + T.CaptureMouse(enabled); + + [NativeFunction("SDL3", EntryPoint = "CleanupTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CleanupTLS() => T.CleanupTLS(); + + [NativeFunction("SDL3", EntryPoint = "ClearAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ClearAudioStream(SDL_AudioStream* stream) => T.ClearAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ClearAudioStream(Ref stream) => T.ClearAudioStream(stream); + + [NativeFunction("SDL3", EntryPoint = "ClearClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ClearClipboardData() => T.ClearClipboardData(); + + [NativeFunction("SDL3", EntryPoint = "ClearComposition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ClearComposition() => T.ClearComposition(); + + [NativeFunction("SDL3", EntryPoint = "ClearError")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ClearError() => T.ClearError(); + + [NativeFunction("SDL3", EntryPoint = "ClearProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => T.ClearProperty(props, name); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) => T.ClearProperty(props, name); + + [NativeFunction("SDL3", EntryPoint = "CloseAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.CloseAudioDevice(devid); + + [NativeFunction("SDL3", EntryPoint = "CloseCamera")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseCamera(SDL_Camera* camera) => T.CloseCamera(camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseCamera")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseCamera(Ref camera) => T.CloseCamera(camera); + + [NativeFunction("SDL3", EntryPoint = "CloseGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseGamepad(SDL_Gamepad* gamepad) => T.CloseGamepad(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseGamepad(Ref gamepad) => T.CloseGamepad(gamepad); + + [NativeFunction("SDL3", EntryPoint = "CloseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseHaptic(SDL_Haptic* haptic) => T.CloseHaptic(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseHaptic(Ref haptic) => T.CloseHaptic(haptic); + + [NativeFunction("SDL3", EntryPoint = "CloseIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CloseIO(SDL_IOStream* context) => T.CloseIO(context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CloseIO(Ref context) => T.CloseIO(context); + + [NativeFunction("SDL3", EntryPoint = "CloseJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseJoystick(SDL_Joystick* joystick) => T.CloseJoystick(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseJoystick(Ref joystick) => T.CloseJoystick(joystick); + + [NativeFunction("SDL3", EntryPoint = "CloseSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseSensor(SDL_Sensor* sensor) => T.CloseSensor(sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void CloseSensor(Ref sensor) => T.CloseSensor(sensor); + + [NativeFunction("SDL3", EntryPoint = "CloseStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CloseStorage(SDL_Storage* storage) => T.CloseStorage(storage); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CloseStorage(Ref storage) => T.CloseStorage(storage); + + [NativeFunction("SDL3", EntryPoint = "ComposeCustomBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public BlendMode ComposeCustomBlendMode( + BlendFactor srcColorFactor, + BlendFactor dstColorFactor, + BlendOperation colorOperation, + BlendFactor srcAlphaFactor, + BlendFactor dstAlphaFactor, + BlendOperation alphaOperation + ) => + T.ComposeCustomBlendMode( + srcColorFactor, + dstColorFactor, + colorOperation, + srcAlphaFactor, + dstAlphaFactor, + alphaOperation + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertAudioSamples")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const Uint8 *")] byte* src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec, + [NativeTypeName("Uint8 **")] byte** dst_data, + int* dst_len + ) => T.ConvertAudioSamples(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const Uint8 *")] Ref src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec, + [NativeTypeName("Uint8 **")] Ref2D dst_data, + Ref dst_len + ) => T.ConvertAudioSamples(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); + + [NativeFunction("SDL3", EntryPoint = "ConvertEventToRenderCoordinates")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ConvertEventToRenderCoordinates(SDL_Renderer* renderer, Event* @event) => + T.ConvertEventToRenderCoordinates(renderer, @event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ConvertEventToRenderCoordinates(Ref renderer, Ref @event) => + T.ConvertEventToRenderCoordinates(renderer, @event); + + [NativeFunction("SDL3", EntryPoint = "ConvertPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ) => T.ConvertPixels(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ) => T.ConvertPixels(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); + + [NativeFunction("SDL3", EntryPoint = "ConvertPixelsAndColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + void* dst, + int dst_pitch + ) => + T.ConvertPixelsAndColorspace( + width, + height, + src_format, + src_colorspace, + src_properties, + src, + src_pitch, + dst_format, + dst_colorspace, + dst_properties, + dst, + dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + Ref dst, + int dst_pitch + ) => + T.ConvertPixelsAndColorspace( + width, + height, + src_format, + src_colorspace, + src_properties, + src, + src_pitch, + dst_format, + dst_colorspace, + dst_properties, + dst, + dst_pitch + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* ConvertSurface( + Surface* surface, + [NativeTypeName("const SDL_PixelFormat *")] 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); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurfaceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* ConvertSurfaceFormat(Surface* surface, PixelFormatEnum pixel_format) => + T.ConvertSurfaceFormat(surface, pixel_format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr ConvertSurfaceFormat( + Ref surface, + PixelFormatEnum pixel_format + ) => T.ConvertSurfaceFormat(surface, pixel_format); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurfaceFormatAndColorspace")] + [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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [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); + + [NativeFunction("SDL3", EntryPoint = "CopyProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ) => T.CopyProperties(src, dst); + + [NativeFunction("SDL3", EntryPoint = "CreateAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_AudioStream* CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ) => T.CreateAudioStream(src_spec, dst_spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ) => T.CreateAudioStream(src_spec, dst_spec); + + [NativeFunction("SDL3", EntryPoint = "CreateColorCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Cursor* CreateColorCursor(Surface* surface, int hot_x, int hot_y) => + T.CreateColorCursor(surface, hot_x, hot_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateColorCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateColorCursor(Ref surface, int hot_x, int hot_y) => + T.CreateColorCursor(surface, hot_x, hot_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateCondition() => T.CreateCondition(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Condition* CreateConditionRaw() => T.CreateConditionRaw(); + + [NativeFunction("SDL3", EntryPoint = "CreateCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Cursor* CreateCursor( + [NativeTypeName("const Uint8 *")] byte* data, + [NativeTypeName("const Uint8 *")] byte* mask, + int w, + int h, + int hot_x, + int hot_y + ) => T.CreateCursor(data, mask, w, h, hot_x, hot_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateCursor( + [NativeTypeName("const Uint8 *")] Ref data, + [NativeTypeName("const Uint8 *")] Ref mask, + int w, + int h, + int hot_x, + int hot_y + ) => T.CreateCursor(data, mask, w, h, hot_x, hot_y); + + [NativeFunction("SDL3", EntryPoint = "CreateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CreateDirectory([NativeTypeName("const char *")] sbyte* path) => + T.CreateDirectory(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CreateDirectory([NativeTypeName("const char *")] Ref path) => + T.CreateDirectory(path); + + [NativeFunction("SDL3", EntryPoint = "CreateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CreateHapticEffect( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ) => T.CreateHapticEffect(haptic, effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CreateHapticEffect( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) => T.CreateHapticEffect(haptic, effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateMutex() => T.CreateMutex(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Mutex* CreateMutexRaw() => T.CreateMutexRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreatePalette(int ncolors) => T.CreatePalette(ncolors); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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 = "CreatePopupWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* CreatePopupWindow( + SDL_Window* parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => T.CreatePopupWindow(parent, offset_x, offset_y, w, h, flags); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreatePopupWindow( + Ref parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => T.CreatePopupWindow(parent, offset_x, offset_y, w, h, flags); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "CreateProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint CreateProperties() => T.CreateProperties(); + + [NativeFunction("SDL3", EntryPoint = "CreateRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Renderer* CreateRenderer( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Uint32")] uint flags + ) => T.CreateRenderer(window, name, flags); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateRenderer( + Ref window, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Uint32")] uint flags + ) => T.CreateRenderer(window, name, flags); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateRendererWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.CreateRendererWithProperties(props); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Renderer* CreateRendererWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.CreateRendererWithPropertiesRaw(props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateRWLock() => T.CreateRWLock(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_RWLock* CreateRWLockRaw() => T.CreateRWLockRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateSemaphore([NativeTypeName("Uint32")] uint initial_value) => + T.CreateSemaphore(initial_value); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Semaphore* CreateSemaphoreRaw([NativeTypeName("Uint32")] uint initial_value) => + T.CreateSemaphoreRaw(initial_value); + + [NativeFunction("SDL3", EntryPoint = "CreateSoftwareRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Renderer* CreateSoftwareRenderer(Surface* surface) => + T.CreateSoftwareRenderer(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSoftwareRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateSoftwareRenderer(Ref surface) => + T.CreateSoftwareRenderer(surface); + + [NativeFunction("SDL3", EntryPoint = "CreateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CreateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ) => T.CreateStorageDirectory(storage, path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CreateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path + ) => T.CreateStorageDirectory(storage, path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateSurface(int width, int height, PixelFormatEnum format) => + T.CreateSurface(width, height, format); + + [NativeFunction("SDL3", EntryPoint = "CreateSurfaceFrom")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* CreateSurfaceFrom( + void* pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ) => T.CreateSurfaceFrom(pixels, width, height, pitch, format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateSurfaceFrom( + Ref pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ) => T.CreateSurfaceFrom(pixels, width, height, pitch, format); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* CreateSurfaceRaw(int width, int height, PixelFormatEnum format) => + T.CreateSurfaceRaw(width, height, format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateSystemCursor(SystemCursor id) => T.CreateSystemCursor(id); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Cursor* CreateSystemCursorRaw(SystemCursor id) => T.CreateSystemCursorRaw(id); + + [NativeFunction("SDL3", EntryPoint = "CreateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Texture* CreateTexture( + SDL_Renderer* renderer, + PixelFormatEnum format, + int access, + int w, + int h + ) => T.CreateTexture(renderer, format, access, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateTexture( + Ref renderer, + PixelFormatEnum format, + int access, + int w, + int h + ) => T.CreateTexture(renderer, format, access, w, h); + + [NativeFunction("SDL3", EntryPoint = "CreateTextureFromSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Texture* CreateTextureFromSurface(SDL_Renderer* renderer, Surface* surface) => + T.CreateTextureFromSurface(renderer, surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateTextureFromSurface( + Ref renderer, + Ref surface + ) => T.CreateTextureFromSurface(renderer, surface); + + [NativeFunction("SDL3", EntryPoint = "CreateTextureWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Texture* CreateTextureWithProperties( + SDL_Renderer* renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.CreateTextureWithProperties(renderer, props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateTextureWithProperties( + Ref renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.CreateTextureWithProperties(renderer, props); + + [NativeFunction("SDL3", EntryPoint = "CreateThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Thread* CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + void* data + ) => T.CreateThread(fn, name, data); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + Ref data + ) => T.CreateThread(fn, name, data); + + [NativeFunction("SDL3", EntryPoint = "CreateThreadWithStackSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Thread* CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const size_t")] nuint stacksize, + void* data + ) => T.CreateThreadWithStackSize(fn, name, stacksize, data); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const size_t")] nuint stacksize, + Ref data + ) => T.CreateThreadWithStackSize(fn, name, stacksize, data); + + [return: NativeTypeName("SDL_TLSID")] + [NativeFunction("SDL3", EntryPoint = "CreateTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint CreateTLS() => T.CreateTLS(); + + [NativeFunction("SDL3", EntryPoint = "CreateWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* CreateWindow( + [NativeTypeName("const char *")] sbyte* title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => T.CreateWindow(title, w, h, flags); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateWindow( + [NativeTypeName("const char *")] Ref title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => T.CreateWindow(title, w, h, flags); + + [NativeFunction("SDL3", EntryPoint = "CreateWindowAndRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CreateWindowAndRenderer( + [NativeTypeName("const char *")] sbyte* title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + SDL_Window** window, + SDL_Renderer** renderer + ) => T.CreateWindowAndRenderer(title, width, height, window_flags, window, renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CreateWindowAndRenderer( + [NativeTypeName("const char *")] Ref title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + Ref2D window, + Ref2D renderer + ) => T.CreateWindowAndRenderer(title, width, height, window_flags, window, renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr CreateWindowWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.CreateWindowWithProperties(props); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* CreateWindowWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.CreateWindowWithPropertiesRaw(props); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool CursorVisible() => T.CursorVisible(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int CursorVisibleRaw() => T.CursorVisibleRaw(); + + [NativeFunction("SDL3", EntryPoint = "DateTimeToTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] DateTime* dt, + [NativeTypeName("SDL_Time *")] long* ticks + ) => T.DateTimeToTime(dt, ticks); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] Ref dt, + [NativeTypeName("SDL_Time *")] Ref ticks + ) => T.DateTimeToTime(dt, ticks); + + [NativeFunction("SDL3", EntryPoint = "Delay")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void Delay([NativeTypeName("Uint32")] uint ms) => T.Delay(ms); + + [NativeFunction("SDL3", EntryPoint = "DelayNS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DelayNS([NativeTypeName("Uint64")] ulong ns) => T.DelayNS(ns); + + [NativeFunction("SDL3", EntryPoint = "DelEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => T.DelEventWatch(filter, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DelEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) => T.DelEventWatch(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "DelHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DelHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ) => T.DelHintCallback(name, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DelHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ) => T.DelHintCallback(name, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "DestroyAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyAudioStream(SDL_AudioStream* stream) => T.DestroyAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyAudioStream(Ref stream) => T.DestroyAudioStream(stream); + + [NativeFunction("SDL3", EntryPoint = "DestroyCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyCondition(SDL_Condition* cond) => T.DestroyCondition(cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyCondition(Ref cond) => T.DestroyCondition(cond); + + [NativeFunction("SDL3", EntryPoint = "DestroyCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyCursor(SDL_Cursor* cursor) => T.DestroyCursor(cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyCursor(Ref cursor) => T.DestroyCursor(cursor); + + [NativeFunction("SDL3", EntryPoint = "DestroyHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyHapticEffect(SDL_Haptic* haptic, int effect) => + T.DestroyHapticEffect(haptic, effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyHapticEffect(Ref haptic, int effect) => + T.DestroyHapticEffect(haptic, effect); + + [NativeFunction("SDL3", EntryPoint = "DestroyMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyMutex(SDL_Mutex* mutex) => T.DestroyMutex(mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyMutex(Ref mutex) => T.DestroyMutex(mutex); + + [NativeFunction("SDL3", EntryPoint = "DestroyPalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyPalette(Palette* palette) => T.DestroyPalette(palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyPalette(Ref palette) => T.DestroyPalette(palette); + + [NativeFunction("SDL3", EntryPoint = "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 = "DestroyProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + T.DestroyProperties(props); + + [NativeFunction("SDL3", EntryPoint = "DestroyRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyRenderer(SDL_Renderer* renderer) => T.DestroyRenderer(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyRenderer(Ref renderer) => T.DestroyRenderer(renderer); + + [NativeFunction("SDL3", EntryPoint = "DestroyRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyRWLock(SDL_RWLock* rwlock) => T.DestroyRWLock(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyRWLock(Ref rwlock) => T.DestroyRWLock(rwlock); + + [NativeFunction("SDL3", EntryPoint = "DestroySemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroySemaphore(SDL_Semaphore* sem) => T.DestroySemaphore(sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroySemaphore(Ref sem) => T.DestroySemaphore(sem); + + [NativeFunction("SDL3", EntryPoint = "DestroySurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroySurface(Surface* surface) => T.DestroySurface(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroySurface(Ref surface) => T.DestroySurface(surface); + + [NativeFunction("SDL3", EntryPoint = "DestroyTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyTexture(SDL_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 = "DestroyWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyWindow(SDL_Window* window) => T.DestroyWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DestroyWindow(Ref window) => T.DestroyWindow(window); + + [NativeFunction("SDL3", EntryPoint = "DestroyWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int DestroyWindowSurface(SDL_Window* window) => T.DestroyWindowSurface(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int DestroyWindowSurface(Ref window) => T.DestroyWindowSurface(window); + + [NativeFunction("SDL3", EntryPoint = "DetachThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DetachThread(SDL_Thread* thread) => T.DetachThread(thread); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void DetachThread(Ref thread) => T.DetachThread(thread); + + [NativeFunction("SDL3", EntryPoint = "DetachVirtualJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.DetachVirtualJoystick(instance_id); + + [NativeFunction("SDL3", EntryPoint = "DisableScreenSaver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int DisableScreenSaver() => T.DisableScreenSaver(); + + [NativeFunction("SDL3", EntryPoint = "DuplicateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* DuplicateSurface(Surface* surface) => T.DuplicateSurface(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr DuplicateSurface(Ref surface) => T.DuplicateSurface(surface); + + [return: NativeTypeName("SDL_EGLConfig")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr EGLGetCurrentEGLConfig() => T.EGLGetCurrentEGLConfig(); + + [return: NativeTypeName("SDL_EGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* EGLGetCurrentEGLConfigRaw() => T.EGLGetCurrentEGLConfigRaw(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr EGLGetCurrentEGLDisplay() => T.EGLGetCurrentEGLDisplay(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* EGLGetCurrentEGLDisplayRaw() => T.EGLGetCurrentEGLDisplayRaw(); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "EGLGetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ) => T.EGLGetProcAddress(proc); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) => T.EGLGetProcAddress(proc); + + [return: NativeTypeName("SDL_EGLSurface")] + [NativeFunction("SDL3", EntryPoint = "EGLGetWindowEGLSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* EGLGetWindowEGLSurface(SDL_Window* window) => T.EGLGetWindowEGLSurface(window); + + [return: NativeTypeName("SDL_EGLSurface")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr EGLGetWindowEGLSurface(Ref window) => + T.EGLGetWindowEGLSurface(window); + + [NativeFunction("SDL3", EntryPoint = "EGLSetEGLAttributeCallbacks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void EGLSetEGLAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + delegate* unmanaged platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] + delegate* unmanaged surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] + delegate* unmanaged contextAttribCallback + ) => + T.EGLSetEGLAttributeCallbacks( + platformAttribCallback, + surfaceAttribCallback, + contextAttribCallback + ); + + [NativeFunction("SDL3", EntryPoint = "EnableScreenSaver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int EnableScreenSaver() => T.EnableScreenSaver(); + + [NativeFunction("SDL3", EntryPoint = "EnumerateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int EnumerateDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ) => T.EnumerateDirectory(path, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int EnumerateDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) => T.EnumerateDirectory(path, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "EnumerateProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + void* userdata + ) => T.EnumerateProperties(props, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + Ref userdata + ) => T.EnumerateProperties(props, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "EnumerateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int EnumerateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ) => T.EnumerateStorageDirectory(storage, path, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int EnumerateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) => T.EnumerateStorageDirectory(storage, path, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "Error")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int Error(Errorcode code) => T.Error(code); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => + T.EventEnabled(type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int EventEnabledRaw([NativeTypeName("Uint32")] uint type) => T.EventEnabledRaw(type); + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FillSurfaceRect( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("Uint32")] uint color + ) => T.FillSurfaceRect(dst, rect, color); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FillSurfaceRect( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("Uint32")] uint color + ) => T.FillSurfaceRect(dst, rect, color); + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FillSurfaceRects( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int count, + [NativeTypeName("Uint32")] uint color + ) => T.FillSurfaceRects(dst, rects, count, color); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FillSurfaceRects( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int count, + [NativeTypeName("Uint32")] uint color + ) => T.FillSurfaceRects(dst, rects, count, color); + + [NativeFunction("SDL3", EntryPoint = "FilterEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => T.FilterEvents(filter, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FilterEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) => T.FilterEvents(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "FlashWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FlashWindow(SDL_Window* window, FlashOperation operation) => + T.FlashWindow(window, operation); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FlashWindow(Ref window, FlashOperation operation) => + T.FlashWindow(window, operation); + + [NativeFunction("SDL3", EntryPoint = "FlipSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FlipSurface(Surface* surface, FlipMode flip) => T.FlipSurface(surface, flip); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FlipSurface(Ref surface, FlipMode flip) => T.FlipSurface(surface, flip); + + [NativeFunction("SDL3", EntryPoint = "FlushAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FlushAudioStream(SDL_AudioStream* stream) => T.FlushAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FlushAudioStream(Ref stream) => T.FlushAudioStream(stream); + + [NativeFunction("SDL3", EntryPoint = "FlushEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void FlushEvent([NativeTypeName("Uint32")] uint type) => T.FlushEvent(type); + + [NativeFunction("SDL3", EntryPoint = "FlushEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void FlushEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => T.FlushEvents(minType, maxType); + + [NativeFunction("SDL3", EntryPoint = "FlushRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FlushRenderer(SDL_Renderer* renderer) => T.FlushRenderer(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int FlushRenderer(Ref renderer) => T.FlushRenderer(renderer); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GamepadConnected(SDL_Gamepad* gamepad) => T.GamepadConnected(gamepad); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GamepadConnected(Ref gamepad) => + T.GamepadConnected(gamepad); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GamepadEventsEnabled() => T.GamepadEventsEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GamepadEventsEnabledRaw() => T.GamepadEventsEnabledRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GamepadHasAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + T.GamepadHasAxis(gamepad, axis); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GamepadHasAxis(Ref gamepad, GamepadAxis axis) => + T.GamepadHasAxis(gamepad, axis); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GamepadHasButton(SDL_Gamepad* gamepad, GamepadButton button) => + T.GamepadHasButton(gamepad, button); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GamepadHasButton(Ref gamepad, GamepadButton button) => + T.GamepadHasButton(gamepad, button); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GamepadHasSensor(SDL_Gamepad* gamepad, SensorType type) => + T.GamepadHasSensor(gamepad, type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GamepadHasSensor(Ref gamepad, SensorType type) => + T.GamepadHasSensor(gamepad, type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GamepadSensorEnabled(SDL_Gamepad* gamepad, SensorType type) => + T.GamepadSensorEnabled(gamepad, type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GamepadSensorEnabled(Ref gamepad, SensorType type) => + T.GamepadSensorEnabled(gamepad, type); + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public delegate* unmanaged GetAssertionHandler( + void** puserdata + ) => T.GetAssertionHandler(puserdata); + + [return: NativeTypeName("SDL_AssertionHandler")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public delegate* unmanaged GetAssertionHandler( + Ref2D puserdata + ) => T.GetAssertionHandler(puserdata); + + [return: NativeTypeName("const SDL_AssertData *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAssertionReport() => T.GetAssertionReport(); + + [return: NativeTypeName("const SDL_AssertData *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public AssertData* GetAssertionReportRaw() => T.GetAssertionReportRaw(); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioCaptureDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetAudioCaptureDevices(int* count) => T.GetAudioCaptureDevices(count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAudioCaptureDevices(Ref count) => T.GetAudioCaptureDevices(count); + + [NativeFunction("SDL3", EntryPoint = "GetAudioDeviceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioSpec* spec, + int* sample_frames + ) => T.GetAudioDeviceFormat(devid, spec, sample_frames); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref spec, + Ref sample_frames + ) => T.GetAudioDeviceFormat(devid, spec, sample_frames); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.GetAudioDeviceName(devid); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetAudioDeviceNameRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + T.GetAudioDeviceNameRaw(devid); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAudioDriver(int index) => T.GetAudioDriver(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetAudioDriverRaw(int index) => T.GetAudioDriverRaw(index); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioOutputDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetAudioOutputDevices(int* count) => T.GetAudioOutputDevices(count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetAudioOutputDevices(Ref count) => T.GetAudioOutputDevices(count); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamAvailable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioStreamAvailable(SDL_AudioStream* stream) => + T.GetAudioStreamAvailable(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioStreamAvailable(Ref stream) => + T.GetAudioStreamAvailable(stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioStreamData(SDL_AudioStream* stream, void* buf, int len) => + T.GetAudioStreamData(stream, buf, len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioStreamData(Ref stream, Ref buf, int len) => + T.GetAudioStreamData(stream, buf, len); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetAudioStreamDevice(SDL_AudioStream* stream) => T.GetAudioStreamDevice(stream); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetAudioStreamDevice(Ref stream) => + T.GetAudioStreamDevice(stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioStreamFormat( + SDL_AudioStream* stream, + AudioSpec* src_spec, + AudioSpec* dst_spec + ) => T.GetAudioStreamFormat(stream, src_spec, dst_spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioStreamFormat( + Ref stream, + Ref src_spec, + Ref dst_spec + ) => T.GetAudioStreamFormat(stream, src_spec, dst_spec); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetAudioStreamFrequencyRatio(SDL_AudioStream* stream) => + T.GetAudioStreamFrequencyRatio(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetAudioStreamFrequencyRatio(Ref stream) => + T.GetAudioStreamFrequencyRatio(stream); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetAudioStreamProperties(SDL_AudioStream* stream) => + T.GetAudioStreamProperties(stream); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetAudioStreamProperties(Ref stream) => + T.GetAudioStreamProperties(stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamQueued")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioStreamQueued(SDL_AudioStream* stream) => T.GetAudioStreamQueued(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamQueued")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetAudioStreamQueued(Ref stream) => + T.GetAudioStreamQueued(stream); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetBasePath() => T.GetBasePath(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetBasePathRaw() => T.GetBasePathRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ) => T.GetBooleanProperty(props, name, default_value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ) => T.GetBooleanProperty(props, name, default_value); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCameraDeviceName( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id + ) => T.GetCameraDeviceName(instance_id); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetCameraDeviceNameRaw( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id + ) => T.GetCameraDeviceNameRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetCameraDevicePosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public CameraPosition GetCameraDevicePosition( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id + ) => T.GetCameraDevicePosition(instance_id); + + [return: NativeTypeName("SDL_CameraDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetCameraDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetCameraDevices(int* count) => T.GetCameraDevices(count); + + [return: NativeTypeName("SDL_CameraDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCameraDevices(Ref count) => T.GetCameraDevices(count); + + [NativeFunction("SDL3", EntryPoint = "GetCameraDeviceSupportedFormats")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public CameraSpec* GetCameraDeviceSupportedFormats( + [NativeTypeName("SDL_CameraDeviceID")] uint devid, + int* count + ) => T.GetCameraDeviceSupportedFormats(devid, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCameraDeviceSupportedFormats( + [NativeTypeName("SDL_CameraDeviceID")] uint devid, + Ref count + ) => T.GetCameraDeviceSupportedFormats(devid, count); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCameraDriver(int index) => T.GetCameraDriver(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetCameraDriverRaw(int index) => T.GetCameraDriverRaw(index); + + [NativeFunction("SDL3", EntryPoint = "GetCameraFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCameraFormat(SDL_Camera* camera, CameraSpec* spec) => + T.GetCameraFormat(camera, spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCameraFormat(Ref camera, Ref spec) => + T.GetCameraFormat(camera, spec); + + [return: NativeTypeName("SDL_CameraDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetCameraInstanceID(SDL_Camera* camera) => T.GetCameraInstanceID(camera); + + [return: NativeTypeName("SDL_CameraDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetCameraInstanceID(Ref camera) => T.GetCameraInstanceID(camera); + + [NativeFunction("SDL3", EntryPoint = "GetCameraPermissionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCameraPermissionState(SDL_Camera* camera) => + T.GetCameraPermissionState(camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCameraPermissionState(Ref camera) => + T.GetCameraPermissionState(camera); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetCameraProperties(SDL_Camera* camera) => T.GetCameraProperties(camera); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetCameraProperties(Ref camera) => T.GetCameraProperties(camera); + + [NativeFunction("SDL3", EntryPoint = "GetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* GetClipboardData( + [NativeTypeName("const char *")] sbyte* mime_type, + [NativeTypeName("size_t *")] nuint* size + ) => T.GetClipboardData(mime_type, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetClipboardData( + [NativeTypeName("const char *")] Ref mime_type, + [NativeTypeName("size_t *")] Ref size + ) => T.GetClipboardData(mime_type, size); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetClipboardText() => T.GetClipboardText(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetClipboardTextRaw() => T.GetClipboardTextRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetClosestFullscreenDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public DisplayMode* GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] int include_high_density_modes + ) => + T.GetClosestFullscreenDisplayMode( + displayID, + w, + h, + refresh_rate, + include_high_density_modes + ); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes + ) => + T.GetClosestFullscreenDisplayMode( + displayID, + w, + h, + refresh_rate, + include_high_density_modes + ); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCacheLineSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCPUCacheLineSize() => T.GetCPUCacheLineSize(); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCount")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCPUCount() => T.GetCPUCount(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCurrentAudioDriver() => T.GetCurrentAudioDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetCurrentAudioDriverRaw() => T.GetCurrentAudioDriverRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCurrentCameraDriver() => T.GetCurrentCameraDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetCurrentCameraDriverRaw() => T.GetCurrentCameraDriverRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCurrentDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => T.GetCurrentDisplayMode(displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public DisplayMode* GetCurrentDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => T.GetCurrentDisplayModeRaw(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentDisplayOrientation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public DisplayOrientation GetCurrentDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => T.GetCurrentDisplayOrientation(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCurrentRenderOutputSize(SDL_Renderer* renderer, int* w, int* h) => + T.GetCurrentRenderOutputSize(renderer, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCurrentRenderOutputSize(Ref renderer, Ref w, Ref h) => + T.GetCurrentRenderOutputSize(renderer, w, h); + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetCurrentThreadID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetCurrentThreadID() => T.GetCurrentThreadID(); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => + T.GetCurrentTime(ticks); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) => + T.GetCurrentTime(ticks); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCurrentVideoDriver() => T.GetCurrentVideoDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetCurrentVideoDriverRaw() => T.GetCurrentVideoDriverRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetCursor() => T.GetCursor(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Cursor* GetCursorRaw() => T.GetCursorRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfWeek")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetDayOfWeek(int year, int month, int day) => T.GetDayOfWeek(year, month, day); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfYear")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetDayOfYear(int year, int month, int day) => T.GetDayOfYear(year, month, day); + + [NativeFunction("SDL3", EntryPoint = "GetDaysInMonth")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetDaysInMonth(int year, int month) => T.GetDaysInMonth(year, month); + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetDefaultAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public delegate* unmanaged GetDefaultAssertionHandler() => + T.GetDefaultAssertionHandler(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetDefaultCursor() => T.GetDefaultCursor(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Cursor* GetDefaultCursorRaw() => T.GetDefaultCursorRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetDesktopDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => T.GetDesktopDisplayMode(displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public DisplayMode* GetDesktopDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => T.GetDesktopDisplayModeRaw(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => + T.GetDisplayBounds(displayID, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) => T.GetDisplayBounds(displayID, rect); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayContentScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uint displayID) => + T.GetDisplayContentScale(displayID); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Point* point) => + T.GetDisplayForPoint(point); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Ref point) => + T.GetDisplayForPoint(point); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => + T.GetDisplayForRect(rect); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref rect) => + T.GetDisplayForRect(rect); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetDisplayForWindow(SDL_Window* window) => T.GetDisplayForWindow(window); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetDisplayForWindow(Ref window) => T.GetDisplayForWindow(window); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint displayID) => + T.GetDisplayName(displayID); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetDisplayNameRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => + T.GetDisplayNameRaw(displayID); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayID) => + T.GetDisplayProperties(displayID); + + [return: NativeTypeName("SDL_DisplayID *")] + [NativeFunction("SDL3", EntryPoint = "GetDisplays")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetDisplays(int* count) => T.GetDisplays(count); + + [return: NativeTypeName("SDL_DisplayID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplays")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetDisplays(Ref count) => T.GetDisplays(count); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayUsableBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ) => T.GetDisplayUsableBounds(displayID, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) => T.GetDisplayUsableBounds(displayID, rect); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetError() => T.GetError(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetErrorRaw() => T.GetErrorRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + void** userdata + ) => T.GetEventFilter(filter, userdata); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + Ref2D userdata + ) => T.GetEventFilter(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "GetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float default_value + ) => T.GetFloatProperty(props, name, default_value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float default_value + ) => T.GetFloatProperty(props, name, default_value); + + [return: NativeTypeName("const SDL_DisplayMode **")] + [NativeFunction("SDL3", EntryPoint = "GetFullscreenDisplayModes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public DisplayMode** GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int* count + ) => T.GetFullscreenDisplayModes(displayID, count); + + [return: NativeTypeName("const SDL_DisplayMode **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr2D GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref count + ) => T.GetFullscreenDisplayModes(displayID, count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadAppleSFSymbolsNameForAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + T.GetGamepadAppleSFSymbolsNameForAxis(gamepad, axis); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadAppleSFSymbolsNameForAxis( + Ref gamepad, + GamepadAxis axis + ) => T.GetGamepadAppleSFSymbolsNameForAxis(gamepad, axis); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadAppleSFSymbolsNameForButton( + SDL_Gamepad* gamepad, + GamepadButton button + ) => T.GetGamepadAppleSFSymbolsNameForButton(gamepad, button); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadAppleSFSymbolsNameForButton( + Ref gamepad, + GamepadButton button + ) => T.GetGamepadAppleSFSymbolsNameForButton(gamepad, button); + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public short GetGamepadAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + T.GetGamepadAxis(gamepad, axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public short GetGamepadAxis(Ref gamepad, GamepadAxis axis) => + T.GetGamepadAxis(gamepad, axis); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxisFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadAxis GetGamepadAxisFromString([NativeTypeName("const char *")] sbyte* str) => + T.GetGamepadAxisFromString(str); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxisFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadAxis GetGamepadAxisFromString( + [NativeTypeName("const char *")] Ref str + ) => T.GetGamepadAxisFromString(str); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadBindings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadBinding** GetGamepadBindings(SDL_Gamepad* gamepad, int* count) => + T.GetGamepadBindings(gamepad, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadBindings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr2D GetGamepadBindings(Ref gamepad, Ref count) => + T.GetGamepadBindings(gamepad, count); + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetGamepadButton(SDL_Gamepad* gamepad, GamepadButton button) => + T.GetGamepadButton(gamepad, button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetGamepadButton(Ref gamepad, GamepadButton button) => + T.GetGamepadButton(gamepad, button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] sbyte* str + ) => T.GetGamepadButtonFromString(str); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] Ref str + ) => T.GetGamepadButtonFromString(str); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadButtonLabel GetGamepadButtonLabel( + SDL_Gamepad* gamepad, + GamepadButton button + ) => T.GetGamepadButtonLabel(gamepad, button); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonLabel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadButtonLabel GetGamepadButtonLabel( + Ref gamepad, + GamepadButton button + ) => T.GetGamepadButtonLabel(gamepad, button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabelForType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadButtonLabel GetGamepadButtonLabelForType( + GamepadType type, + GamepadButton button + ) => T.GetGamepadButtonLabelForType(type, button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public JoystickConnectionState GetGamepadConnectionState(SDL_Gamepad* gamepad) => + T.GetGamepadConnectionState(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public JoystickConnectionState GetGamepadConnectionState(Ref gamepad) => + T.GetGamepadConnectionState(gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadFirmwareVersion(SDL_Gamepad* gamepad) => + T.GetGamepadFirmwareVersion(gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadFirmwareVersion(Ref gamepad) => + T.GetGamepadFirmwareVersion(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadFromInstanceID(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Gamepad* GetGamepadFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadFromInstanceIDRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadFromPlayerIndex(int player_index) => + T.GetGamepadFromPlayerIndex(player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Gamepad* GetGamepadFromPlayerIndexRaw(int player_index) => + T.GetGamepadFromPlayerIndexRaw(player_index); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceGuid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Guid GetGamepadInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.GetGamepadInstanceGuid(instance_id); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetGamepadInstanceID(SDL_Gamepad* gamepad) => T.GetGamepadInstanceID(gamepad); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetGamepadInstanceID(Ref gamepad) => + T.GetGamepadInstanceID(gamepad); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadInstanceMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadInstanceMapping(instance_id); + + [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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadInstanceNameRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadInstanceNameRaw(instance_id); + + [return: NativeTypeName("const 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 = "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 = "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 = "GetGamepadInstanceProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadInstanceProductVersion( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadInstanceProductVersion(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetGamepadInstanceVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadInstanceVendor( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetGamepadInstanceVendor(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Joystick* GetGamepadJoystick(SDL_Gamepad* gamepad) => + T.GetGamepadJoystick(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadJoystick(Ref gamepad) => + T.GetGamepadJoystick(gamepad); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadMapping(SDL_Gamepad* gamepad) => T.GetGamepadMapping(gamepad); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadMapping(Ref gamepad) => + T.GetGamepadMapping(gamepad); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadMappingForGuid( + [NativeTypeName("SDL_JoystickGUID")] Guid guid + ) => T.GetGamepadMappingForGuid(guid); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadMappingForGuidRaw([NativeTypeName("SDL_JoystickGUID")] Guid guid) => + T.GetGamepadMappingForGuidRaw(guid); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMappings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte** GetGamepadMappings(int* count) => T.GetGamepadMappings(count); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr2D GetGamepadMappings(Ref count) => T.GetGamepadMappings(count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadName(SDL_Gamepad* gamepad) => T.GetGamepadName(gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadName(Ref gamepad) => T.GetGamepadName(gamepad); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadPath(SDL_Gamepad* gamepad) => T.GetGamepadPath(gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadPath(Ref gamepad) => T.GetGamepadPath(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetGamepadPlayerIndex(SDL_Gamepad* gamepad) => T.GetGamepadPlayerIndex(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetGamepadPlayerIndex(Ref gamepad) => + T.GetGamepadPlayerIndex(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PowerState GetGamepadPowerInfo(SDL_Gamepad* gamepad, int* percent) => + T.GetGamepadPowerInfo(gamepad, percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PowerState GetGamepadPowerInfo(Ref gamepad, Ref percent) => + T.GetGamepadPowerInfo(gamepad, percent); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadProduct(SDL_Gamepad* gamepad) => T.GetGamepadProduct(gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadProduct(Ref gamepad) => T.GetGamepadProduct(gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadProductVersion(SDL_Gamepad* gamepad) => + T.GetGamepadProductVersion(gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadProductVersion(Ref gamepad) => + T.GetGamepadProductVersion(gamepad); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetGamepadProperties(SDL_Gamepad* gamepad) => T.GetGamepadProperties(gamepad); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetGamepadProperties(Ref gamepad) => + T.GetGamepadProperties(gamepad); + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetGamepads(int* count) => T.GetGamepads(count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepads(Ref count) => T.GetGamepads(count); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetGamepadSensorData( + SDL_Gamepad* gamepad, + SensorType type, + float* data, + int num_values + ) => T.GetGamepadSensorData(gamepad, type, data, num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetGamepadSensorData( + Ref gamepad, + SensorType type, + Ref data, + int num_values + ) => T.GetGamepadSensorData(gamepad, type, data, num_values); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorDataRate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetGamepadSensorDataRate(SDL_Gamepad* gamepad, SensorType type) => + T.GetGamepadSensorDataRate(gamepad, type); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorDataRate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetGamepadSensorDataRate(Ref gamepad, SensorType type) => + T.GetGamepadSensorDataRate(gamepad, type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadSerial(SDL_Gamepad* gamepad) => T.GetGamepadSerial(gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadSerial(Ref gamepad) => T.GetGamepadSerial(gamepad); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSteamHandle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetGamepadSteamHandle(SDL_Gamepad* gamepad) => + T.GetGamepadSteamHandle(gamepad); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSteamHandle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetGamepadSteamHandle(Ref gamepad) => + T.GetGamepadSteamHandle(gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadStringForAxis(GamepadAxis axis) => + T.GetGamepadStringForAxis(axis); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadStringForAxisRaw(GamepadAxis axis) => + T.GetGamepadStringForAxisRaw(axis); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadStringForButton(GamepadButton button) => + T.GetGamepadStringForButton(button); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadStringForButtonRaw(GamepadButton button) => + T.GetGamepadStringForButtonRaw(button); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGamepadStringForType(GamepadType type) => + T.GetGamepadStringForType(type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetGamepadStringForTypeRaw(GamepadType type) => + T.GetGamepadStringForTypeRaw(type); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTouchpadFinger")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetGamepadTouchpadFinger( + SDL_Gamepad* gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] byte* state, + float* x, + float* y, + float* pressure + ) => T.GetGamepadTouchpadFinger(gamepad, touchpad, finger, state, x, y, pressure); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetGamepadTouchpadFinger( + Ref gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] Ref state, + Ref x, + Ref y, + Ref pressure + ) => T.GetGamepadTouchpadFinger(gamepad, touchpad, finger, state, x, y, pressure); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadType GetGamepadType(SDL_Gamepad* gamepad) => T.GetGamepadType(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadType GetGamepadType(Ref gamepad) => T.GetGamepadType(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTypeFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadType GetGamepadTypeFromString([NativeTypeName("const char *")] sbyte* str) => + T.GetGamepadTypeFromString(str); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadType GetGamepadTypeFromString( + [NativeTypeName("const char *")] Ref str + ) => T.GetGamepadTypeFromString(str); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadVendor(SDL_Gamepad* gamepad) => T.GetGamepadVendor(gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetGamepadVendor(Ref gamepad) => T.GetGamepadVendor(gamepad); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetGlobalMouseState(float* x, float* y) => T.GetGlobalMouseState(x, y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetGlobalMouseState(Ref x, Ref y) => T.GetGlobalMouseState(x, y); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetGlobalProperties() => T.GetGlobalProperties(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetGrabbedWindow() => T.GetGrabbedWindow(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* GetGrabbedWindowRaw() => T.GetGrabbedWindowRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetHapticEffectStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetHapticEffectStatus(SDL_Haptic* haptic, int effect) => + T.GetHapticEffectStatus(haptic, effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetHapticEffectStatus(Ref haptic, int effect) => + T.GetHapticEffectStatus(haptic, effect); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetHapticFeatures")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetHapticFeatures(SDL_Haptic* haptic) => T.GetHapticFeatures(haptic); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetHapticFeatures(Ref haptic) => T.GetHapticFeatures(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetHapticFromInstanceID( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => T.GetHapticFromInstanceID(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Haptic* GetHapticFromInstanceIDRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => T.GetHapticFromInstanceIDRaw(instance_id); + + [return: NativeTypeName("SDL_HapticID")] + [NativeFunction("SDL3", EntryPoint = "GetHapticInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetHapticInstanceID(SDL_Haptic* haptic) => T.GetHapticInstanceID(haptic); + + [return: NativeTypeName("SDL_HapticID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetHapticInstanceID(Ref haptic) => T.GetHapticInstanceID(haptic); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetHapticInstanceName( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => T.GetHapticInstanceName(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetHapticInstanceNameRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => + T.GetHapticInstanceNameRaw(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHapticName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetHapticName(SDL_Haptic* haptic) => T.GetHapticName(haptic); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetHapticName(Ref haptic) => T.GetHapticName(haptic); + + [return: NativeTypeName("SDL_HapticID *")] + [NativeFunction("SDL3", EntryPoint = "GetHaptics")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetHaptics(int* count) => T.GetHaptics(count); + + [return: NativeTypeName("SDL_HapticID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHaptics")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetHaptics(Ref count) => T.GetHaptics(count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetHint([NativeTypeName("const char *")] sbyte* name) => T.GetHint(name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetHint([NativeTypeName("const char *")] Ref name) => + T.GetHint(name); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetHintBoolean")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetHintBoolean( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ) => T.GetHintBoolean(name, default_value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetHintBoolean( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ) => T.GetHintBoolean(name, default_value); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetIOProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetIOProperties(SDL_IOStream* context) => T.GetIOProperties(context); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetIOProperties(Ref context) => T.GetIOProperties(context); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetIOSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public long GetIOSize(SDL_IOStream* context) => T.GetIOSize(context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public long GetIOSize(Ref context) => T.GetIOSize(context); + + [NativeFunction("SDL3", EntryPoint = "GetIOStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public IOStatus GetIOStatus(SDL_IOStream* context) => T.GetIOStatus(context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public IOStatus GetIOStatus(Ref context) => T.GetIOStatus(context); + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public short GetJoystickAxis(SDL_Joystick* joystick, int axis) => + T.GetJoystickAxis(joystick, axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public short GetJoystickAxis(Ref joystick, int axis) => + T.GetJoystickAxis(joystick, axis); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxisInitialState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetJoystickAxisInitialState( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16 *")] short* state + ) => T.GetJoystickAxisInitialState(joystick, axis, state); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetJoystickAxisInitialState( + Ref joystick, + int axis, + [NativeTypeName("Sint16 *")] Ref state + ) => T.GetJoystickAxisInitialState(joystick, axis, state); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickBall")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetJoystickBall(SDL_Joystick* joystick, int ball, int* dx, int* dy) => + T.GetJoystickBall(joystick, ball, dx, dy); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetJoystickBall( + Ref joystick, + int ball, + Ref dx, + Ref dy + ) => T.GetJoystickBall(joystick, ball, dx, dy); + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetJoystickButton(SDL_Joystick* joystick, int button) => + T.GetJoystickButton(joystick, button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetJoystickButton(Ref joystick, int button) => + T.GetJoystickButton(joystick, button); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public JoystickConnectionState GetJoystickConnectionState(SDL_Joystick* joystick) => + T.GetJoystickConnectionState(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public JoystickConnectionState GetJoystickConnectionState(Ref joystick) => + T.GetJoystickConnectionState(joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickFirmwareVersion(SDL_Joystick* joystick) => + T.GetJoystickFirmwareVersion(joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickFirmwareVersion(Ref joystick) => + T.GetJoystickFirmwareVersion(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetJoystickFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickFromInstanceID(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Joystick* GetJoystickFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickFromInstanceIDRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetJoystickFromPlayerIndex(int player_index) => + T.GetJoystickFromPlayerIndex(player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Joystick* GetJoystickFromPlayerIndexRaw(int player_index) => + T.GetJoystickFromPlayerIndexRaw(player_index); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickGuid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Guid GetJoystickGuid(SDL_Joystick* joystick) => T.GetJoystickGuid(joystick); + + [return: NativeTypeName("SDL_JoystickGUID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Guid GetJoystickGuid(Ref joystick) => T.GetJoystickGuid(joystick); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Guid GetJoystickGuidFromString( + [NativeTypeName("const char *")] Ref pchGUID + ) => T.GetJoystickGuidFromString(pchGUID); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickGuidInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] ushort* vendor, + [NativeTypeName("Uint16 *")] ushort* product, + [NativeTypeName("Uint16 *")] ushort* version, + [NativeTypeName("Uint16 *")] ushort* crc16 + ) => T.GetJoystickGuidInfo(guid, vendor, product, version, crc16); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] 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 = "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 = "GetJoystickHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetJoystickHat(SDL_Joystick* joystick, int hat) => + T.GetJoystickHat(joystick, hat); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte GetJoystickHat(Ref joystick, int hat) => + T.GetJoystickHat(joystick, hat); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetJoystickInstanceID(SDL_Joystick* joystick) => + T.GetJoystickInstanceID(joystick); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetJoystickInstanceID(Ref joystick) => + T.GetJoystickInstanceID(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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetJoystickInstanceNameRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickInstanceNameRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetJoystickInstancePath( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickInstancePath(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 = "GetJoystickInstancePlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetJoystickInstancePlayerIndex( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickInstancePlayerIndex(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickInstanceProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickInstanceProductVersion( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickInstanceProductVersion(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickInstanceVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickInstanceVendor( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetJoystickInstanceVendor(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetJoystickName(SDL_Joystick* joystick) => T.GetJoystickName(joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetJoystickName(Ref joystick) => + T.GetJoystickName(joystick); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetJoystickPath(SDL_Joystick* joystick) => T.GetJoystickPath(joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetJoystickPath(Ref joystick) => + T.GetJoystickPath(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetJoystickPlayerIndex(SDL_Joystick* joystick) => + T.GetJoystickPlayerIndex(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetJoystickPlayerIndex(Ref joystick) => + T.GetJoystickPlayerIndex(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PowerState GetJoystickPowerInfo(SDL_Joystick* joystick, int* percent) => + T.GetJoystickPowerInfo(joystick, percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PowerState GetJoystickPowerInfo(Ref joystick, Ref percent) => + T.GetJoystickPowerInfo(joystick, percent); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickProduct(SDL_Joystick* joystick) => T.GetJoystickProduct(joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickProduct(Ref joystick) => + T.GetJoystickProduct(joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickProductVersion(SDL_Joystick* joystick) => + T.GetJoystickProductVersion(joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickProductVersion(Ref joystick) => + T.GetJoystickProductVersion(joystick); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetJoystickProperties(SDL_Joystick* joystick) => + T.GetJoystickProperties(joystick); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetJoystickProperties(Ref joystick) => + T.GetJoystickProperties(joystick); + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetJoysticks(int* count) => T.GetJoysticks(count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetJoysticks(Ref count) => T.GetJoysticks(count); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetJoystickSerial(SDL_Joystick* joystick) => T.GetJoystickSerial(joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetJoystickSerial(Ref joystick) => + T.GetJoystickSerial(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public JoystickType GetJoystickType(SDL_Joystick* joystick) => T.GetJoystickType(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public JoystickType GetJoystickType(Ref joystick) => + T.GetJoystickType(joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickVendor(SDL_Joystick* joystick) => T.GetJoystickVendor(joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ushort GetJoystickVendor(Ref joystick) => + T.GetJoystickVendor(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetKeyboardFocus() => T.GetKeyboardFocus(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* GetKeyboardFocusRaw() => T.GetKeyboardFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetKeyboardInstanceName( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ) => T.GetKeyboardInstanceName(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetKeyboardInstanceNameRaw( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ) => T.GetKeyboardInstanceNameRaw(instance_id); + + [return: NativeTypeName("SDL_KeyboardID *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboards")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetKeyboards(int* count) => T.GetKeyboards(count); + + [return: NativeTypeName("SDL_KeyboardID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetKeyboards(Ref count) => T.GetKeyboards(count); + + [return: NativeTypeName("const Uint8 *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboardState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public byte* GetKeyboardState(int* numkeys) => T.GetKeyboardState(numkeys); + + [return: NativeTypeName("const Uint8 *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetKeyboardState(Ref numkeys) => T.GetKeyboardState(numkeys); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => + T.GetKeyFromName(name); + + [return: NativeTypeName("SDL_Keycode")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetKeyFromName([NativeTypeName("const char *")] Ref name) => + T.GetKeyFromName(name); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromScancode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetKeyFromScancode(Scancode scancode) => T.GetKeyFromScancode(scancode); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int 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) => + T.GetKeyNameRaw(key); + + [NativeFunction("SDL3", EntryPoint = "GetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + void** userdata + ) => T.GetLogOutputFunction(callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + Ref2D userdata + ) => T.GetLogOutputFunction(callback, userdata); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetMasksForPixelFormatEnum")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetMasksForPixelFormatEnum( + PixelFormatEnum 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); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetMasksForPixelFormatEnum( + PixelFormatEnum 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); + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetMaxHapticEffects(SDL_Haptic* haptic) => T.GetMaxHapticEffects(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetMaxHapticEffects(Ref haptic) => T.GetMaxHapticEffects(haptic); + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffectsPlaying")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetMaxHapticEffectsPlaying(SDL_Haptic* haptic) => + T.GetMaxHapticEffectsPlaying(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffectsPlaying")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetMaxHapticEffectsPlaying(Ref haptic) => + T.GetMaxHapticEffectsPlaying(haptic); + + [return: NativeTypeName("SDL_MouseID *")] + [NativeFunction("SDL3", EntryPoint = "GetMice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetMice(int* count) => T.GetMice(count); + + [return: NativeTypeName("SDL_MouseID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetMice(Ref count) => T.GetMice(count); + + [NativeFunction("SDL3", EntryPoint = "GetModState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Keymod GetModState() => T.GetModState(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetMouseFocus() => T.GetMouseFocus(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* GetMouseFocusRaw() => T.GetMouseFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetMouseInstanceName([NativeTypeName("SDL_MouseID")] uint instance_id) => + T.GetMouseInstanceName(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetMouseInstanceNameRaw([NativeTypeName("SDL_MouseID")] uint instance_id) => + T.GetMouseInstanceNameRaw(instance_id); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetMouseState(float* x, float* y) => T.GetMouseState(x, y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetMouseState(Ref x, Ref y) => T.GetMouseState(x, y); + + [NativeFunction("SDL3", EntryPoint = "GetNaturalDisplayOrientation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public DisplayOrientation GetNaturalDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => T.GetNaturalDisplayOrientation(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetNumAudioDrivers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumAudioDrivers() => T.GetNumAudioDrivers(); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long default_value + ) => T.GetNumberProperty(props, name, default_value); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long default_value + ) => T.GetNumberProperty(props, name, default_value); + + [NativeFunction("SDL3", EntryPoint = "GetNumCameraDrivers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumCameraDrivers() => T.GetNumCameraDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpadFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumGamepadTouchpadFingers(SDL_Gamepad* gamepad, int touchpad) => + T.GetNumGamepadTouchpadFingers(gamepad, touchpad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpadFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumGamepadTouchpadFingers(Ref gamepad, int touchpad) => + T.GetNumGamepadTouchpadFingers(gamepad, touchpad); + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumGamepadTouchpads(SDL_Gamepad* gamepad) => + T.GetNumGamepadTouchpads(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumGamepadTouchpads(Ref gamepad) => + T.GetNumGamepadTouchpads(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetNumHapticAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumHapticAxes(SDL_Haptic* haptic) => T.GetNumHapticAxes(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumHapticAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumHapticAxes(Ref haptic) => T.GetNumHapticAxes(haptic); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumJoystickAxes(SDL_Joystick* joystick) => T.GetNumJoystickAxes(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumJoystickAxes(Ref joystick) => T.GetNumJoystickAxes(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickBalls")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumJoystickBalls(SDL_Joystick* joystick) => T.GetNumJoystickBalls(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickBalls")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumJoystickBalls(Ref joystick) => + T.GetNumJoystickBalls(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickButtons")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumJoystickButtons(SDL_Joystick* joystick) => + T.GetNumJoystickButtons(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickButtons")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumJoystickButtons(Ref joystick) => + T.GetNumJoystickButtons(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickHats")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumJoystickHats(SDL_Joystick* joystick) => T.GetNumJoystickHats(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickHats")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumJoystickHats(Ref joystick) => T.GetNumJoystickHats(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumRenderDrivers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumRenderDrivers() => T.GetNumRenderDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetNumVideoDrivers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetNumVideoDrivers() => T.GetNumVideoDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetPathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => + T.GetPathInfo(path, info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetPathInfo( + [NativeTypeName("const char *")] Ref path, + Ref info + ) => T.GetPathInfo(path, info); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "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 = "GetPenFromGuid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetPenFromGuid(Guid guid) => T.GetPenFromGuid(guid); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetPens")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetPens(int* count) => T.GetPens(count); + + [return: NativeTypeName("SDL_PenID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPens")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetPens(Ref count) => T.GetPens(count); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetPenStatus")] + [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); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPenStatus")] + [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); + + [NativeFunction("SDL3", EntryPoint = "GetPenType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id) => + T.GetPenType(instance_id); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceCounter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetPerformanceCounter() => T.GetPerformanceCounter(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceFrequency")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetPerformanceFrequency() => T.GetPerformanceFrequency(); + + [NativeFunction("SDL3", EntryPoint = "GetPixelFormatEnumForMasks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PixelFormatEnum GetPixelFormatEnumForMasks( + 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); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetPixelFormatName(PixelFormatEnum 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); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetPlatform() => T.GetPlatform(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetPlatformRaw() => T.GetPlatformRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PowerState GetPowerInfo(int* seconds, int* percent) => + T.GetPowerInfo(seconds, percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Locale* GetPreferredLocalesRaw() => T.GetPreferredLocalesRaw(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "GetPrefPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetPrefPath( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app + ) => T.GetPrefPath(org, app); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrefPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetPrefPath( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app + ) => T.GetPrefPath(org, app); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetPrimaryDisplay")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetPrimaryDisplay() => T.GetPrimaryDisplay(); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetPrimarySelectionText() => T.GetPrimarySelectionText(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetPrimarySelectionTextRaw() => T.GetPrimarySelectionTextRaw(); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetPropertyType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => T.GetPropertyType(props, name); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) => T.GetPropertyType(props, name); + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadInstanceType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadType GetRealGamepadInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.GetRealGamepadInstanceType(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadType GetRealGamepadType(SDL_Gamepad* gamepad) => + T.GetRealGamepadType(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public GamepadType GetRealGamepadType(Ref gamepad) => + T.GetRealGamepadType(gamepad); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int* X1, + int* Y1, + int* X2, + int* Y2 + ) => T.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) => T.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* rect, + float* X1, + float* Y1, + float* X2, + float* Y2 + ) => T.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) => T.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int 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")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPointsFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int 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")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ) => T.GetRectIntersection(A, B, result); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ) => T.GetRectIntersectionFloat(A, B, result); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B, + Ref result + ) => T.GetRectIntersectionFloat(A, B, result); + + [NativeFunction("SDL3", EntryPoint = "GetRectUnion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ) => T.GetRectUnion(A, B, result); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ) => T.GetRectUnion(A, B, result); + + [NativeFunction("SDL3", EntryPoint = "GetRectUnionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRectUnionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ) => T.GetRectUnionFloat(A, B, result); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int 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")] + [NativeFunction("SDL3", EntryPoint = "GetRelativeMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetRelativeMouseState(float* x, float* y) => T.GetRelativeMouseState(x, y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetRelativeMouseState(Ref x, Ref y) => + T.GetRelativeMouseState(x, y); + + [NativeFunction("SDL3", EntryPoint = "GetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderClipRect(SDL_Renderer* renderer, Rect* rect) => + T.GetRenderClipRect(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderClipRect(Ref renderer, Ref rect) => + T.GetRenderClipRect(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "GetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderColorScale(SDL_Renderer* renderer, float* scale) => + T.GetRenderColorScale(renderer, scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderColorScale(Ref renderer, Ref scale) => + T.GetRenderColorScale(renderer, scale); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode* blendMode) => + T.GetRenderDrawBlendMode(renderer, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderDrawBlendMode(Ref renderer, Ref blendMode) => + T.GetRenderDrawBlendMode(renderer, blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => T.GetRenderDrawColor(renderer, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) => T.GetRenderDrawColor(renderer, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderDrawColorFloat( + SDL_Renderer* renderer, + float* r, + float* g, + float* b, + float* a + ) => T.GetRenderDrawColorFloat(renderer, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderDrawColorFloat( + Ref renderer, + Ref r, + Ref g, + Ref b, + Ref a + ) => T.GetRenderDrawColorFloat(renderer, r, g, b, a); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetRenderDriver(int index) => T.GetRenderDriver(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetRenderDriverRaw(int index) => T.GetRenderDriverRaw(index); + + [NativeFunction("SDL3", EntryPoint = "GetRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Renderer* GetRenderer(SDL_Window* window) => T.GetRenderer(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetRenderer(Ref window) => T.GetRenderer(window); + + [NativeFunction("SDL3", EntryPoint = "GetRendererFromTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Renderer* GetRendererFromTexture(SDL_Texture* texture) => + T.GetRendererFromTexture(texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetRendererFromTexture(Ref texture) => + T.GetRendererFromTexture(texture); + + [NativeFunction("SDL3", EntryPoint = "GetRendererInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRendererInfo(SDL_Renderer* renderer, RendererInfo* info) => + T.GetRendererInfo(renderer, info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRendererInfo(Ref renderer, Ref info) => + T.GetRendererInfo(renderer, info); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetRendererProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetRendererProperties(SDL_Renderer* renderer) => + T.GetRendererProperties(renderer); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetRendererProperties(Ref renderer) => + T.GetRendererProperties(renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderLogicalPresentation( + SDL_Renderer* renderer, + int* w, + int* h, + RendererLogicalPresentation* mode, + ScaleMode* scale_mode + ) => T.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderLogicalPresentation( + Ref renderer, + Ref w, + Ref h, + Ref mode, + Ref scale_mode + ) => T.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalCommandEncoder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* GetRenderMetalCommandEncoder(SDL_Renderer* renderer) => + T.GetRenderMetalCommandEncoder(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalCommandEncoder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetRenderMetalCommandEncoder(Ref renderer) => + T.GetRenderMetalCommandEncoder(renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* GetRenderMetalLayer(SDL_Renderer* renderer) => T.GetRenderMetalLayer(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetRenderMetalLayer(Ref renderer) => + T.GetRenderMetalLayer(renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderOutputSize(SDL_Renderer* renderer, int* w, int* h) => + T.GetRenderOutputSize(renderer, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderOutputSize(Ref renderer, Ref w, Ref h) => + T.GetRenderOutputSize(renderer, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderScale(SDL_Renderer* renderer, float* scaleX, float* scaleY) => + T.GetRenderScale(renderer, scaleX, scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderScale( + Ref renderer, + Ref scaleX, + Ref scaleY + ) => T.GetRenderScale(renderer, scaleX, scaleY); + + [NativeFunction("SDL3", EntryPoint = "GetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Texture* GetRenderTarget(SDL_Renderer* renderer) => T.GetRenderTarget(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetRenderTarget(Ref renderer) => + T.GetRenderTarget(renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderViewport(SDL_Renderer* renderer, Rect* rect) => + T.GetRenderViewport(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderViewport(Ref renderer, Ref rect) => + T.GetRenderViewport(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "GetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderVSync(SDL_Renderer* renderer, int* vsync) => + T.GetRenderVSync(renderer, vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetRenderVSync(Ref renderer, Ref vsync) => + T.GetRenderVSync(renderer, vsync); + + [NativeFunction("SDL3", EntryPoint = "GetRenderWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* GetRenderWindow(SDL_Renderer* renderer) => T.GetRenderWindow(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetRenderWindow(Ref renderer) => + T.GetRenderWindow(renderer); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetRevision() => T.GetRevision(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetRevisionRaw() => T.GetRevisionRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => T.GetRGB(pixel, format, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) => T.GetRGB(pixel, format, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "GetRgba")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => T.GetRgba(pixel, format, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) => T.GetRgba(pixel, format, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key) => + T.GetScancodeFromKey(key); + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Scancode GetScancodeFromName([NativeTypeName("const char *")] sbyte* name) => + T.GetScancodeFromName(name); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Scancode GetScancodeFromName([NativeTypeName("const char *")] Ref name) => + T.GetScancodeFromName(name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetScancodeName(Scancode scancode) => T.GetScancodeName(scancode); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetScancodeNameRaw(Scancode scancode) => T.GetScancodeNameRaw(scancode); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetSemaphoreValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetSemaphoreValue(SDL_Semaphore* sem) => T.GetSemaphoreValue(sem); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSemaphoreValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetSemaphoreValue(Ref sem) => T.GetSemaphoreValue(sem); + + [NativeFunction("SDL3", EntryPoint = "GetSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSensorData(SDL_Sensor* sensor, float* data, int num_values) => + T.GetSensorData(sensor, data, num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSensorData(Ref sensor, Ref data, int num_values) => + T.GetSensorData(sensor, data, num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetSensorFromInstanceID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => T.GetSensorFromInstanceID(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Sensor* GetSensorFromInstanceIDRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => T.GetSensorFromInstanceIDRaw(instance_id); + + [return: NativeTypeName("SDL_SensorID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetSensorInstanceID(SDL_Sensor* sensor) => T.GetSensorInstanceID(sensor); + + [return: NativeTypeName("SDL_SensorID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetSensorInstanceID(Ref sensor) => T.GetSensorInstanceID(sensor); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetSensorInstanceName( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => T.GetSensorInstanceName(instance_id); + + [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 = "GetSensorInstanceNonPortableType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSensorInstanceNonPortableType( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => T.GetSensorInstanceNonPortableType(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SensorType GetSensorInstanceType( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => T.GetSensorInstanceType(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetSensorName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetSensorName(SDL_Sensor* sensor) => T.GetSensorName(sensor); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetSensorName(Ref sensor) => T.GetSensorName(sensor); + + [NativeFunction("SDL3", EntryPoint = "GetSensorNonPortableType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSensorNonPortableType(SDL_Sensor* sensor) => + T.GetSensorNonPortableType(sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSensorNonPortableType(Ref sensor) => + T.GetSensorNonPortableType(sensor); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetSensorProperties(SDL_Sensor* sensor) => T.GetSensorProperties(sensor); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetSensorProperties(Ref sensor) => T.GetSensorProperties(sensor); + + [return: NativeTypeName("SDL_SensorID *")] + [NativeFunction("SDL3", EntryPoint = "GetSensors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint* GetSensors(int* count) => T.GetSensors(count); + + [return: NativeTypeName("SDL_SensorID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetSensors(Ref count) => T.GetSensors(count); + + [NativeFunction("SDL3", EntryPoint = "GetSensorType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SensorType GetSensorType(SDL_Sensor* sensor) => T.GetSensorType(sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SensorType GetSensorType(Ref sensor) => T.GetSensorType(sensor); + + [NativeFunction("SDL3", EntryPoint = "GetSilenceValueForFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSilenceValueForFormat([NativeTypeName("SDL_AudioFormat")] ushort format) => + T.GetSilenceValueForFormat(format); + + [NativeFunction("SDL3", EntryPoint = "GetStorageFileSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetStorageFileSize( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("Uint64 *")] ulong* length + ) => T.GetStorageFileSize(storage, path, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetStorageFileSize( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("Uint64 *")] Ref length + ) => T.GetStorageFileSize(storage, path, length); + + [NativeFunction("SDL3", EntryPoint = "GetStoragePathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetStoragePathInfo( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ) => T.GetStoragePathInfo(storage, path, info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetStoragePathInfo( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref info + ) => T.GetStoragePathInfo(storage, path, info); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetStorageSpaceRemaining")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetStorageSpaceRemaining(SDL_Storage* storage) => + T.GetStorageSpaceRemaining(storage); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageSpaceRemaining")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetStorageSpaceRemaining(Ref storage) => + T.GetStorageSpaceRemaining(storage); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* default_value + ) => T.GetStringProperty(props, name, default_value); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref default_value + ) => T.GetStringProperty(props, name, default_value); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha) => + T.GetSurfaceAlphaMod(surface, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref alpha + ) => T.GetSurfaceAlphaMod(surface, alpha); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => + T.GetSurfaceBlendMode(surface, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceBlendMode(Ref surface, Ref blendMode) => + T.GetSurfaceBlendMode(surface, blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceClipRect(Surface* surface, Rect* rect) => + T.GetSurfaceClipRect(surface, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceClipRect(Ref surface, Ref rect) => + T.GetSurfaceClipRect(surface, rect); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key) => + T.GetSurfaceColorKey(surface, key); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceColorKey( + Ref surface, + [NativeTypeName("Uint32 *")] Ref key + ) => T.GetSurfaceColorKey(surface, key); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => T.GetSurfaceColorMod(surface, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) => T.GetSurfaceColorMod(surface, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace) => + T.GetSurfaceColorspace(surface, colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSurfaceColorspace(Ref surface, Ref colorspace) => + T.GetSurfaceColorspace(surface, colorspace); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSurfaceProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetSurfaceProperties(Surface* surface) => T.GetSurfaceProperties(surface); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetSurfaceProperties(Ref surface) => T.GetSurfaceProperties(surface); + + [NativeFunction("SDL3", EntryPoint = "GetSystemRAM")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetSystemRAM() => T.GetSystemRAM(); + + [NativeFunction("SDL3", EntryPoint = "GetSystemTheme")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SystemTheme GetSystemTheme() => T.GetSystemTheme(); + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureAlphaMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* alpha + ) => T.GetTextureAlphaMod(texture, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref alpha + ) => T.GetTextureAlphaMod(texture, alpha); + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureAlphaModFloat(SDL_Texture* texture, float* alpha) => + T.GetTextureAlphaModFloat(texture, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureAlphaModFloat(Ref texture, Ref alpha) => + T.GetTextureAlphaModFloat(texture, alpha); + + [NativeFunction("SDL3", EntryPoint = "GetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureBlendMode(SDL_Texture* texture, BlendMode* blendMode) => + T.GetTextureBlendMode(texture, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureBlendMode(Ref texture, Ref blendMode) => + T.GetTextureBlendMode(texture, blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => T.GetTextureColorMod(texture, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) => T.GetTextureColorMod(texture, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureColorModFloat(SDL_Texture* texture, float* r, float* g, float* b) => + T.GetTextureColorModFloat(texture, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureColorModFloat( + Ref texture, + Ref r, + Ref g, + Ref b + ) => T.GetTextureColorModFloat(texture, r, g, b); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetTextureProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetTextureProperties(SDL_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); + + [NativeFunction("SDL3", EntryPoint = "GetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureScaleMode(SDL_Texture* texture, ScaleMode* scaleMode) => + T.GetTextureScaleMode(texture, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetTextureScaleMode(Ref texture, Ref scaleMode) => + T.GetTextureScaleMode(texture, scaleMode); + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetThreadID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetThreadID(SDL_Thread* thread) => T.GetThreadID(thread); + + [return: NativeTypeName("SDL_ThreadID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetThreadID(Ref thread) => T.GetThreadID(thread); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetThreadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetThreadName(SDL_Thread* thread) => T.GetThreadName(thread); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetThreadName(Ref thread) => T.GetThreadName(thread); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong GetTicks() => T.GetTicks(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicksNS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id) => T.GetTLSRaw(id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetTouchDeviceName([NativeTypeName("SDL_TouchID")] ulong touchID) => + T.GetTouchDeviceName(touchID); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetTouchDeviceNameRaw([NativeTypeName("SDL_TouchID")] ulong touchID) => + T.GetTouchDeviceNameRaw(touchID); + + [return: NativeTypeName("SDL_TouchID *")] + [NativeFunction("SDL3", EntryPoint = "GetTouchDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public ulong* GetTouchDevices(int* count) => T.GetTouchDevices(count); + + [return: NativeTypeName("SDL_TouchID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetTouchDevices(Ref count) => T.GetTouchDevices(count); + + [NativeFunction("SDL3", EntryPoint = "GetTouchDeviceType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public TouchDeviceType GetTouchDeviceType([NativeTypeName("SDL_TouchID")] ulong touchID) => + T.GetTouchDeviceType(touchID); + + [NativeFunction("SDL3", EntryPoint = "GetTouchFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Finger** GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + int* count + ) => T.GetTouchFingers(touchID, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr2D GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + Ref count + ) => T.GetTouchFingers(touchID, count); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetUserFolder(Folder folder) => T.GetUserFolder(folder); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetUserFolderRaw(Folder folder) => T.GetUserFolderRaw(folder); + + [NativeFunction("SDL3", EntryPoint = "GetVersion")] + [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); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetVideoDriver(int index) => T.GetVideoDriver(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetVideoDriverRaw(int index) => T.GetVideoDriverRaw(index); + + [NativeFunction("SDL3", EntryPoint = "GetWindowBordersSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowBordersSize( + SDL_Window* window, + int* top, + int* left, + int* bottom, + int* right + ) => T.GetWindowBordersSize(window, top, left, bottom, right); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowBordersSize( + Ref window, + Ref top, + Ref left, + Ref bottom, + Ref right + ) => T.GetWindowBordersSize(window, top, left, bottom, right); + + [NativeFunction("SDL3", EntryPoint = "GetWindowDisplayScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetWindowDisplayScale(SDL_Window* window) => T.GetWindowDisplayScale(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowDisplayScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetWindowDisplayScale(Ref window) => + T.GetWindowDisplayScale(window); + + [return: NativeTypeName("SDL_WindowFlags")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFlags")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetWindowFlags(SDL_Window* window) => T.GetWindowFlags(window); + + [return: NativeTypeName("SDL_WindowFlags")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFlags")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetWindowFlags(Ref window) => T.GetWindowFlags(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id) => + T.GetWindowFromID(id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* GetWindowFromIDRaw([NativeTypeName("SDL_WindowID")] uint id) => + T.GetWindowFromIDRaw(id); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public DisplayMode* GetWindowFullscreenMode(SDL_Window* window) => + T.GetWindowFullscreenMode(window); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetWindowFullscreenMode(Ref window) => + T.GetWindowFullscreenMode(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowICCProfile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* GetWindowICCProfile( + SDL_Window* window, + [NativeTypeName("size_t *")] nuint* size + ) => T.GetWindowICCProfile(window, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowICCProfile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetWindowICCProfile( + Ref window, + [NativeTypeName("size_t *")] Ref size + ) => T.GetWindowICCProfile(window, size); + + [return: NativeTypeName("SDL_WindowID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetWindowID(SDL_Window* window) => T.GetWindowID(window); + + [return: NativeTypeName("SDL_WindowID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetWindowID(Ref window) => T.GetWindowID(window); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowKeyboardGrab(SDL_Window* window) => T.GetWindowKeyboardGrab(window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetWindowKeyboardGrab(Ref window) => + T.GetWindowKeyboardGrab(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowMaximumSize(SDL_Window* window, int* w, int* h) => + T.GetWindowMaximumSize(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowMaximumSize(Ref window, Ref w, Ref h) => + T.GetWindowMaximumSize(window, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowMinimumSize(SDL_Window* window, int* w, int* h) => + T.GetWindowMinimumSize(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowMinimumSize(Ref window, Ref w, Ref h) => + T.GetWindowMinimumSize(window, w, h); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowMouseGrab(SDL_Window* window) => T.GetWindowMouseGrab(window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GetWindowMouseGrab(Ref window) => + T.GetWindowMouseGrab(window); + + [return: NativeTypeName("const SDL_Rect *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Rect* GetWindowMouseRect(SDL_Window* window) => T.GetWindowMouseRect(window); + + [return: NativeTypeName("const SDL_Rect *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetWindowMouseRect(Ref window) => T.GetWindowMouseRect(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowOpacity(SDL_Window* window, float* out_opacity) => + T.GetWindowOpacity(window, out_opacity); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowOpacity(Ref window, Ref out_opacity) => + T.GetWindowOpacity(window, out_opacity); + + [NativeFunction("SDL3", EntryPoint = "GetWindowParent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* GetWindowParent(SDL_Window* window) => T.GetWindowParent(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetWindowParent(Ref window) => T.GetWindowParent(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelDensity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetWindowPixelDensity(SDL_Window* window) => T.GetWindowPixelDensity(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelDensity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public float GetWindowPixelDensity(Ref window) => + T.GetWindowPixelDensity(window); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetWindowPixelFormat(SDL_Window* window) => T.GetWindowPixelFormat(window); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetWindowPixelFormat(Ref window) => T.GetWindowPixelFormat(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowPosition(SDL_Window* window, int* x, int* y) => + T.GetWindowPosition(window, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowPosition(Ref window, Ref x, Ref y) => + T.GetWindowPosition(window, x, y); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetWindowProperties(SDL_Window* window) => T.GetWindowProperties(window); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint GetWindowProperties(Ref window) => T.GetWindowProperties(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowSize(SDL_Window* window, int* w, int* h) => + T.GetWindowSize(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowSize(Ref window, Ref w, Ref h) => + T.GetWindowSize(window, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSizeInPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowSizeInPixels(SDL_Window* window, int* w, int* h) => + T.GetWindowSizeInPixels(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GetWindowSizeInPixels(Ref window, Ref w, Ref h) => + T.GetWindowSizeInPixels(window, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* GetWindowSurface(SDL_Window* window) => T.GetWindowSurface(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetWindowSurface(Ref window) => T.GetWindowSurface(window); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte* GetWindowTitle(SDL_Window* window) => T.GetWindowTitle(window); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GetWindowTitle(Ref window) => T.GetWindowTitle(window); + + [return: NativeTypeName("SDL_GLContext")] + [NativeFunction("SDL3", EntryPoint = "GLCreateContext")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* GLCreateContext(SDL_Window* window) => T.GLCreateContext(window); + + [return: NativeTypeName("SDL_GLContext")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GLCreateContext(Ref window) => T.GLCreateContext(window); + + [NativeFunction("SDL3", EntryPoint = "GLDeleteContext")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context) => + T.GLDeleteContext(context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context) => + T.GLDeleteContext(context); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GLExtensionSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => + T.GLExtensionSupported(extension); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool GLExtensionSupported( + [NativeTypeName("const char *")] Ref extension + ) => T.GLExtensionSupported(extension); + + [NativeFunction("SDL3", EntryPoint = "GLGetAttribute")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLGetAttribute(GLattr attr, int* value) => T.GLGetAttribute(attr, value); + + [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(); + + [return: NativeTypeName("SDL_GLContext")] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentContext")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* GLGetCurrentContextRaw() => T.GLGetCurrentContextRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr GLGetCurrentWindow() => T.GLGetCurrentWindow(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Window* GLGetCurrentWindowRaw() => T.GLGetCurrentWindowRaw(); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "GLGetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ) => T.GLGetProcAddress(proc); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) => T.GLGetProcAddress(proc); + + [NativeFunction("SDL3", EntryPoint = "GLGetSwapInterval")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLGetSwapInterval(int* interval) => T.GLGetSwapInterval(interval); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLGetSwapInterval(Ref interval) => T.GLGetSwapInterval(interval); + + [NativeFunction("SDL3", EntryPoint = "GLLoadLibrary")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => + T.GLLoadLibrary(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLLoadLibrary([NativeTypeName("const char *")] Ref path) => + T.GLLoadLibrary(path); + + [NativeFunction("SDL3", EntryPoint = "GLMakeCurrent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLMakeCurrent( + SDL_Window* window, + [NativeTypeName("SDL_GLContext")] void* context + ) => T.GLMakeCurrent(window, context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLMakeCurrent( + Ref window, + [NativeTypeName("SDL_GLContext")] Ref context + ) => T.GLMakeCurrent(window, context); + + [NativeFunction("SDL3", EntryPoint = "GLResetAttributes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GLResetAttributes() => T.GLResetAttributes(); + + [NativeFunction("SDL3", EntryPoint = "GLSetAttribute")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLSetAttribute(GLattr attr, int value) => T.GLSetAttribute(attr, value); + + [NativeFunction("SDL3", EntryPoint = "GLSetSwapInterval")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLSetSwapInterval(int interval) => T.GLSetSwapInterval(interval); + + [NativeFunction("SDL3", EntryPoint = "GLSwapWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLSwapWindow(SDL_Window* window) => T.GLSwapWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int GLSwapWindow(Ref window) => T.GLSwapWindow(window); + + [NativeFunction("SDL3", EntryPoint = "GLUnloadLibrary")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void GLUnloadLibrary() => T.GLUnloadLibrary(); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte** GlobDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ) => T.GlobDirectory(path, pattern, flags, count); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr2D GlobDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) => T.GlobDirectory(path, pattern, flags, count); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public sbyte** GlobStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ) => T.GlobStorageDirectory(storage, path, pattern, flags, count); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr2D GlobStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) => T.GlobStorageDirectory(storage, path, pattern, flags, count); + + [NativeFunction("SDL3", EntryPoint = "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 = "GuidToString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int 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( + Guid guid, + [NativeTypeName("char *")] Ref pszGUID, + int cbGUID + ) => T.GuidToString(guid, pszGUID, cbGUID); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticEffectSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HapticEffectSupported( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ) => T.HapticEffectSupported(haptic, effect); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HapticEffectSupported( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) => T.HapticEffectSupported(haptic, effect); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticRumbleSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HapticRumbleSupported(SDL_Haptic* haptic) => T.HapticRumbleSupported(haptic); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HapticRumbleSupported(Ref haptic) => + T.HapticRumbleSupported(haptic); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasAltiVec() => T.HasAltiVec(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasAltiVecRaw() => T.HasAltiVecRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasArmsimd() => T.HasArmsimd(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasArmsimdRaw() => T.HasArmsimdRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasAVX() => T.HasAVX(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasAVX2() => T.HasAVX2(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasAVX2Raw() => T.HasAVX2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasAVX512F() => T.HasAVX512F(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasAVX512FRaw() => T.HasAVX512FRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasAVXRaw() => T.HasAVXRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => + T.HasClipboardData(mime_type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasClipboardData( + [NativeTypeName("const char *")] Ref mime_type + ) => T.HasClipboardData(mime_type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasClipboardText() => T.HasClipboardText(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasClipboardTextRaw() => T.HasClipboardTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => T.HasEvent(type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasEventRaw([NativeTypeName("Uint32")] uint type) => T.HasEventRaw(type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => T.HasEvents(minType, maxType); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasEventsRaw( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => T.HasEventsRaw(minType, maxType); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasGamepad() => T.HasGamepad(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasGamepadRaw() => T.HasGamepadRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasJoystick() => T.HasJoystick(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasJoystickRaw() => T.HasJoystickRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasKeyboard() => T.HasKeyboard(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasKeyboardRaw() => T.HasKeyboardRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasLasx() => T.HasLasx(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasLasxRaw() => T.HasLasxRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasLSX() => T.HasLSX(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasLSXRaw() => T.HasLSXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasMMX() => T.HasMMX(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasMMXRaw() => T.HasMMXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasMouse() => T.HasMouse(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasMouseRaw() => T.HasMouseRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasNeon() => T.HasNeon(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasNeonRaw() => T.HasNeonRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasPrimarySelectionText() => T.HasPrimarySelectionText(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasPrimarySelectionTextRaw() => T.HasPrimarySelectionTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => T.HasProperty(props, name); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) => T.HasProperty(props, name); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B + ) => T.HasRectIntersection(A, B); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B + ) => T.HasRectIntersection(A, B); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B + ) => T.HasRectIntersectionFloat(A, B); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B + ) => T.HasRectIntersectionFloat(A, B); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasScreenKeyboardSupport() => T.HasScreenKeyboardSupport(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasScreenKeyboardSupportRaw() => T.HasScreenKeyboardSupportRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasSSE() => T.HasSSE(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasSSE2() => T.HasSSE2(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasSSE2Raw() => T.HasSSE2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasSSE3() => T.HasSSE3(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasSSE3Raw() => T.HasSSE3Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasSSE41() => T.HasSSE41(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasSSE41Raw() => T.HasSSE41Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool HasSSE42() => T.HasSSE42(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasSSE42Raw() => T.HasSSE42Raw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HasSSERaw() => T.HasSSERaw(); + + [NativeFunction("SDL3", EntryPoint = "HidBleScan")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void HidBleScan([NativeTypeName("SDL_bool")] int 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) => + T.HidBleScan(active); + + [NativeFunction("SDL3", EntryPoint = "HidClose")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidClose(SDL_hid_device* dev) => T.HidClose(dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidClose(Ref dev) => T.HidClose(dev); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "HidDeviceChangeCount")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint HidDeviceChangeCount() => T.HidDeviceChangeCount(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr HidEnumerate( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ) => T.HidEnumerate(vendor_id, product_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HidDeviceInfo* HidEnumerateRaw( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ) => T.HidEnumerateRaw(vendor_id, product_id); + + [NativeFunction("SDL3", EntryPoint = "HidExit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidExit() => T.HidExit(); + + [NativeFunction("SDL3", EntryPoint = "HidFreeEnumeration")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void HidFreeEnumeration(HidDeviceInfo* devs) => T.HidFreeEnumeration(devs); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_free_enumeration")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void HidFreeEnumeration(Ref devs) => T.HidFreeEnumeration(devs); + + [NativeFunction("SDL3", EntryPoint = "HidGetDeviceInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public HidDeviceInfo* HidGetDeviceInfo(SDL_hid_device* dev) => T.HidGetDeviceInfo(dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_device_info")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr HidGetDeviceInfo(Ref dev) => + T.HidGetDeviceInfo(dev); + + [NativeFunction("SDL3", EntryPoint = "HidGetFeatureReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => T.HidGetFeatureReport(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_feature_report")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetFeatureReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => T.HidGetFeatureReport(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HidGetIndexedString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetIndexedString( + SDL_hid_device* dev, + int string_index, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => T.HidGetIndexedString(dev, string_index, @string, maxlen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_indexed_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetIndexedString( + Ref dev, + int string_index, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) => T.HidGetIndexedString(dev, string_index, @string, maxlen); + + [NativeFunction("SDL3", EntryPoint = "HidGetInputReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetInputReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => T.HidGetInputReport(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_input_report")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetInputReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => T.HidGetInputReport(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HidGetManufacturerString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetManufacturerString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => T.HidGetManufacturerString(dev, @string, maxlen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_manufacturer_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetManufacturerString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) => T.HidGetManufacturerString(dev, @string, maxlen); + + [NativeFunction("SDL3", EntryPoint = "HidGetProductString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetProductString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => T.HidGetProductString(dev, @string, maxlen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_product_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetProductString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) => T.HidGetProductString(dev, @string, maxlen); + + [NativeFunction("SDL3", EntryPoint = "HidGetReportDescriptor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetReportDescriptor( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* buf, + [NativeTypeName("size_t")] nuint buf_size + ) => T.HidGetReportDescriptor(dev, buf, buf_size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetReportDescriptor( + Ref dev, + [NativeTypeName("unsigned char *")] Ref buf, + [NativeTypeName("size_t")] nuint buf_size + ) => T.HidGetReportDescriptor(dev, buf, buf_size); + + [NativeFunction("SDL3", EntryPoint = "HidGetSerialNumberString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetSerialNumberString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => T.HidGetSerialNumberString(dev, @string, maxlen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_serial_number_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidGetSerialNumberString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) => T.HidGetSerialNumberString(dev, @string, maxlen); + + [NativeFunction("SDL3", EntryPoint = "HidInit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidInit() => T.HidInit(); + + [NativeFunction("SDL3", EntryPoint = "HidOpen")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_hid_device* HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] uint* serial_number + ) => T.HidOpen(vendor_id, product_id, serial_number); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] Ref serial_number + ) => T.HidOpen(vendor_id, product_id, serial_number); + + [NativeFunction("SDL3", EntryPoint = "HidOpenPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_hid_device* HidOpenPath([NativeTypeName("const char *")] sbyte* path) => + T.HidOpenPath(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open_path")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr HidOpenPath([NativeTypeName("const char *")] Ref path) => + T.HidOpenPath(path); + + [NativeFunction("SDL3", EntryPoint = "HidRead")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidRead( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => T.HidRead(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidRead( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => T.HidRead(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HidReadTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidReadTimeout( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ) => T.HidReadTimeout(dev, data, length, milliseconds); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read_timeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidReadTimeout( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ) => T.HidReadTimeout(dev, data, length, milliseconds); + + [NativeFunction("SDL3", EntryPoint = "HidSendFeatureReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidSendFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => T.HidSendFeatureReport(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_send_feature_report")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidSendFeatureReport( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => T.HidSendFeatureReport(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HidSetNonblocking")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidSetNonblocking(SDL_hid_device* dev, int nonblock) => + T.HidSetNonblocking(dev, nonblock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_set_nonblocking")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidSetNonblocking(Ref dev, int nonblock) => + T.HidSetNonblocking(dev, nonblock); + + [NativeFunction("SDL3", EntryPoint = "HidWrite")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidWrite( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => T.HidWrite(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_write")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HidWrite( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => T.HidWrite(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HideCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HideCursor() => T.HideCursor(); + + [NativeFunction("SDL3", EntryPoint = "HideWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HideWindow(SDL_Window* window) => T.HideWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int HideWindow(Ref window) => T.HideWindow(window); + + [NativeFunction("SDL3", EntryPoint = "Init")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int Init([NativeTypeName("Uint32")] uint flags) => T.Init(flags); + + [NativeFunction("SDL3", EntryPoint = "InitHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int InitHapticRumble(SDL_Haptic* haptic) => T.InitHapticRumble(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int InitHapticRumble(Ref haptic) => T.InitHapticRumble(haptic); + + [NativeFunction("SDL3", EntryPoint = "InitSubSystem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int InitSubSystem([NativeTypeName("Uint32")] uint flags) => T.InitSubSystem(flags); + + [NativeFunction("SDL3", EntryPoint = "IOFromConstMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_IOStream* IOFromConstMem( + [NativeTypeName("const void *")] void* mem, + [NativeTypeName("size_t")] nuint size + ) => T.IOFromConstMem(mem, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr IOFromConstMem( + [NativeTypeName("const void *")] Ref mem, + [NativeTypeName("size_t")] nuint size + ) => T.IOFromConstMem(mem, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr IOFromDynamicMem() => T.IOFromDynamicMem(); + + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_IOStream* IOFromDynamicMemRaw() => T.IOFromDynamicMemRaw(); + + [NativeFunction("SDL3", EntryPoint = "IOFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_IOStream* IOFromFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const char *")] sbyte* mode + ) => T.IOFromFile(file, mode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr IOFromFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const char *")] Ref mode + ) => T.IOFromFile(file, mode); + + [NativeFunction("SDL3", EntryPoint = "IOFromMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_IOStream* IOFromMem(void* mem, [NativeTypeName("size_t")] nuint size) => + T.IOFromMem(mem, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr IOFromMem(Ref mem, [NativeTypeName("size_t")] nuint size) => + T.IOFromMem(mem, size); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "IOvprintf")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public nuint IOvprintf( + SDL_IOStream* context, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => T.IOvprintf(context, fmt, ap); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOvprintf")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public nuint IOvprintf( + Ref context, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) => T.IOvprintf(context, fmt, ap); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool IsGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.IsGamepad(instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.IsGamepadRaw(instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "IsJoystickHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int IsJoystickHaptic(SDL_Joystick* joystick) => T.IsJoystickHaptic(joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool IsJoystickHaptic(Ref joystick) => + T.IsJoystickHaptic(joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool IsJoystickVirtual( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.IsJoystickVirtual(instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.IsJoystickVirtualRaw(instance_id); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool IsMouseHaptic() => T.IsMouseHaptic(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int IsMouseHapticRaw() => T.IsMouseHapticRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool IsTablet() => T.IsTablet(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int IsTabletRaw() => T.IsTabletRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "JoystickConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int JoystickConnected(SDL_Joystick* joystick) => T.JoystickConnected(joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool JoystickConnected(Ref joystick) => + T.JoystickConnected(joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool JoystickEventsEnabled() => T.JoystickEventsEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int JoystickEventsEnabledRaw() => T.JoystickEventsEnabledRaw(); + + [NativeFunction("SDL3", EntryPoint = "LoadBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* LoadBMP([NativeTypeName("const char *")] sbyte* file) => T.LoadBMP(file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr LoadBMP([NativeTypeName("const char *")] Ref file) => + T.LoadBMP(file); + + [NativeFunction("SDL3", EntryPoint = "LoadBMPIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* LoadBMPIO(SDL_IOStream* src, [NativeTypeName("SDL_bool")] int closeio) => + T.LoadBMPIO(src, closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr LoadBMPIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) => T.LoadBMPIO(src, closeio); + + [NativeFunction("SDL3", EntryPoint = "LoadFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* LoadFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("size_t *")] nuint* datasize + ) => T.LoadFile(file, datasize); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr LoadFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("size_t *")] Ref datasize + ) => T.LoadFile(file, datasize); + + [NativeFunction("SDL3", EntryPoint = "LoadFileIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* LoadFileIO( + SDL_IOStream* src, + [NativeTypeName("size_t *")] nuint* datasize, + [NativeTypeName("SDL_bool")] int closeio + ) => T.LoadFileIO(src, datasize, closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr LoadFileIO( + Ref src, + [NativeTypeName("size_t *")] Ref datasize, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) => T.LoadFileIO(src, datasize, closeio); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "LoadFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public delegate* unmanaged LoadFunction( + void* handle, + [NativeTypeName("const char *")] sbyte* name + ) => T.LoadFunction(handle, name); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public delegate* unmanaged LoadFunction( + Ref handle, + [NativeTypeName("const char *")] Ref name + ) => T.LoadFunction(handle, name); + + [NativeFunction("SDL3", EntryPoint = "LoadObject")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* LoadObject([NativeTypeName("const char *")] sbyte* sofile) => + T.LoadObject(sofile); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadObject")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr LoadObject([NativeTypeName("const char *")] Ref sofile) => + T.LoadObject(sofile); + + [NativeFunction("SDL3", EntryPoint = "LoadWAV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int 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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int 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); + + [NativeFunction("SDL3", EntryPoint = "LoadWAVIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LoadWAVIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ) => T.LoadWAVIO(src, closeio, spec, audio_buf, audio_len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LoadWAVIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ) => T.LoadWAVIO(src, closeio, spec, audio_buf, audio_len); + + [NativeFunction("SDL3", EntryPoint = "LockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LockAudioStream(SDL_AudioStream* stream) => T.LockAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LockAudioStream(Ref stream) => T.LockAudioStream(stream); + + [NativeFunction("SDL3", EntryPoint = "LockJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LockJoysticks() => T.LockJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "LockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LockMutex(SDL_Mutex* mutex) => T.LockMutex(mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LockMutex(Ref mutex) => T.LockMutex(mutex); + + [NativeFunction("SDL3", EntryPoint = "LockProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + T.LockProperties(props); + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LockRWLockForReading(SDL_RWLock* rwlock) => T.LockRWLockForReading(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LockRWLockForReading(Ref rwlock) => T.LockRWLockForReading(rwlock); + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LockRWLockForWriting(SDL_RWLock* rwlock) => T.LockRWLockForWriting(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LockRWLockForWriting(Ref rwlock) => T.LockRWLockForWriting(rwlock); + + [NativeFunction("SDL3", EntryPoint = "LockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + T.LockSpinlock(@lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => + T.LockSpinlock(@lock); + + [NativeFunction("SDL3", EntryPoint = "LockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LockSurface(Surface* surface) => T.LockSurface(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LockSurface(Ref surface) => T.LockSurface(surface); + + [NativeFunction("SDL3", EntryPoint = "LockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LockTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + void** pixels, + int* pitch + ) => T.LockTexture(texture, rect, pixels, pitch); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LockTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D pixels, + Ref pitch + ) => T.LockTexture(texture, rect, pixels, pitch); + + [NativeFunction("SDL3", EntryPoint = "LockTextureToSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LockTextureToSurface( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + Surface** surface + ) => T.LockTextureToSurface(texture, rect, surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int LockTextureToSurface( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D surface + ) => T.LockTextureToSurface(texture, rect, surface); + + [NativeFunction("SDL3", EntryPoint = "LogGetPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public LogPriority LogGetPriority(int category) => T.LogGetPriority(category); + + [NativeFunction("SDL3", EntryPoint = "LogMessageV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => T.LogMessageV(category, priority, fmt, ap); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) => T.LogMessageV(category, priority, fmt, ap); + + [NativeFunction("SDL3", EntryPoint = "LogResetPriorities")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LogResetPriorities() => T.LogResetPriorities(); + + [NativeFunction("SDL3", EntryPoint = "LogSetAllPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LogSetAllPriority(LogPriority priority) => T.LogSetAllPriority(priority); + + [NativeFunction("SDL3", EntryPoint = "LogSetPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void LogSetPriority(int category, LogPriority priority) => + T.LogSetPriority(category, priority); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "MapRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => T.MapRGB(format, r, g, b); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => T.MapRGB(format, r, g, b); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "MapRgba")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => T.MapRgba(format, r, g, b, a); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGBA")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => T.MapRgba(format, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "MaximizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int MaximizeWindow(SDL_Window* window) => T.MaximizeWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int MaximizeWindow(Ref window) => T.MaximizeWindow(window); + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierAcquireFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void MemoryBarrierAcquireFunction() => T.MemoryBarrierAcquireFunction(); + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierReleaseFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void MemoryBarrierReleaseFunction() => T.MemoryBarrierReleaseFunction(); + + [return: NativeTypeName("SDL_MetalView")] + [NativeFunction("SDL3", EntryPoint = "MetalCreateView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* MetalCreateView(SDL_Window* window) => T.MetalCreateView(window); + + [return: NativeTypeName("SDL_MetalView")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_CreateView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr MetalCreateView(Ref window) => T.MetalCreateView(window); + + [NativeFunction("SDL3", EntryPoint = "MetalDestroyView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view) => + T.MetalDestroyView(view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_DestroyView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view) => + T.MetalDestroyView(view); + + [NativeFunction("SDL3", EntryPoint = "MetalGetLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void* MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view) => + T.MetalGetLayer(view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_GetLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) => + T.MetalGetLayer(view); + + [NativeFunction("SDL3", EntryPoint = "MinimizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int MinimizeWindow(SDL_Window* window) => T.MinimizeWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int MinimizeWindow(Ref window) => T.MinimizeWindow(window); + + [NativeFunction("SDL3", EntryPoint = "MixAudioFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int MixAudioFormat( + [NativeTypeName("Uint8 *")] byte* dst, + [NativeTypeName("const Uint8 *")] byte* src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ) => T.MixAudioFormat(dst, src, format, len, volume); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int MixAudioFormat( + [NativeTypeName("Uint8 *")] Ref dst, + [NativeTypeName("const Uint8 *")] Ref src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ) => T.MixAudioFormat(dst, src, format, len, volume); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidBecomeActive")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void OnApplicationDidBecomeActive() => T.OnApplicationDidBecomeActive(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidEnterBackground")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void OnApplicationDidEnterBackground() => T.OnApplicationDidEnterBackground(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidReceiveMemoryWarning")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void OnApplicationDidReceiveMemoryWarning() => + T.OnApplicationDidReceiveMemoryWarning(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillEnterForeground")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void OnApplicationWillEnterForeground() => T.OnApplicationWillEnterForeground(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillResignActive")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void OnApplicationWillResignActive() => T.OnApplicationWillResignActive(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillTerminate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void OnApplicationWillTerminate() => T.OnApplicationWillTerminate(); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "OpenAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec + ) => T.OpenAudioDevice(devid, spec); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec + ) => T.OpenAudioDevice(devid, spec); + + [NativeFunction("SDL3", EntryPoint = "OpenAudioDeviceStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_AudioStream* OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => T.OpenAudioDeviceStream(devid, spec, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDeviceStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) => T.OpenAudioDeviceStream(devid, spec, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "OpenCameraDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Camera* OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec + ) => T.OpenCameraDevice(instance_id, spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] Ref spec + ) => T.OpenCameraDevice(instance_id, spec); + + [NativeFunction("SDL3", EntryPoint = "OpenFileStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Storage* OpenFileStorage([NativeTypeName("const char *")] sbyte* path) => + T.OpenFileStorage(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenFileStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenFileStorage([NativeTypeName("const char *")] Ref path) => + T.OpenFileStorage(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.OpenGamepad(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Gamepad* OpenGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.OpenGamepadRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenHaptic([NativeTypeName("SDL_HapticID")] uint instance_id) => + T.OpenHaptic(instance_id); + + [NativeFunction("SDL3", EntryPoint = "OpenHapticFromJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Haptic* OpenHapticFromJoystick(SDL_Joystick* joystick) => + T.OpenHapticFromJoystick(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenHapticFromJoystick(Ref joystick) => + T.OpenHapticFromJoystick(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenHapticFromMouse() => T.OpenHapticFromMouse(); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Haptic* OpenHapticFromMouseRaw() => T.OpenHapticFromMouseRaw(); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Haptic* OpenHapticRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => + T.OpenHapticRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "OpenIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_IOStream* OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] IOStreamInterface* iface, + void* userdata + ) => T.OpenIO(iface, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] Ref iface, + Ref userdata + ) => T.OpenIO(iface, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => T.OpenJoystick(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Joystick* OpenJoystickRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + T.OpenJoystickRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenSensor([NativeTypeName("SDL_SensorID")] uint instance_id) => + T.OpenSensor(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Sensor* OpenSensorRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => + T.OpenSensorRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "OpenStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Storage* OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] StorageInterface* iface, + void* userdata + ) => T.OpenStorage(iface, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] Ref iface, + Ref userdata + ) => T.OpenStorage(iface, userdata); + + [NativeFunction("SDL3", EntryPoint = "OpenTitleStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Storage* OpenTitleStorage( + [NativeTypeName("const char *")] sbyte* @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.OpenTitleStorage(@override, props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenTitleStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenTitleStorage( + [NativeTypeName("const char *")] Ref @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.OpenTitleStorage(@override, props); + + [NativeFunction("SDL3", EntryPoint = "OpenURL")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int OpenURL([NativeTypeName("const char *")] sbyte* url) => T.OpenURL(url); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int OpenURL([NativeTypeName("const char *")] Ref url) => T.OpenURL(url); + + [NativeFunction("SDL3", EntryPoint = "OpenUserStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public SDL_Storage* OpenUserStorage( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.OpenUserStorage(org, app, props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr OpenUserStorage( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => T.OpenUserStorage(org, app, props); + + [NativeFunction("SDL3", EntryPoint = "PauseAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + T.PauseAudioDevice(dev); + + [NativeFunction("SDL3", EntryPoint = "PauseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PauseHaptic(SDL_Haptic* haptic) => T.PauseHaptic(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PauseHaptic(Ref haptic) => T.PauseHaptic(haptic); + + [NativeFunction("SDL3", EntryPoint = "PeepEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PeepEvents( + Event* events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => T.PeepEvents(events, numevents, action, minType, maxType); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PeepEvents( + Ref events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => T.PeepEvents(events, numevents, action, minType, maxType); + + [return: NativeTypeName("SDL_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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id) => + T.PenConnectedRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "PlayHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PlayHapticRumble( + SDL_Haptic* haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => T.PlayHapticRumble(haptic, strength, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PlayHapticRumble( + Ref haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => T.PlayHapticRumble(haptic, strength, length); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "PollEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PollEvent(Event* @event) => T.PollEvent(@event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool PollEvent(Ref @event) => T.PollEvent(@event); + + [NativeFunction("SDL3", EntryPoint = "PostSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PostSemaphore(SDL_Semaphore* sem) => T.PostSemaphore(sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PostSemaphore(Ref sem) => T.PostSemaphore(sem); + + [NativeFunction("SDL3", EntryPoint = "PremultiplyAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ) => + T.PremultiplyAlpha( + width, + height, + src_format, + src, + src_pitch, + dst_format, + dst, + dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ) => + T.PremultiplyAlpha( + width, + height, + src_format, + src, + src_pitch, + dst_format, + dst, + dst_pitch + ); + + [NativeFunction("SDL3", EntryPoint = "PumpEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void PumpEvents() => T.PumpEvents(); + + [NativeFunction("SDL3", EntryPoint = "PushEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PushEvent(Event* @event) => T.PushEvent(@event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PushEvent(Ref @event) => T.PushEvent(@event); + + [NativeFunction("SDL3", EntryPoint = "PutAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PutAudioStreamData( + SDL_AudioStream* stream, + [NativeTypeName("const void *")] void* buf, + int len + ) => T.PutAudioStreamData(stream, buf, len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int PutAudioStreamData( + Ref stream, + [NativeTypeName("const void *")] Ref buf, + int len + ) => T.PutAudioStreamData(stream, buf, len); + + [NativeFunction("SDL3", EntryPoint = "QueryTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int QueryTexture( + SDL_Texture* texture, + PixelFormatEnum* format, + int* access, + int* w, + int* h + ) => T.QueryTexture(texture, format, access, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int QueryTexture( + Ref texture, + Ref format, + Ref access, + Ref w, + Ref h + ) => T.QueryTexture(texture, format, access, w, h); + + [NativeFunction("SDL3", EntryPoint = "Quit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void Quit() => T.Quit(); + + [NativeFunction("SDL3", EntryPoint = "QuitSubSystem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void QuitSubSystem([NativeTypeName("Uint32")] uint flags) => T.QuitSubSystem(flags); + + [NativeFunction("SDL3", EntryPoint = "RaiseWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RaiseWindow(SDL_Window* window) => T.RaiseWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RaiseWindow(Ref window) => T.RaiseWindow(window); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "ReadIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public nuint ReadIO( + SDL_IOStream* context, + void* ptr, + [NativeTypeName("size_t")] nuint size + ) => T.ReadIO(context, ptr, size); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public nuint ReadIO( + Ref context, + Ref ptr, + [NativeTypeName("size_t")] nuint size + ) => T.ReadIO(context, ptr, size); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadS16BE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value) => + T.ReadS16BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadS16BE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) => T.ReadS16BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadS16LE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value) => + T.ReadS16LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadS16LE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) => T.ReadS16LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadS32BE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value) => + T.ReadS32BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadS32BE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) => T.ReadS32BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadS32LE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value) => + T.ReadS32LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadS32LE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) => T.ReadS32LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadS64BE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value) => + T.ReadS64BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadS64BE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) => T.ReadS64BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadS64LE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value) => + T.ReadS64LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadS64LE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) => T.ReadS64LE(src, value); + + [NativeFunction("SDL3", EntryPoint = "ReadStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + void* destination, + [NativeTypeName("Uint64")] ulong length + ) => T.ReadStorageFile(storage, path, destination, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref destination, + [NativeTypeName("Uint64")] ulong length + ) => T.ReadStorageFile(storage, path, destination, length); + + [NativeFunction("SDL3", EntryPoint = "ReadSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => T.ReadSurfacePixel(surface, x, y, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) => T.ReadSurfacePixel(surface, x, y, r, g, b, a); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadU16BE(SDL_IOStream* src, [NativeTypeName("Uint16 *")] ushort* value) => + T.ReadU16BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadU16BE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) => T.ReadU16BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadU16LE(SDL_IOStream* src, [NativeTypeName("Uint16 *")] ushort* value) => + T.ReadU16LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadU16LE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) => T.ReadU16LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadU32BE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value) => + T.ReadU32BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadU32BE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) => T.ReadU32BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadU32LE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value) => + T.ReadU32LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadU32LE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) => T.ReadU32LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadU64BE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value) => + T.ReadU64BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadU64BE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) => T.ReadU64BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadU64LE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value) => + T.ReadU64LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadU64LE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) => T.ReadU64LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReadU8(SDL_IOStream* src, [NativeTypeName("Uint8 *")] byte* value) => + T.ReadU8(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ReadU8( + Ref src, + [NativeTypeName("Uint8 *")] Ref value + ) => T.ReadU8(src, value); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "RegisterEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint RegisterEvents(int numevents) => T.RegisterEvents(numevents); + + [NativeFunction("SDL3", EntryPoint = "ReleaseCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReleaseCameraFrame(SDL_Camera* camera, Surface* frame) => + T.ReleaseCameraFrame(camera, frame); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReleaseCameraFrame(Ref camera, Ref frame) => + T.ReleaseCameraFrame(camera, frame); + + [NativeFunction("SDL3", EntryPoint = "ReloadGamepadMappings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ReloadGamepadMappings() => T.ReloadGamepadMappings(); + + [NativeFunction("SDL3", EntryPoint = "RemovePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RemovePath([NativeTypeName("const char *")] sbyte* path) => T.RemovePath(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RemovePath([NativeTypeName("const char *")] Ref path) => + T.RemovePath(path); + + [NativeFunction("SDL3", EntryPoint = "RemoveStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RemoveStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ) => T.RemoveStoragePath(storage, path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RemoveStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref path + ) => T.RemoveStoragePath(storage, path); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => + T.RemoveTimer(id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => T.RemoveTimerRaw(id); + + [NativeFunction("SDL3", EntryPoint = "RenamePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenamePath( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => T.RenamePath(oldpath, newpath); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenamePath( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) => T.RenamePath(oldpath, newpath); + + [NativeFunction("SDL3", EntryPoint = "RenameStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenameStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => T.RenameStoragePath(storage, oldpath, newpath); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenameStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) => T.RenameStoragePath(storage, oldpath, newpath); + + [NativeFunction("SDL3", EntryPoint = "RenderClear")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderClear(SDL_Renderer* renderer) => T.RenderClear(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderClear(Ref renderer) => T.RenderClear(renderer); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderClipEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderClipEnabled(SDL_Renderer* renderer) => T.RenderClipEnabled(renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RenderClipEnabled(Ref renderer) => + T.RenderClipEnabled(renderer); + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesFromWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderCoordinatesFromWindow( + SDL_Renderer* renderer, + float window_x, + float window_y, + float* x, + float* y + ) => T.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderCoordinatesFromWindow( + Ref renderer, + float window_x, + float window_y, + Ref x, + Ref y + ) => T.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesToWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderCoordinatesToWindow( + SDL_Renderer* renderer, + float x, + float y, + float* window_x, + float* window_y + ) => T.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderCoordinatesToWindow( + Ref renderer, + float x, + float y, + Ref window_x, + Ref window_y + ) => T.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); + + [NativeFunction("SDL3", EntryPoint = "RenderFillRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderFillRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ) => T.RenderFillRect(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderFillRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) => T.RenderFillRect(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "RenderFillRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderFillRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ) => T.RenderFillRects(renderer, rects, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderFillRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) => T.RenderFillRects(renderer, rects, count); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometry")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderGeometry( + SDL_Renderer* renderer, + SDL_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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderGeometry( + Ref renderer, + 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); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometryRaw")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderGeometryRaw( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const float *")] float* xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] Color* 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.RenderGeometryRaw( + renderer, + texture, + xy, + xy_stride, + color, + color_stride, + uv, + uv_stride, + num_vertices, + indices, + num_indices, + size_indices + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderGeometryRaw( + Ref renderer, + Ref texture, + [NativeTypeName("const float *")] Ref xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] 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.RenderGeometryRaw( + renderer, + texture, + xy, + xy_stride, + color, + color_stride, + uv, + uv_stride, + num_vertices, + indices, + num_indices, + size_indices + ); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometryRawFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderGeometryRawFloat( + SDL_Renderer* renderer, + SDL_Texture* 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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderGeometryRawFloat( + Ref renderer, + Ref 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 + ); + + [NativeFunction("SDL3", EntryPoint = "RenderLine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderLine(SDL_Renderer* renderer, float x1, float y1, float x2, float y2) => + T.RenderLine(renderer, x1, y1, x2, y2); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderLine(Ref renderer, float x1, float y1, float x2, float y2) => + T.RenderLine(renderer, x1, y1, x2, y2); + + [NativeFunction("SDL3", EntryPoint = "RenderLines")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderLines( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ) => T.RenderLines(renderer, points, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderLines( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) => T.RenderLines(renderer, points, count); + + [NativeFunction("SDL3", EntryPoint = "RenderPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderPoint(SDL_Renderer* renderer, float x, float y) => + T.RenderPoint(renderer, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderPoint(Ref renderer, float x, float y) => + T.RenderPoint(renderer, x, y); + + [NativeFunction("SDL3", EntryPoint = "RenderPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderPoints( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ) => T.RenderPoints(renderer, points, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderPoints( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) => T.RenderPoints(renderer, points, count); + + [NativeFunction("SDL3", EntryPoint = "RenderPresent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderPresent(SDL_Renderer* renderer) => T.RenderPresent(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderPresent(Ref renderer) => T.RenderPresent(renderer); + + [NativeFunction("SDL3", EntryPoint = "RenderReadPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Surface* RenderReadPixels( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => T.RenderReadPixels(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public Ptr RenderReadPixels( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) => T.RenderReadPixels(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "RenderRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ) => T.RenderRect(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) => T.RenderRect(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "RenderRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ) => T.RenderRects(renderer, rects, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) => T.RenderRects(renderer, rects, count); + + [NativeFunction("SDL3", EntryPoint = "RenderTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderTexture( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => T.RenderTexture(renderer, texture, srcrect, dstrect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderTexture( + Ref renderer, + Ref texture, + [NativeTypeName("const SDL_FRect *")] Ref srcrect, + [NativeTypeName("const SDL_FRect *")] Ref dstrect + ) => T.RenderTexture(renderer, texture, srcrect, dstrect); + + [NativeFunction("SDL3", EntryPoint = "RenderTextureRotated")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderTextureRotated( + SDL_Renderer* renderer, + SDL_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 + ) => T.RenderTextureRotated(renderer, texture, srcrect, dstrect, angle, center, flip); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderTextureRotated( + Ref renderer, + 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 + ) => T.RenderTextureRotated(renderer, texture, srcrect, dstrect, angle, center, flip); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderViewportSet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RenderViewportSet(SDL_Renderer* renderer) => T.RenderViewportSet(renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool RenderViewportSet(Ref renderer) => + T.RenderViewportSet(renderer); + + [NativeFunction("SDL3", EntryPoint = "ReportAssertion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public AssertState ReportAssertion( + AssertData* data, + [NativeTypeName("const char *")] sbyte* func, + [NativeTypeName("const char *")] sbyte* file, + int line + ) => T.ReportAssertion(data, func, file, line); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public AssertState ReportAssertion( + Ref data, + [NativeTypeName("const char *")] Ref func, + [NativeTypeName("const char *")] Ref file, + int line + ) => T.ReportAssertion(data, func, file, line); + + [NativeFunction("SDL3", EntryPoint = "ResetAssertionReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ResetAssertionReport() => T.ResetAssertionReport(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ResetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ResetHint([NativeTypeName("const char *")] sbyte* name) => T.ResetHint(name); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) => + T.ResetHint(name); + + [NativeFunction("SDL3", EntryPoint = "ResetHints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ResetHints() => T.ResetHints(); + + [NativeFunction("SDL3", EntryPoint = "ResetKeyboard")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ResetKeyboard() => T.ResetKeyboard(); + + [NativeFunction("SDL3", EntryPoint = "RestoreWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RestoreWindow(SDL_Window* window) => T.RestoreWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RestoreWindow(Ref window) => T.RestoreWindow(window); + + [NativeFunction("SDL3", EntryPoint = "ResumeAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + T.ResumeAudioDevice(dev); + + [NativeFunction("SDL3", EntryPoint = "ResumeHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ResumeHaptic(SDL_Haptic* haptic) => T.ResumeHaptic(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ResumeHaptic(Ref haptic) => T.ResumeHaptic(haptic); + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RumbleGamepad( + SDL_Gamepad* 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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RumbleGamepad( + Ref 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); + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepadTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RumbleGamepadTriggers( + SDL_Gamepad* 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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RumbleGamepadTriggers( + Ref 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); + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RumbleJoystick( + SDL_Joystick* 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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RumbleJoystick( + Ref 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); + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystickTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RumbleJoystickTriggers( + SDL_Joystick* 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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RumbleJoystickTriggers( + Ref 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); + + [NativeFunction("SDL3", EntryPoint = "RunHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RunHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => T.RunHapticEffect(haptic, effect, iterations); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int RunHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => T.RunHapticEffect(haptic, effect, iterations); + + [NativeFunction("SDL3", EntryPoint = "SaveBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => + T.SaveBMP(surface, file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SaveBMP( + Ref surface, + [NativeTypeName("const char *")] Ref file + ) => T.SaveBMP(surface, file); + + [NativeFunction("SDL3", EntryPoint = "SaveBMPIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SaveBMPIO( + Surface* surface, + SDL_IOStream* dst, + [NativeTypeName("SDL_bool")] int closeio + ) => T.SaveBMPIO(surface, dst, closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SaveBMPIO( + Ref surface, + Ref dst, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) => T.SaveBMPIO(surface, dst, closeio); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ScreenKeyboardShown")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ScreenKeyboardShown(SDL_Window* window) => T.ScreenKeyboardShown(window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ScreenKeyboardShown(Ref window) => + T.ScreenKeyboardShown(window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool ScreenSaverEnabled() => T.ScreenSaverEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ScreenSaverEnabledRaw() => T.ScreenSaverEnabledRaw(); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "SeekIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public long SeekIO( + SDL_IOStream* context, + [NativeTypeName("Sint64")] long offset, + int whence + ) => T.SeekIO(context, offset, whence); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public long SeekIO( + Ref context, + [NativeTypeName("Sint64")] long offset, + int whence + ) => T.SeekIO(context, offset, whence); + + [NativeFunction("SDL3", EntryPoint = "SendGamepadEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SendGamepadEffect( + SDL_Gamepad* gamepad, + [NativeTypeName("const void *")] void* data, + int size + ) => T.SendGamepadEffect(gamepad, data, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SendGamepadEffect( + Ref gamepad, + [NativeTypeName("const void *")] Ref data, + int size + ) => T.SendGamepadEffect(gamepad, data, size); + + [NativeFunction("SDL3", EntryPoint = "SendJoystickEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SendJoystickEffect( + SDL_Joystick* joystick, + [NativeTypeName("const void *")] void* data, + int size + ) => T.SendJoystickEffect(joystick, data, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SendJoystickEffect( + Ref joystick, + [NativeTypeName("const void *")] Ref data, + int size + ) => T.SendJoystickEffect(joystick, data, size); + + [NativeFunction("SDL3", EntryPoint = "SetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + void* userdata + ) => T.SetAssertionHandler(handler, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + Ref userdata + ) => T.SetAssertionHandler(handler, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetAudioPostmixCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + void* userdata + ) => T.SetAudioPostmixCallback(devid, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + Ref userdata + ) => T.SetAudioPostmixCallback(devid, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioStreamFormat( + SDL_AudioStream* stream, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ) => T.SetAudioStreamFormat(stream, src_spec, dst_spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioStreamFormat( + Ref stream, + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ) => T.SetAudioStreamFormat(stream, src_spec, dst_spec); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioStreamFrequencyRatio(SDL_AudioStream* stream, float ratio) => + T.SetAudioStreamFrequencyRatio(stream, ratio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioStreamFrequencyRatio(Ref stream, float ratio) => + T.SetAudioStreamFrequencyRatio(stream, ratio); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamGetCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioStreamGetCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => T.SetAudioStreamGetCallback(stream, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioStreamGetCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) => T.SetAudioStreamGetCallback(stream, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamPutCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioStreamPutCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => T.SetAudioStreamPutCallback(stream, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetAudioStreamPutCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) => T.SetAudioStreamPutCallback(stream, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int value + ) => T.SetBooleanProperty(props, name, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool value + ) => T.SetBooleanProperty(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] + delegate* unmanaged cleanup, + void* userdata, + [NativeTypeName("const char **")] sbyte** mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ) => T.SetClipboardData(callback, cleanup, userdata, mime_types, num_mime_types); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] + delegate* unmanaged cleanup, + Ref userdata, + [NativeTypeName("const char **")] Ref2D mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ) => T.SetClipboardData(callback, cleanup, userdata, mime_types, num_mime_types); + + [NativeFunction("SDL3", EntryPoint = "SetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetClipboardText([NativeTypeName("const char *")] sbyte* text) => + T.SetClipboardText(text); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetClipboardText([NativeTypeName("const char *")] Ref text) => + T.SetClipboardText(text); + + [NativeFunction("SDL3", EntryPoint = "SetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetCursor(SDL_Cursor* cursor) => T.SetCursor(cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetCursor(Ref cursor) => T.SetCursor(cursor); + + [NativeFunction("SDL3", EntryPoint = "SetEventEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] int enabled + ) => T.SetEventEnabled(type, enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => T.SetEventEnabled(type, enabled); + + [NativeFunction("SDL3", EntryPoint = "SetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => T.SetEventFilter(filter, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) => T.SetEventFilter(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float value + ) => T.SetFloatProperty(props, name, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float value + ) => T.SetFloatProperty(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + T.SetGamepadEventsEnabled(enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled) => + T.SetGamepadEventsEnabled(enabled); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetGamepadLED( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => T.SetGamepadLED(gamepad, red, green, blue); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetGamepadLED( + Ref gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => T.SetGamepadLED(gamepad, red, green, blue); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] sbyte* mapping + ) => T.SetGamepadMapping(instance_id, mapping); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] Ref mapping + ) => T.SetGamepadMapping(instance_id, mapping); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetGamepadPlayerIndex(SDL_Gamepad* gamepad, int player_index) => + T.SetGamepadPlayerIndex(gamepad, player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetGamepadPlayerIndex(Ref gamepad, int player_index) => + T.SetGamepadPlayerIndex(gamepad, player_index); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetGamepadSensorEnabled( + SDL_Gamepad* gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] int enabled + ) => T.SetGamepadSensorEnabled(gamepad, type, enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetGamepadSensorEnabled( + Ref gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => T.SetGamepadSensorEnabled(gamepad, type, enabled); + + [NativeFunction("SDL3", EntryPoint = "SetHapticAutocenter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetHapticAutocenter(SDL_Haptic* haptic, int autocenter) => + T.SetHapticAutocenter(haptic, autocenter); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetHapticAutocenter(Ref haptic, int autocenter) => + T.SetHapticAutocenter(haptic, autocenter); + + [NativeFunction("SDL3", EntryPoint = "SetHapticGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetHapticGain(SDL_Haptic* haptic, int gain) => T.SetHapticGain(haptic, gain); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetHapticGain(Ref haptic, int gain) => T.SetHapticGain(haptic, gain); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetHint( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => T.SetHint(name, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetHint( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) => T.SetHint(name, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHintWithPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetHintWithPriority( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value, + HintPriority priority + ) => T.SetHintWithPriority(name, value, priority); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetHintWithPriority( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value, + HintPriority priority + ) => T.SetHintWithPriority(name, value, priority); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + T.SetJoystickEventsEnabled(enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled) => + T.SetJoystickEventsEnabled(enabled); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickLED( + SDL_Joystick* joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => T.SetJoystickLED(joystick, red, green, blue); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickLED( + Ref joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => T.SetJoystickLED(joystick, red, green, blue); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickPlayerIndex(SDL_Joystick* joystick, int player_index) => + T.SetJoystickPlayerIndex(joystick, player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickPlayerIndex(Ref joystick, int player_index) => + T.SetJoystickPlayerIndex(joystick, player_index); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickVirtualAxis( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => T.SetJoystickVirtualAxis(joystick, axis, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickVirtualAxis( + Ref joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => T.SetJoystickVirtualAxis(joystick, axis, value); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickVirtualButton( + SDL_Joystick* joystick, + int button, + [NativeTypeName("Uint8")] byte value + ) => T.SetJoystickVirtualButton(joystick, button, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickVirtualButton( + Ref joystick, + int button, + [NativeTypeName("Uint8")] byte value + ) => T.SetJoystickVirtualButton(joystick, button, value); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickVirtualHat( + SDL_Joystick* joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => T.SetJoystickVirtualHat(joystick, hat, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetJoystickVirtualHat( + Ref joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => T.SetJoystickVirtualHat(joystick, hat, value); + + [NativeFunction("SDL3", EntryPoint = "SetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + void* userdata + ) => T.SetLogOutputFunction(callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + Ref userdata + ) => T.SetLogOutputFunction(callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetModState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void SetModState(Keymod modstate) => T.SetModState(modstate); + + [NativeFunction("SDL3", EntryPoint = "SetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long value + ) => T.SetNumberProperty(props, name, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long value + ) => T.SetNumberProperty(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetPaletteColors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetPaletteColors( + Palette* palette, + [NativeTypeName("const SDL_Color *")] Color* colors, + int firstcolor, + int ncolors + ) => T.SetPaletteColors(palette, colors, firstcolor, ncolors); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetPaletteColors( + Ref palette, + [NativeTypeName("const SDL_Color *")] Ref colors, + int firstcolor, + int ncolors + ) => T.SetPaletteColors(palette, colors, firstcolor, ncolors); + + [NativeFunction("SDL3", EntryPoint = "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 = "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 = "SetProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value + ) => T.SetProperty(props, name, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value + ) => T.SetProperty(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetPropertyWithCleanup")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + void* userdata + ) => T.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + Ref userdata + ) => T.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled) => + T.SetRelativeMouseMode(enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRelativeMouseMode([NativeTypeName("SDL_bool")] MaybeBool enabled) => + T.SetRelativeMouseMode(enabled); + + [NativeFunction("SDL3", EntryPoint = "SetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderClipRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => T.SetRenderClipRect(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderClipRect( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) => T.SetRenderClipRect(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "SetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderColorScale(SDL_Renderer* renderer, float scale) => + T.SetRenderColorScale(renderer, scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderColorScale(Ref renderer, float scale) => + T.SetRenderColorScale(renderer, scale); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode blendMode) => + T.SetRenderDrawBlendMode(renderer, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderDrawBlendMode(Ref renderer, BlendMode blendMode) => + T.SetRenderDrawBlendMode(renderer, blendMode); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => T.SetRenderDrawColor(renderer, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => T.SetRenderDrawColor(renderer, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderDrawColorFloat( + SDL_Renderer* renderer, + float r, + float g, + float b, + float a + ) => T.SetRenderDrawColorFloat(renderer, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderDrawColorFloat( + Ref renderer, + float r, + float g, + float b, + float a + ) => T.SetRenderDrawColorFloat(renderer, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "SetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderLogicalPresentation( + SDL_Renderer* renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ) => T.SetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderLogicalPresentation( + Ref renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ) => T.SetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [NativeFunction("SDL3", EntryPoint = "SetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderScale(SDL_Renderer* renderer, float scaleX, float scaleY) => + T.SetRenderScale(renderer, scaleX, scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderScale(Ref renderer, float scaleX, float scaleY) => + T.SetRenderScale(renderer, scaleX, scaleY); + + [NativeFunction("SDL3", EntryPoint = "SetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderTarget(SDL_Renderer* renderer, SDL_Texture* texture) => + T.SetRenderTarget(renderer, texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderTarget(Ref renderer, Ref texture) => + T.SetRenderTarget(renderer, texture); + + [NativeFunction("SDL3", EntryPoint = "SetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderViewport( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => T.SetRenderViewport(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderViewport( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) => T.SetRenderViewport(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "SetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderVSync(SDL_Renderer* renderer, int vsync) => + T.SetRenderVSync(renderer, vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetRenderVSync(Ref renderer, int vsync) => + T.SetRenderVSync(renderer, vsync); + + [NativeFunction("SDL3", EntryPoint = "SetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => T.SetStringProperty(props, name, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) => T.SetStringProperty(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8")] byte alpha) => + T.SetSurfaceAlphaMod(surface, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceAlphaMod(Ref surface, [NativeTypeName("Uint8")] byte alpha) => + T.SetSurfaceAlphaMod(surface, alpha); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => + T.SetSurfaceBlendMode(surface, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceBlendMode(Ref surface, BlendMode blendMode) => + T.SetSurfaceBlendMode(surface, blendMode); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceClipRect( + Surface* surface, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => T.SetSurfaceClipRect(surface, rect); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SetSurfaceClipRect( + Ref surface, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) => T.SetSurfaceClipRect(surface, rect); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceColorKey( + Surface* surface, + int flag, + [NativeTypeName("Uint32")] uint key + ) => T.SetSurfaceColorKey(surface, flag, key); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceColorKey( + Ref surface, + int flag, + [NativeTypeName("Uint32")] uint key + ) => T.SetSurfaceColorKey(surface, flag, key); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => T.SetSurfaceColorMod(surface, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => T.SetSurfaceColorMod(surface, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => + T.SetSurfaceColorspace(surface, colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceColorspace(Ref surface, Colorspace colorspace) => + T.SetSurfaceColorspace(surface, colorspace); + + [NativeFunction("SDL3", EntryPoint = "SetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfacePalette(Surface* surface, Palette* palette) => + T.SetSurfacePalette(surface, palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfacePalette(Ref surface, Ref palette) => + T.SetSurfacePalette(surface, palette); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceRLE(Surface* surface, int flag) => T.SetSurfaceRLE(surface, flag); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetSurfaceRLE(Ref surface, int flag) => T.SetSurfaceRLE(surface, flag); + + [NativeFunction("SDL3", EntryPoint = "SetTextInputRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => + T.SetTextInputRect(rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) => + T.SetTextInputRect(rect); + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureAlphaMod(SDL_Texture* texture, [NativeTypeName("Uint8")] byte alpha) => + T.SetTextureAlphaMod(texture, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8")] byte alpha + ) => T.SetTextureAlphaMod(texture, alpha); + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureAlphaModFloat(SDL_Texture* texture, float alpha) => + T.SetTextureAlphaModFloat(texture, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureAlphaModFloat(Ref texture, float alpha) => + T.SetTextureAlphaModFloat(texture, alpha); + + [NativeFunction("SDL3", EntryPoint = "SetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureBlendMode(SDL_Texture* texture, BlendMode blendMode) => + T.SetTextureBlendMode(texture, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureBlendMode(Ref texture, BlendMode blendMode) => + T.SetTextureBlendMode(texture, blendMode); + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => T.SetTextureColorMod(texture, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => T.SetTextureColorMod(texture, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureColorModFloat(SDL_Texture* texture, float r, float g, float b) => + T.SetTextureColorModFloat(texture, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureColorModFloat(Ref texture, float r, float g, float b) => + T.SetTextureColorModFloat(texture, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "SetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureScaleMode(SDL_Texture* texture, ScaleMode scaleMode) => + T.SetTextureScaleMode(texture, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTextureScaleMode(Ref texture, ScaleMode scaleMode) => + T.SetTextureScaleMode(texture, scaleMode); + + [NativeFunction("SDL3", EntryPoint = "SetThreadPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetThreadPriority(ThreadPriority priority) => T.SetThreadPriority(priority); + + [NativeFunction("SDL3", EntryPoint = "SetTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] void* value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ) => T.SetTLS(id, value, destructor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] Ref value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ) => T.SetTLS(id, value, destructor); + + [NativeFunction("SDL3", EntryPoint = "SetWindowAlwaysOnTop")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowAlwaysOnTop( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int on_top + ) => T.SetWindowAlwaysOnTop(window, on_top); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowAlwaysOnTop( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool on_top + ) => T.SetWindowAlwaysOnTop(window, on_top); + + [NativeFunction("SDL3", EntryPoint = "SetWindowBordered")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowBordered( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int bordered + ) => T.SetWindowBordered(window, bordered); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowBordered( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool bordered + ) => T.SetWindowBordered(window, bordered); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFocusable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowFocusable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int focusable + ) => T.SetWindowFocusable(window, focusable); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowFocusable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool focusable + ) => T.SetWindowFocusable(window, focusable); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreen")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowFullscreen( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int fullscreen + ) => T.SetWindowFullscreen(window, fullscreen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowFullscreen( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool fullscreen + ) => T.SetWindowFullscreen(window, fullscreen); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowFullscreenMode( + SDL_Window* window, + [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode + ) => T.SetWindowFullscreenMode(window, mode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowFullscreenMode( + Ref window, + [NativeTypeName("const SDL_DisplayMode *")] Ref mode + ) => T.SetWindowFullscreenMode(window, mode); + + [NativeFunction("SDL3", EntryPoint = "SetWindowHitTest")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowHitTest( + SDL_Window* window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + void* callback_data + ) => T.SetWindowHitTest(window, callback, callback_data); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowHitTest( + Ref window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + Ref callback_data + ) => T.SetWindowHitTest(window, callback, callback_data); + + [NativeFunction("SDL3", EntryPoint = "SetWindowIcon")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowIcon(SDL_Window* window, Surface* icon) => + T.SetWindowIcon(window, icon); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowIcon(Ref window, Ref icon) => + T.SetWindowIcon(window, icon); + + [NativeFunction("SDL3", EntryPoint = "SetWindowInputFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowInputFocus(SDL_Window* window) => T.SetWindowInputFocus(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowInputFocus(Ref window) => T.SetWindowInputFocus(window); + + [NativeFunction("SDL3", EntryPoint = "SetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowKeyboardGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ) => T.SetWindowKeyboardGrab(window, grabbed); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowKeyboardGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) => T.SetWindowKeyboardGrab(window, grabbed); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowMaximumSize(SDL_Window* window, int max_w, int max_h) => + T.SetWindowMaximumSize(window, max_w, max_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowMaximumSize(Ref window, int max_w, int max_h) => + T.SetWindowMaximumSize(window, max_w, max_h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowMinimumSize(SDL_Window* window, int min_w, int min_h) => + T.SetWindowMinimumSize(window, min_w, min_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowMinimumSize(Ref window, int min_w, int min_h) => + T.SetWindowMinimumSize(window, min_w, min_h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowModalFor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowModalFor(SDL_Window* modal_window, SDL_Window* parent_window) => + T.SetWindowModalFor(modal_window, parent_window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowModalFor(Ref modal_window, Ref parent_window) => + T.SetWindowModalFor(modal_window, parent_window); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowMouseGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ) => T.SetWindowMouseGrab(window, grabbed); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowMouseGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) => T.SetWindowMouseGrab(window, grabbed); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowMouseRect( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => T.SetWindowMouseRect(window, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowMouseRect( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) => T.SetWindowMouseRect(window, rect); + + [NativeFunction("SDL3", EntryPoint = "SetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowOpacity(SDL_Window* window, float opacity) => + T.SetWindowOpacity(window, opacity); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowOpacity(Ref window, float opacity) => + T.SetWindowOpacity(window, opacity); + + [NativeFunction("SDL3", EntryPoint = "SetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowPosition(SDL_Window* window, int x, int y) => + T.SetWindowPosition(window, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowPosition(Ref window, int x, int y) => + T.SetWindowPosition(window, x, y); + + [NativeFunction("SDL3", EntryPoint = "SetWindowResizable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowResizable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int resizable + ) => T.SetWindowResizable(window, resizable); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowResizable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool resizable + ) => T.SetWindowResizable(window, resizable); + + [NativeFunction("SDL3", EntryPoint = "SetWindowShape")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowShape(SDL_Window* window, Surface* shape) => + T.SetWindowShape(window, shape); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowShape(Ref window, Ref shape) => + T.SetWindowShape(window, shape); + + [NativeFunction("SDL3", EntryPoint = "SetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowSize(SDL_Window* window, int w, int h) => T.SetWindowSize(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowSize(Ref window, int w, int h) => + T.SetWindowSize(window, w, h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowTitle( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* title + ) => T.SetWindowTitle(window, title); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SetWindowTitle( + Ref window, + [NativeTypeName("const char *")] Ref title + ) => T.SetWindowTitle(window, title); + + [NativeFunction("SDL3", EntryPoint = "ShowCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ShowCursor() => T.ShowCursor(); + + [NativeFunction("SDL3", EntryPoint = "ShowMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, + int* buttonid + ) => T.ShowMessageBox(messageboxdata, buttonid); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, + Ref buttonid + ) => T.ShowMessageBox(messageboxdata, buttonid); + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ) => + T.ShowOpenFileDialog(callback, userdata, window, filters, default_location, allow_many); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) => + T.ShowOpenFileDialog(callback, userdata, window, filters, default_location, allow_many); + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFolderDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ) => T.ShowOpenFolderDialog(callback, userdata, window, default_location, allow_many); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) => T.ShowOpenFolderDialog(callback, userdata, window, default_location, allow_many); + + [NativeFunction("SDL3", EntryPoint = "ShowSaveFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location + ) => T.ShowSaveFileDialog(callback, userdata, window, filters, default_location); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location + ) => T.ShowSaveFileDialog(callback, userdata, window, filters, default_location); + + [NativeFunction("SDL3", EntryPoint = "ShowSimpleMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] sbyte* title, + [NativeTypeName("const char *")] sbyte* message, + SDL_Window* window + ) => T.ShowSimpleMessageBox(flags, title, message, window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] Ref title, + [NativeTypeName("const char *")] Ref message, + Ref window + ) => T.ShowSimpleMessageBox(flags, title, message, window); + + [NativeFunction("SDL3", EntryPoint = "ShowWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ShowWindow(SDL_Window* window) => T.ShowWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ShowWindow(Ref window) => T.ShowWindow(window); + + [NativeFunction("SDL3", EntryPoint = "ShowWindowSystemMenu")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ShowWindowSystemMenu(SDL_Window* window, int x, int y) => + T.ShowWindowSystemMenu(window, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int ShowWindowSystemMenu(Ref window, int x, int y) => + T.ShowWindowSystemMenu(window, x, y); + + [NativeFunction("SDL3", EntryPoint = "SignalCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SignalCondition(SDL_Condition* cond) => T.SignalCondition(cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SignalCondition(Ref cond) => T.SignalCondition(cond); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SimdGetAlignment")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public nuint SimdGetAlignment() => T.SimdGetAlignment(); + + [NativeFunction("SDL3", EntryPoint = "SoftStretch")] + [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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SoftStretch")] + [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); + + [NativeFunction("SDL3", EntryPoint = "StartTextInput")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void StartTextInput() => T.StartTextInput(); + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int StopHapticEffect(SDL_Haptic* haptic, int effect) => + T.StopHapticEffect(haptic, effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int StopHapticEffect(Ref haptic, int effect) => + T.StopHapticEffect(haptic, effect); + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int StopHapticEffects(SDL_Haptic* haptic) => T.StopHapticEffects(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int StopHapticEffects(Ref haptic) => T.StopHapticEffects(haptic); + + [NativeFunction("SDL3", EntryPoint = "StopHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int StopHapticRumble(SDL_Haptic* haptic) => T.StopHapticRumble(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int StopHapticRumble(Ref haptic) => T.StopHapticRumble(haptic); + + [NativeFunction("SDL3", EntryPoint = "StopTextInput")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void StopTextInput() => T.StopTextInput(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "StorageReady")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int StorageReady(SDL_Storage* storage) => T.StorageReady(storage); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool StorageReady(Ref storage) => T.StorageReady(storage); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SurfaceHasColorKey(Surface* surface) => T.SurfaceHasColorKey(surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SurfaceHasColorKey(Ref surface) => + T.SurfaceHasColorKey(surface); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SurfaceHasRLE(Surface* surface) => T.SurfaceHasRLE(surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool SurfaceHasRLE(Ref surface) => T.SurfaceHasRLE(surface); + + [NativeFunction("SDL3", EntryPoint = "SyncWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SyncWindow(SDL_Window* window) => T.SyncWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int SyncWindow(Ref window) => T.SyncWindow(window); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "TellIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public long TellIO(SDL_IOStream* context) => T.TellIO(context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public long TellIO(Ref context) => T.TellIO(context); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool TextInputActive() => T.TextInputActive(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TextInputActiveRaw() => T.TextInputActiveRaw(); + + [return: NativeTypeName("SDL_Time")] + [NativeFunction("SDL3", EntryPoint = "TimeFromWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public long TimeFromWindows( + [NativeTypeName("Uint32")] uint dwLowDateTime, + [NativeTypeName("Uint32")] uint dwHighDateTime + ) => T.TimeFromWindows(dwLowDateTime, dwHighDateTime); + + [NativeFunction("SDL3", EntryPoint = "TimeToDateTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + DateTime* dt, + [NativeTypeName("SDL_bool")] int localTime + ) => T.TimeToDateTime(ticks, dt, localTime); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + Ref dt, + [NativeTypeName("SDL_bool")] MaybeBool localTime + ) => T.TimeToDateTime(ticks, dt, localTime); + + [NativeFunction("SDL3", EntryPoint = "TimeToWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] uint* dwLowDateTime, + [NativeTypeName("Uint32 *")] uint* dwHighDateTime + ) => T.TimeToWindows(ticks, dwLowDateTime, dwHighDateTime); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] Ref dwLowDateTime, + [NativeTypeName("Uint32 *")] Ref dwHighDateTime + ) => T.TimeToWindows(ticks, dwLowDateTime, dwHighDateTime); + + [NativeFunction("SDL3", EntryPoint = "TryLockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TryLockMutex(SDL_Mutex* mutex) => T.TryLockMutex(mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TryLockMutex(Ref mutex) => T.TryLockMutex(mutex); + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TryLockRWLockForReading(SDL_RWLock* rwlock) => T.TryLockRWLockForReading(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TryLockRWLockForReading(Ref rwlock) => + T.TryLockRWLockForReading(rwlock); + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TryLockRWLockForWriting(SDL_RWLock* rwlock) => T.TryLockRWLockForWriting(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TryLockRWLockForWriting(Ref rwlock) => + T.TryLockRWLockForWriting(rwlock); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "TryLockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + T.TryLockSpinlock(@lock); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => + T.TryLockSpinlock(@lock); + + [NativeFunction("SDL3", EntryPoint = "TryWaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TryWaitSemaphore(SDL_Semaphore* sem) => T.TryWaitSemaphore(sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int TryWaitSemaphore(Ref sem) => T.TryWaitSemaphore(sem); + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnbindAudioStream(SDL_AudioStream* stream) => T.UnbindAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnbindAudioStream(Ref stream) => T.UnbindAudioStream(stream); + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnbindAudioStreams(SDL_AudioStream** streams, int num_streams) => + T.UnbindAudioStreams(streams, num_streams); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnbindAudioStreams(Ref2D streams, int num_streams) => + T.UnbindAudioStreams(streams, num_streams); + + [NativeFunction("SDL3", EntryPoint = "UnloadObject")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnloadObject(void* handle) => T.UnloadObject(handle); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnloadObject(Ref handle) => T.UnloadObject(handle); + + [NativeFunction("SDL3", EntryPoint = "UnlockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UnlockAudioStream(SDL_AudioStream* stream) => T.UnlockAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UnlockAudioStream(Ref stream) => T.UnlockAudioStream(stream); + + [NativeFunction("SDL3", EntryPoint = "UnlockJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockJoysticks() => T.UnlockJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "UnlockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockMutex(SDL_Mutex* mutex) => T.UnlockMutex(mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockMutex(Ref mutex) => T.UnlockMutex(mutex); + + [NativeFunction("SDL3", EntryPoint = "UnlockProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + T.UnlockProperties(props); + + [NativeFunction("SDL3", EntryPoint = "UnlockRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockRWLock(SDL_RWLock* rwlock) => T.UnlockRWLock(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockRWLock(Ref rwlock) => T.UnlockRWLock(rwlock); + + [NativeFunction("SDL3", EntryPoint = "UnlockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + T.UnlockSpinlock(@lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => + T.UnlockSpinlock(@lock); + + [NativeFunction("SDL3", EntryPoint = "UnlockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockSurface(Surface* surface) => T.UnlockSurface(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockSurface(Ref surface) => T.UnlockSurface(surface); + + [NativeFunction("SDL3", EntryPoint = "UnlockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UnlockTexture(SDL_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 = "UpdateGamepads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UpdateGamepads() => T.UpdateGamepads(); + + [NativeFunction("SDL3", EntryPoint = "UpdateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data + ) => T.UpdateHapticEffect(haptic, effect, data); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] Ref data + ) => T.UpdateHapticEffect(haptic, effect, data); + + [NativeFunction("SDL3", EntryPoint = "UpdateJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UpdateJoysticks() => T.UpdateJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "UpdateNVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateNVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* UVplane, + int UVpitch + ) => T.UpdateNVTexture(texture, rect, Yplane, Ypitch, UVplane, UVpitch); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateNVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref UVplane, + int UVpitch + ) => T.UpdateNVTexture(texture, rect, Yplane, Ypitch, UVplane, UVpitch); + + [NativeFunction("SDL3", EntryPoint = "UpdateSensors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void UpdateSensors() => T.UpdateSensors(); + + [NativeFunction("SDL3", EntryPoint = "UpdateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const void *")] void* pixels, + int pitch + ) => T.UpdateTexture(texture, rect, pixels, pitch); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const void *")] Ref pixels, + int pitch + ) => T.UpdateTexture(texture, rect, pixels, pitch); + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateWindowSurface(SDL_Window* window) => T.UpdateWindowSurface(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateWindowSurface(Ref window) => T.UpdateWindowSurface(window); + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateWindowSurfaceRects( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int numrects + ) => T.UpdateWindowSurfaceRects(window, rects, numrects); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateWindowSurfaceRects( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int numrects + ) => T.UpdateWindowSurfaceRects(window, rects, numrects); + + [NativeFunction("SDL3", EntryPoint = "UpdateYUVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateYUVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] byte* Vplane, + int Vpitch + ) => T.UpdateYUVTexture(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int UpdateYUVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] Ref Vplane, + int Vpitch + ) => T.UpdateYUVTexture(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); + + [NativeFunction("SDL3", EntryPoint = "WaitCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitCondition(SDL_Condition* cond, SDL_Mutex* mutex) => + T.WaitCondition(cond, mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitCondition(Ref cond, Ref mutex) => + T.WaitCondition(cond, mutex); + + [NativeFunction("SDL3", EntryPoint = "WaitConditionTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitConditionTimeout( + SDL_Condition* cond, + SDL_Mutex* mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => T.WaitConditionTimeout(cond, mutex, timeoutMS); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitConditionTimeout( + Ref cond, + Ref mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => T.WaitConditionTimeout(cond, mutex, timeoutMS); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitEvent(Event* @event) => T.WaitEvent(@event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WaitEvent(Ref @event) => T.WaitEvent(@event); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEventTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => + T.WaitEventTimeout(@event, timeoutMS); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WaitEventTimeout( + Ref @event, + [NativeTypeName("Sint32")] int timeoutMS + ) => T.WaitEventTimeout(@event, timeoutMS); + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitSemaphore(SDL_Semaphore* sem) => T.WaitSemaphore(sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitSemaphore(Ref sem) => T.WaitSemaphore(sem); + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphoreTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitSemaphoreTimeout( + SDL_Semaphore* sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => T.WaitSemaphoreTimeout(sem, timeoutMS); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WaitSemaphoreTimeout( + Ref sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => T.WaitSemaphoreTimeout(sem, timeoutMS); + + [NativeFunction("SDL3", EntryPoint = "WaitThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void WaitThread(SDL_Thread* thread, int* status) => T.WaitThread(thread, status); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void WaitThread(Ref thread, Ref status) => + T.WaitThread(thread, status); + + [NativeFunction("SDL3", EntryPoint = "WarpMouseGlobal")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WarpMouseGlobal(float x, float y) => T.WarpMouseGlobal(x, y); + + [NativeFunction("SDL3", EntryPoint = "WarpMouseInWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void WarpMouseInWindow(SDL_Window* window, float x, float y) => + T.WarpMouseInWindow(window, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public void WarpMouseInWindow(Ref window, float x, float y) => + T.WarpMouseInWindow(window, x, y); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "WasInit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public uint WasInit([NativeTypeName("Uint32")] uint flags) => T.WasInit(flags); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WindowHasSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WindowHasSurface(SDL_Window* window) => T.WindowHasSurface(window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WindowHasSurface(Ref window) => + T.WindowHasSurface(window); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "WriteIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public nuint WriteIO( + SDL_IOStream* context, + [NativeTypeName("const void *")] void* ptr, + [NativeTypeName("size_t")] nuint size + ) => T.WriteIO(context, ptr, size); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public nuint WriteIO( + Ref context, + [NativeTypeName("const void *")] Ref ptr, + [NativeTypeName("size_t")] nuint size + ) => T.WriteIO(context, ptr, size); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteS16BE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value) => + T.WriteS16BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteS16BE( + Ref dst, + [NativeTypeName("Sint16")] short value + ) => T.WriteS16BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteS16LE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value) => + T.WriteS16LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteS16LE( + Ref dst, + [NativeTypeName("Sint16")] short value + ) => T.WriteS16LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteS32BE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value) => + T.WriteS32BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteS32BE( + Ref dst, + [NativeTypeName("Sint32")] int value + ) => T.WriteS32BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteS32LE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value) => + T.WriteS32LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteS32LE( + Ref dst, + [NativeTypeName("Sint32")] int value + ) => T.WriteS32LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteS64BE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value) => + T.WriteS64BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteS64BE( + Ref dst, + [NativeTypeName("Sint64")] long value + ) => T.WriteS64BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteS64LE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value) => + T.WriteS64LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteS64LE( + Ref dst, + [NativeTypeName("Sint64")] long value + ) => T.WriteS64LE(dst, value); + + [NativeFunction("SDL3", EntryPoint = "WriteStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const void *")] void* source, + [NativeTypeName("Uint64")] ulong length + ) => T.WriteStorageFile(storage, path, source, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteStorageFile( + Ref 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")] + [NativeFunction("SDL3", EntryPoint = "WriteU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteU16BE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value) => + T.WriteU16BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteU16BE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ) => T.WriteU16BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteU16LE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value) => + T.WriteU16LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteU16LE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ) => T.WriteU16LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteU32BE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value) => + T.WriteU32BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteU32BE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ) => T.WriteU32BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteU32LE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value) => + T.WriteU32LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteU32LE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ) => T.WriteU32LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteU64BE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value) => + T.WriteU64BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteU64BE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ) => T.WriteU64BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteU64LE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value) => + T.WriteU64LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteU64LE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ) => T.WriteU64LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public int WriteU8(SDL_IOStream* dst, [NativeTypeName("Uint8")] byte value) => + T.WriteU8(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public MaybeBool WriteU8( + Ref dst, + [NativeTypeName("Uint8")] byte value + ) => T.WriteU8(dst, value); + } + + public partial class ThisThread + { + [NativeFunction("SDL3", EntryPoint = "AcquireCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* AcquireCameraFrame( + SDL_Camera* camera, + [NativeTypeName("Uint64 *")] ulong* timestampNS + ) => Underlying.Value!.AcquireCameraFrame(camera, timestampNS); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AcquireCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr AcquireCameraFrame( + Ref camera, + [NativeTypeName("Uint64 *")] Ref timestampNS + ) + { + fixed (ulong* __dsl_timestampNS = timestampNS) + fixed (SDL_Camera* __dsl_camera = camera) + { + return (Surface*)AcquireCameraFrame(__dsl_camera, __dsl_timestampNS); + } + } + + [NativeFunction("SDL3", EntryPoint = "AddEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => Underlying.Value!.AddEventWatch(filter, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (int)AddEventWatch(filter, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping) => + Underlying.Value!.AddGamepadMapping(mapping); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddGamepadMapping([NativeTypeName("const char *")] Ref mapping) + { + fixed (sbyte* __dsl_mapping = mapping) + { + return (int)AddGamepadMapping(__dsl_mapping); + } + } + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddGamepadMappingsFromFile( + [NativeTypeName("const char *")] sbyte* file + ) => Underlying.Value!.AddGamepadMappingsFromFile(file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddGamepadMappingsFromFile( + [NativeTypeName("const char *")] Ref file + ) + { + fixed (sbyte* __dsl_file = file) + { + return (int)AddGamepadMappingsFromFile(__dsl_file); + } + } + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddGamepadMappingsFromIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio + ) => Underlying.Value!.AddGamepadMappingsFromIO(src, closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddGamepadMappingsFromIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (SDL_IOStream* __dsl_src = src) + { + return (int)AddGamepadMappingsFromIO(__dsl_src, (int)closeio); + } + } + + [NativeFunction("SDL3", EntryPoint = "AddHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ) => Underlying.Value!.AddHintCallback(name, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_name = name) + { + return (int)AddHintCallback(__dsl_name, callback, __dsl_userdata); + } + } + + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "AddTimer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + void* param2 + ) => Underlying.Value!.AddTimer(interval, callback, param2); + + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + Ref param2 + ) + { + fixed (void* __dsl_param2 = param2) + { + return (uint)AddTimer(interval, callback, __dsl_param2); + } + } + + [NativeFunction("SDL3", EntryPoint = "AddVulkanRenderSemaphores")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddVulkanRenderSemaphores( + SDL_Renderer* 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_AddVulkanRenderSemaphores")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AddVulkanRenderSemaphores( + Ref renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)AddVulkanRenderSemaphores( + __dsl_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 = "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 = "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 = "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) + { + return (MaybeBool) + (int)AtomicCompareAndSwapPointer(__dsl_a, __dsl_oldval, __dsl_newval); + } + } + + [NativeFunction("SDL3", EntryPoint = "AtomicGet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AtomicGet(AtomicInt* a) => Underlying.Value!.AtomicGet(a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AtomicGet(Ref a) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)AtomicGet(__dsl_a); + } + } + + [NativeFunction("SDL3", EntryPoint = "AtomicGetPtr")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* AtomicGetPtr(void** a) => Underlying.Value!.AtomicGetPtr(a); + + [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); + } + } + + [NativeFunction("SDL3", EntryPoint = "AtomicSet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AtomicSet(AtomicInt* a, int v) => Underlying.Value!.AtomicSet(a, 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); + } + } + + [NativeFunction("SDL3", EntryPoint = "AtomicSetPtr")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* AtomicSetPtr(void** a, void* v) => Underlying.Value!.AtomicSetPtr(a, v); + + [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); + } + } + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "AttachVirtualJoystick")] + [MethodImpl( + 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 = "AttachVirtualJoystickEx")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint AttachVirtualJoystickEx( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc + ) => Underlying.Value!.AttachVirtualJoystickEx(desc); + + [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 + ) + { + fixed (VirtualJoystickDesc* __dsl_desc = desc) + { + return (uint)AttachVirtualJoystickEx(__dsl_desc); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool AudioDevicePaused( + [NativeTypeName("SDL_AudioDeviceID")] uint dev + ) => Underlying.Value!.AudioDevicePaused(dev); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int AudioDevicePausedRaw([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + Underlying.Value!.AudioDevicePausedRaw(dev); + + [NativeFunction("SDL3", EntryPoint = "BindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream* stream + ) => Underlying.Value!.BindAudioStream(devid, stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref stream + ) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)BindAudioStream(devid, __dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "BindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream** streams, + int num_streams + ) => Underlying.Value!.BindAudioStreams(devid, streams, num_streams); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref2D streams, + int num_streams + ) + { + fixed (SDL_AudioStream** __dsl_streams = streams) + { + return (int)BindAudioStreams(devid, __dsl_streams, num_streams); + } + } + + [NativeFunction("SDL3", EntryPoint = "BlitSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect + ) => Underlying.Value!.BlitSurface(src, srcrect, dst, dstrect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (int)BlitSurface(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); + } + } + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurfaceScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect, + ScaleMode scaleMode + ) => Underlying.Value!.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurfaceScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + 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)BlitSurfaceScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUnchecked")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurfaceUnchecked( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => Underlying.Value!.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurfaceUnchecked( + 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 (int)BlitSurfaceUnchecked( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUncheckedScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurfaceUncheckedScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ) => Underlying.Value!.BlitSurfaceUncheckedScaled(src, srcrect, dst, dstrect, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BlitSurfaceUncheckedScaled( + 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)BlitSurfaceUncheckedScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "BroadcastCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BroadcastCondition(SDL_Condition* cond) => + Underlying.Value!.BroadcastCondition(cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int BroadcastCondition(Ref cond) + { + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)BroadcastCondition(__dsl_cond); + } + } + + [NativeFunction("SDL3", EntryPoint = "CaptureMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CaptureMouse([NativeTypeName("SDL_bool")] int enabled) => + Underlying.Value!.CaptureMouse(enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => + Underlying.Value!.CaptureMouse(enabled); + + [NativeFunction("SDL3", EntryPoint = "CleanupTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CleanupTLS() => Underlying.Value!.CleanupTLS(); + + [NativeFunction("SDL3", EntryPoint = "ClearAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ClearAudioStream(SDL_AudioStream* stream) => + Underlying.Value!.ClearAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ClearAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)ClearAudioStream(__dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "ClearClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ClearClipboardData() => Underlying.Value!.ClearClipboardData(); + + [NativeFunction("SDL3", EntryPoint = "ClearComposition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ClearComposition() => Underlying.Value!.ClearComposition(); + + [NativeFunction("SDL3", EntryPoint = "ClearError")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ClearError() => Underlying.Value!.ClearError(); + + [NativeFunction("SDL3", EntryPoint = "ClearProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => Underlying.Value!.ClearProperty(props, name); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)ClearProperty(props, __dsl_name); + } + } + + [NativeFunction("SDL3", EntryPoint = "CloseAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + Underlying.Value!.CloseAudioDevice(devid); + + [NativeFunction("SDL3", EntryPoint = "CloseCamera")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseCamera(SDL_Camera* camera) => Underlying.Value!.CloseCamera(camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseCamera")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseCamera(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + CloseCamera(__dsl_camera); + } + } + + [NativeFunction("SDL3", EntryPoint = "CloseGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseGamepad(SDL_Gamepad* gamepad) => + Underlying.Value!.CloseGamepad(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseGamepad(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + CloseGamepad(__dsl_gamepad); + } + } + + [NativeFunction("SDL3", EntryPoint = "CloseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseHaptic(SDL_Haptic* haptic) => Underlying.Value!.CloseHaptic(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseHaptic(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + CloseHaptic(__dsl_haptic); + } + } + + [NativeFunction("SDL3", EntryPoint = "CloseIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CloseIO(SDL_IOStream* context) => Underlying.Value!.CloseIO(context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CloseIO(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (int)CloseIO(__dsl_context); + } + } + + [NativeFunction("SDL3", EntryPoint = "CloseJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseJoystick(SDL_Joystick* joystick) => + Underlying.Value!.CloseJoystick(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseJoystick(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + CloseJoystick(__dsl_joystick); + } + } + + [NativeFunction("SDL3", EntryPoint = "CloseSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseSensor(SDL_Sensor* sensor) => Underlying.Value!.CloseSensor(sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void CloseSensor(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + CloseSensor(__dsl_sensor); + } + } + + [NativeFunction("SDL3", EntryPoint = "CloseStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CloseStorage(SDL_Storage* storage) => + Underlying.Value!.CloseStorage(storage); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CloseStorage(Ref storage) + { + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)CloseStorage(__dsl_storage); + } + } + + [NativeFunction("SDL3", EntryPoint = "ComposeCustomBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static BlendMode ComposeCustomBlendMode( + BlendFactor srcColorFactor, + BlendFactor dstColorFactor, + BlendOperation colorOperation, + BlendFactor srcAlphaFactor, + BlendFactor dstAlphaFactor, + BlendOperation alphaOperation + ) => + Underlying.Value!.ComposeCustomBlendMode( + srcColorFactor, + dstColorFactor, + colorOperation, + srcAlphaFactor, + dstAlphaFactor, + alphaOperation + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertAudioSamples")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const Uint8 *")] byte* src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec, + [NativeTypeName("Uint8 **")] byte** dst_data, + int* dst_len + ) => + Underlying.Value!.ConvertAudioSamples( + src_spec, + src_data, + src_len, + dst_spec, + dst_data, + dst_len + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const Uint8 *")] Ref src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec, + [NativeTypeName("Uint8 **")] Ref2D dst_data, + Ref dst_len + ) + { + fixed (int* __dsl_dst_len = dst_len) + fixed (byte** __dsl_dst_data = dst_data) + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + 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 + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "ConvertEventToRenderCoordinates")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertEventToRenderCoordinates(SDL_Renderer* renderer, Event* @event) => + Underlying.Value!.ConvertEventToRenderCoordinates(renderer, @event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertEventToRenderCoordinates( + Ref renderer, + Ref @event + ) + { + fixed (Event* __dsl_event = @event) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)ConvertEventToRenderCoordinates(__dsl_renderer, __dsl_event); + } + } + + [NativeFunction("SDL3", EntryPoint = "ConvertPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ) => + Underlying.Value!.ConvertPixels( + width, + height, + src_format, + src, + src_pitch, + dst_format, + dst, + dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + 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 + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "ConvertPixelsAndColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + void* dst, + int dst_pitch + ) => + Underlying.Value!.ConvertPixelsAndColorspace( + width, + height, + src_format, + src_colorspace, + src_properties, + src, + src_pitch, + dst_format, + dst_colorspace, + dst_properties, + dst, + dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + Ref dst, + 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 + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "ConvertSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* ConvertSurface( + Surface* surface, + [NativeTypeName("const SDL_PixelFormat *")] 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 + ) + { + fixed (PixelFormat* __dsl_format = format) + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)ConvertSurface(__dsl_surface, __dsl_format); + } + } + + [NativeFunction("SDL3", EntryPoint = "ConvertSurfaceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* ConvertSurfaceFormat( + Surface* surface, + PixelFormatEnum pixel_format + ) => Underlying.Value!.ConvertSurfaceFormat(surface, pixel_format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr ConvertSurfaceFormat( + Ref surface, + PixelFormatEnum pixel_format + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)ConvertSurfaceFormat(__dsl_surface, pixel_format); + } + } + + [NativeFunction("SDL3", EntryPoint = "ConvertSurfaceFormatAndColorspace")] + [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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr ConvertSurfaceFormatAndColorspace( + Ref surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)ConvertSurfaceFormatAndColorspace( + __dsl_surface, + pixel_format, + colorspace, + props + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "CopyProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ) => Underlying.Value!.CopyProperties(src, dst); + + [NativeFunction("SDL3", EntryPoint = "CreateAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_AudioStream* CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ) => Underlying.Value!.CreateAudioStream(src_spec, dst_spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ) + { + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + fixed (AudioSpec* __dsl_src_spec = src_spec) + { + return (SDL_AudioStream*)CreateAudioStream(__dsl_src_spec, __dsl_dst_spec); + } + } + + [NativeFunction("SDL3", EntryPoint = "CreateColorCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Cursor* CreateColorCursor(Surface* surface, int hot_x, int hot_y) => + Underlying.Value!.CreateColorCursor(surface, hot_x, hot_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateColorCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateColorCursor(Ref surface, int hot_x, int hot_y) + { + fixed (Surface* __dsl_surface = surface) + { + return (SDL_Cursor*)CreateColorCursor(__dsl_surface, hot_x, hot_y); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateCondition() => Underlying.Value!.CreateCondition(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Condition* CreateConditionRaw() => Underlying.Value!.CreateConditionRaw(); + + [NativeFunction("SDL3", EntryPoint = "CreateCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Cursor* CreateCursor( + [NativeTypeName("const Uint8 *")] byte* data, + [NativeTypeName("const Uint8 *")] byte* mask, + int w, + int h, + int hot_x, + int hot_y + ) => Underlying.Value!.CreateCursor(data, mask, w, h, hot_x, hot_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateCursor( + [NativeTypeName("const Uint8 *")] Ref data, + [NativeTypeName("const Uint8 *")] Ref mask, + int w, + int h, + int hot_x, + int hot_y + ) + { + fixed (byte* __dsl_mask = mask) + fixed (byte* __dsl_data = data) + { + return (SDL_Cursor*)CreateCursor(__dsl_data, __dsl_mask, w, h, hot_x, hot_y); + } + } + + [NativeFunction("SDL3", EntryPoint = "CreateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateDirectory([NativeTypeName("const char *")] sbyte* path) => + Underlying.Value!.CreateDirectory(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateDirectory([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (int)CreateDirectory(__dsl_path); + } + } + + [NativeFunction("SDL3", EntryPoint = "CreateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateHapticEffect( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ) => Underlying.Value!.CreateHapticEffect(haptic, effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateHapticEffect( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) + { + fixed (HapticEffect* __dsl_effect = effect) + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)CreateHapticEffect(__dsl_haptic, __dsl_effect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateMutex() => Underlying.Value!.CreateMutex(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Mutex* CreateMutexRaw() => Underlying.Value!.CreateMutexRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreatePalette(int ncolors) => + Underlying.Value!.CreatePalette(ncolors); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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 = "CreatePopupWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* CreatePopupWindow( + SDL_Window* parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => Underlying.Value!.CreatePopupWindow(parent, offset_x, offset_y, w, h, flags); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreatePopupWindow( + Ref parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) + { + fixed (SDL_Window* __dsl_parent = parent) + { + return (SDL_Window*)CreatePopupWindow( + __dsl_parent, + offset_x, + offset_y, + w, + h, + flags + ); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "CreateProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint CreateProperties() => Underlying.Value!.CreateProperties(); + + [NativeFunction("SDL3", EntryPoint = "CreateRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Renderer* CreateRenderer( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Uint32")] uint flags + ) => Underlying.Value!.CreateRenderer(window, name, flags); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateRenderer( + Ref window, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Uint32")] uint flags + ) + { + fixed (sbyte* __dsl_name = name) + fixed (SDL_Window* __dsl_window = window) + { + return (SDL_Renderer*)CreateRenderer(__dsl_window, __dsl_name, flags); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateRendererWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.CreateRendererWithProperties(props); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Renderer* CreateRendererWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.CreateRendererWithPropertiesRaw(props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateRWLock() => Underlying.Value!.CreateRWLock(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_RWLock* CreateRWLockRaw() => Underlying.Value!.CreateRWLockRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSemaphore( + [NativeTypeName("Uint32")] uint initial_value + ) => Underlying.Value!.CreateSemaphore(initial_value); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Semaphore* CreateSemaphoreRaw( + [NativeTypeName("Uint32")] uint initial_value + ) => Underlying.Value!.CreateSemaphoreRaw(initial_value); + + [NativeFunction("SDL3", EntryPoint = "CreateSoftwareRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Renderer* CreateSoftwareRenderer(Surface* surface) => + Underlying.Value!.CreateSoftwareRenderer(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSoftwareRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSoftwareRenderer(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (SDL_Renderer*)CreateSoftwareRenderer(__dsl_surface); + } + } + + [NativeFunction("SDL3", EntryPoint = "CreateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ) => Underlying.Value!.CreateStorageDirectory(storage, path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)CreateStorageDirectory(__dsl_storage, __dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSurface(int width, int height, PixelFormatEnum format) => + Underlying.Value!.CreateSurface(width, height, format); + + [NativeFunction("SDL3", EntryPoint = "CreateSurfaceFrom")] + [MethodImpl( + 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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurfaceFrom")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSurfaceFrom( + Ref pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ) + { + fixed (void* __dsl_pixels = pixels) + { + return (Surface*)CreateSurfaceFrom(__dsl_pixels, width, height, pitch, format); + } + } + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* CreateSurfaceRaw(int width, int height, PixelFormatEnum format) => + Underlying.Value!.CreateSurfaceRaw(width, height, format); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateSystemCursor(SystemCursor id) => + Underlying.Value!.CreateSystemCursor(id); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Cursor* CreateSystemCursorRaw(SystemCursor id) => + Underlying.Value!.CreateSystemCursorRaw(id); + + [NativeFunction("SDL3", EntryPoint = "CreateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Texture* CreateTexture( + SDL_Renderer* renderer, + PixelFormatEnum format, + int access, + int w, + int h + ) => Underlying.Value!.CreateTexture(renderer, format, access, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateTexture( + Ref renderer, + PixelFormatEnum format, + int access, + int w, + int h + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)CreateTexture(__dsl_renderer, format, access, w, h); + } + } + + [NativeFunction("SDL3", EntryPoint = "CreateTextureFromSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Texture* CreateTextureFromSurface( + SDL_Renderer* renderer, + Surface* surface + ) => Underlying.Value!.CreateTextureFromSurface(renderer, surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateTextureFromSurface( + Ref renderer, + Ref surface + ) + { + fixed (Surface* __dsl_surface = surface) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)CreateTextureFromSurface(__dsl_renderer, __dsl_surface); + } + } + + [NativeFunction("SDL3", EntryPoint = "CreateTextureWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Texture* CreateTextureWithProperties( + SDL_Renderer* renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.CreateTextureWithProperties(renderer, props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateTextureWithProperties( + Ref renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)CreateTextureWithProperties(__dsl_renderer, props); + } + } + + [NativeFunction("SDL3", EntryPoint = "CreateThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Thread* CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + void* data + ) => Underlying.Value!.CreateThread(fn, name, data); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + Ref data + ) + { + fixed (void* __dsl_data = data) + fixed (sbyte* __dsl_name = name) + { + return (SDL_Thread*)CreateThread(fn, __dsl_name, __dsl_data); + } + } + + [NativeFunction("SDL3", EntryPoint = "CreateThreadWithStackSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Thread* CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const size_t")] nuint stacksize, + void* data + ) => Underlying.Value!.CreateThreadWithStackSize(fn, name, stacksize, data); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const size_t")] nuint stacksize, + Ref data + ) + { + fixed (void* __dsl_data = data) + fixed (sbyte* __dsl_name = name) + { + return (SDL_Thread*)CreateThreadWithStackSize( + fn, + __dsl_name, + stacksize, + __dsl_data + ); + } + } + + [return: NativeTypeName("SDL_TLSID")] + [NativeFunction("SDL3", EntryPoint = "CreateTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint CreateTLS() => Underlying.Value!.CreateTLS(); + + [NativeFunction("SDL3", EntryPoint = "CreateWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* CreateWindow( + [NativeTypeName("const char *")] sbyte* title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => Underlying.Value!.CreateWindow(title, w, h, flags); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateWindow( + [NativeTypeName("const char *")] Ref title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) + { + fixed (sbyte* __dsl_title = title) + { + return (SDL_Window*)CreateWindow(__dsl_title, w, h, flags); + } + } + + [NativeFunction("SDL3", EntryPoint = "CreateWindowAndRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateWindowAndRenderer( + [NativeTypeName("const char *")] sbyte* title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + SDL_Window** window, + SDL_Renderer** renderer + ) => + Underlying.Value!.CreateWindowAndRenderer( + title, + width, + height, + window_flags, + window, + renderer + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CreateWindowAndRenderer( + [NativeTypeName("const char *")] Ref title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + Ref2D window, + Ref2D renderer + ) + { + fixed (SDL_Renderer** __dsl_renderer = renderer) + fixed (SDL_Window** __dsl_window = window) + fixed (sbyte* __dsl_title = title) + { + return (int)CreateWindowAndRenderer( + __dsl_title, + width, + height, + window_flags, + __dsl_window, + __dsl_renderer + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr CreateWindowWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.CreateWindowWithProperties(props); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* CreateWindowWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.CreateWindowWithPropertiesRaw(props); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool CursorVisible() => Underlying.Value!.CursorVisible(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int CursorVisibleRaw() => Underlying.Value!.CursorVisibleRaw(); + + [NativeFunction("SDL3", EntryPoint = "DateTimeToTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] DateTime* dt, + [NativeTypeName("SDL_Time *")] long* ticks + ) => Underlying.Value!.DateTimeToTime(dt, ticks); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] Ref dt, + [NativeTypeName("SDL_Time *")] Ref ticks + ) + { + fixed (long* __dsl_ticks = ticks) + fixed (DateTime* __dsl_dt = dt) + { + return (int)DateTimeToTime(__dsl_dt, __dsl_ticks); + } + } + + [NativeFunction("SDL3", EntryPoint = "Delay")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void Delay([NativeTypeName("Uint32")] uint ms) => Underlying.Value!.Delay(ms); + + [NativeFunction("SDL3", EntryPoint = "DelayNS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DelayNS([NativeTypeName("Uint64")] ulong ns) => + Underlying.Value!.DelayNS(ns); + + [NativeFunction("SDL3", EntryPoint = "DelEventWatch")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged 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")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + DelEventWatch(filter, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "DelHintCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DelHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged 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")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_name = name) + { + DelHintCallback(__dsl_name, callback, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyAudioStream(SDL_AudioStream* stream) => + Underlying.Value!.DestroyAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + DestroyAudioStream(__dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyCondition(SDL_Condition* cond) => + Underlying.Value!.DestroyCondition(cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyCondition(Ref cond) + { + fixed (SDL_Condition* __dsl_cond = cond) + { + DestroyCondition(__dsl_cond); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyCursor(SDL_Cursor* cursor) => + Underlying.Value!.DestroyCursor(cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyCursor(Ref cursor) + { + fixed (SDL_Cursor* __dsl_cursor = cursor) + { + DestroyCursor(__dsl_cursor); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyHapticEffect(SDL_Haptic* haptic, int effect) => + Underlying.Value!.DestroyHapticEffect(haptic, effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyHapticEffect(Ref haptic, int effect) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + DestroyHapticEffect(__dsl_haptic, effect); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyMutex(SDL_Mutex* mutex) => Underlying.Value!.DestroyMutex(mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + DestroyMutex(__dsl_mutex); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyPalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyPalette(Palette* palette) => + Underlying.Value!.DestroyPalette(palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyPalette(Ref palette) + { + fixed (Palette* __dsl_palette = palette) + { + DestroyPalette(__dsl_palette); + } + } + + [NativeFunction("SDL3", EntryPoint = "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 = "DestroyProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + Underlying.Value!.DestroyProperties(props); + + [NativeFunction("SDL3", EntryPoint = "DestroyRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyRenderer(SDL_Renderer* renderer) => + Underlying.Value!.DestroyRenderer(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyRenderer(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + DestroyRenderer(__dsl_renderer); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyRWLock(SDL_RWLock* rwlock) => + Underlying.Value!.DestroyRWLock(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyRWLock(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + DestroyRWLock(__dsl_rwlock); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroySemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroySemaphore(SDL_Semaphore* sem) => + Underlying.Value!.DestroySemaphore(sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroySemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + DestroySemaphore(__dsl_sem); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroySurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroySurface(Surface* surface) => + Underlying.Value!.DestroySurface(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroySurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + DestroySurface(__dsl_surface); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyTexture(SDL_Texture* texture) => + Underlying.Value!.DestroyTexture(texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyTexture(Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + DestroyTexture(__dsl_texture); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyWindow(SDL_Window* window) => + Underlying.Value!.DestroyWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DestroyWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + DestroyWindow(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "DestroyWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int DestroyWindowSurface(SDL_Window* window) => + Underlying.Value!.DestroyWindowSurface(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int DestroyWindowSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)DestroyWindowSurface(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "DetachThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DetachThread(SDL_Thread* thread) => + Underlying.Value!.DetachThread(thread); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void DetachThread(Ref thread) + { + fixed (SDL_Thread* __dsl_thread = thread) + { + DetachThread(__dsl_thread); + } + } + + [NativeFunction("SDL3", EntryPoint = "DetachVirtualJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int DetachVirtualJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.DetachVirtualJoystick(instance_id); + + [NativeFunction("SDL3", EntryPoint = "DisableScreenSaver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int DisableScreenSaver() => Underlying.Value!.DisableScreenSaver(); + + [NativeFunction("SDL3", EntryPoint = "DuplicateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* DuplicateSurface(Surface* surface) => + Underlying.Value!.DuplicateSurface(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr DuplicateSurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)DuplicateSurface(__dsl_surface); + } + } + + [return: NativeTypeName("SDL_EGLConfig")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr EGLGetCurrentEGLConfig() => Underlying.Value!.EGLGetCurrentEGLConfig(); + + [return: NativeTypeName("SDL_EGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* EGLGetCurrentEGLConfigRaw() => + Underlying.Value!.EGLGetCurrentEGLConfigRaw(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr EGLGetCurrentEGLDisplay() => Underlying.Value!.EGLGetCurrentEGLDisplay(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* EGLGetCurrentEGLDisplayRaw() => + Underlying.Value!.EGLGetCurrentEGLDisplayRaw(); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "EGLGetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ) => Underlying.Value!.EGLGetProcAddress(proc); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) + { + fixed (sbyte* __dsl_proc = proc) + { + return (delegate* unmanaged)EGLGetProcAddress(__dsl_proc); + } + } + + [return: NativeTypeName("SDL_EGLSurface")] + [NativeFunction("SDL3", EntryPoint = "EGLGetWindowEGLSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* EGLGetWindowEGLSurface(SDL_Window* window) => + Underlying.Value!.EGLGetWindowEGLSurface(window); + + [return: NativeTypeName("SDL_EGLSurface")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr EGLGetWindowEGLSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (void*)EGLGetWindowEGLSurface(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "EGLSetEGLAttributeCallbacks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void EGLSetEGLAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + delegate* unmanaged platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] + delegate* unmanaged surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] + delegate* unmanaged contextAttribCallback + ) => + Underlying.Value!.EGLSetEGLAttributeCallbacks( + platformAttribCallback, + surfaceAttribCallback, + contextAttribCallback + ); + + [NativeFunction("SDL3", EntryPoint = "EnableScreenSaver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnableScreenSaver() => Underlying.Value!.EnableScreenSaver(); + + [NativeFunction("SDL3", EntryPoint = "EnumerateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnumerateDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ) => Underlying.Value!.EnumerateDirectory(path, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnumerateDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_path = path) + { + return (int)EnumerateDirectory(__dsl_path, callback, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "EnumerateProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + void* userdata + ) => Underlying.Value!.EnumerateProperties(props, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (int)EnumerateProperties(props, callback, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "EnumerateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnumerateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ) => Underlying.Value!.EnumerateStorageDirectory(storage, path, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EnumerateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)EnumerateStorageDirectory( + __dsl_storage, + __dsl_path, + callback, + __dsl_userdata + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "Error")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int Error(Errorcode code) => Underlying.Value!.Error(code); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => + Underlying.Value!.EventEnabled(type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int EventEnabledRaw([NativeTypeName("Uint32")] uint type) => + Underlying.Value!.EventEnabledRaw(type); + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FillSurfaceRect( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("Uint32")] uint color + ) => Underlying.Value!.FillSurfaceRect(dst, rect, color); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FillSurfaceRect( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("Uint32")] uint color + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (Surface* __dsl_dst = dst) + { + return (int)FillSurfaceRect(__dsl_dst, __dsl_rect, color); + } + } + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FillSurfaceRects( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int count, + [NativeTypeName("Uint32")] uint color + ) => Underlying.Value!.FillSurfaceRects(dst, rects, count, color); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FillSurfaceRects( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int count, + [NativeTypeName("Uint32")] uint color + ) + { + fixed (Rect* __dsl_rects = rects) + fixed (Surface* __dsl_dst = dst) + { + return (int)FillSurfaceRects(__dsl_dst, __dsl_rects, count, color); + } + } + + [NativeFunction("SDL3", EntryPoint = "FilterEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => Underlying.Value!.FilterEvents(filter, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FilterEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + FilterEvents(filter, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "FlashWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlashWindow(SDL_Window* window, FlashOperation operation) => + Underlying.Value!.FlashWindow(window, operation); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlashWindow(Ref window, FlashOperation operation) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)FlashWindow(__dsl_window, operation); + } + } + + [NativeFunction("SDL3", EntryPoint = "FlipSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlipSurface(Surface* surface, FlipMode flip) => + Underlying.Value!.FlipSurface(surface, flip); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlipSurface(Ref surface, FlipMode flip) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)FlipSurface(__dsl_surface, flip); + } + } + + [NativeFunction("SDL3", EntryPoint = "FlushAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlushAudioStream(SDL_AudioStream* stream) => + Underlying.Value!.FlushAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlushAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)FlushAudioStream(__dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "FlushEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void FlushEvent([NativeTypeName("Uint32")] uint type) => + Underlying.Value!.FlushEvent(type); + + [NativeFunction("SDL3", EntryPoint = "FlushEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void FlushEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => Underlying.Value!.FlushEvents(minType, maxType); + + [NativeFunction("SDL3", EntryPoint = "FlushRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlushRenderer(SDL_Renderer* renderer) => + Underlying.Value!.FlushRenderer(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int FlushRenderer(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)FlushRenderer(__dsl_renderer); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GamepadConnected(SDL_Gamepad* gamepad) => + Underlying.Value!.GamepadConnected(gamepad); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadConnected(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadConnected(__dsl_gamepad); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadEventsEnabled() => + Underlying.Value!.GamepadEventsEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GamepadEventsEnabledRaw() => Underlying.Value!.GamepadEventsEnabledRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GamepadHasAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + Underlying.Value!.GamepadHasAxis(gamepad, axis); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadHasAxis(Ref gamepad, GamepadAxis axis) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadHasAxis(__dsl_gamepad, axis); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GamepadHasButton(SDL_Gamepad* gamepad, GamepadButton button) => + Underlying.Value!.GamepadHasButton(gamepad, button); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadHasButton( + Ref gamepad, + GamepadButton button + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadHasButton(__dsl_gamepad, button); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GamepadHasSensor(SDL_Gamepad* gamepad, SensorType type) => + Underlying.Value!.GamepadHasSensor(gamepad, type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadHasSensor(Ref gamepad, SensorType type) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadHasSensor(__dsl_gamepad, type); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GamepadSensorEnabled(SDL_Gamepad* gamepad, SensorType type) => + Underlying.Value!.GamepadSensorEnabled(gamepad, type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GamepadSensorEnabled(Ref gamepad, SensorType type) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)GamepadSensorEnabled(__dsl_gamepad, type); + } + } + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged GetAssertionHandler( + void** puserdata + ) => Underlying.Value!.GetAssertionHandler(puserdata); + + [return: NativeTypeName("SDL_AssertionHandler")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged GetAssertionHandler( + Ref2D puserdata + ) + { + fixed (void** __dsl_puserdata = puserdata) + { + return (delegate* unmanaged)GetAssertionHandler( + __dsl_puserdata + ); + } + } + + [return: NativeTypeName("const SDL_AssertData *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAssertionReport() => + Underlying.Value!.GetAssertionReport(); + + [return: NativeTypeName("const SDL_AssertData *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static AssertData* GetAssertionReportRaw() => + Underlying.Value!.GetAssertionReportRaw(); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioCaptureDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetAudioCaptureDevices(int* count) => + Underlying.Value!.GetAudioCaptureDevices(count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioCaptureDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetAudioCaptureDevices(__dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetAudioDeviceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioSpec* spec, + int* sample_frames + ) => Underlying.Value!.GetAudioDeviceFormat(devid, spec, sample_frames); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref spec, + 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: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioDeviceName( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => Underlying.Value!.GetAudioDeviceName(devid); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetAudioDeviceNameRaw( + [NativeTypeName("SDL_AudioDeviceID")] uint devid + ) => Underlying.Value!.GetAudioDeviceNameRaw(devid); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioDriver(int index) => + Underlying.Value!.GetAudioDriver(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetAudioDriverRaw(int index) => + Underlying.Value!.GetAudioDriverRaw(index); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioOutputDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetAudioOutputDevices(int* count) => + Underlying.Value!.GetAudioOutputDevices(count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetAudioOutputDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetAudioOutputDevices(__dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamAvailable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamAvailable(SDL_AudioStream* stream) => + Underlying.Value!.GetAudioStreamAvailable(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamAvailable(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)GetAudioStreamAvailable(__dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamData(SDL_AudioStream* stream, void* buf, int len) => + Underlying.Value!.GetAudioStreamData(stream, buf, len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamData(Ref stream, Ref buf, int len) + { + fixed (void* __dsl_buf = buf) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)GetAudioStreamData(__dsl_stream, __dsl_buf, len); + } + } + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetAudioStreamDevice(SDL_AudioStream* stream) => + Underlying.Value!.GetAudioStreamDevice(stream); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetAudioStreamDevice(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (uint)GetAudioStreamDevice(__dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamFormat( + SDL_AudioStream* stream, + AudioSpec* src_spec, + AudioSpec* dst_spec + ) => Underlying.Value!.GetAudioStreamFormat(stream, src_spec, dst_spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamFormat( + Ref stream, + Ref src_spec, + Ref dst_spec + ) + { + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + fixed (AudioSpec* __dsl_src_spec = src_spec) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)GetAudioStreamFormat(__dsl_stream, __dsl_src_spec, __dsl_dst_spec); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetAudioStreamFrequencyRatio(SDL_AudioStream* stream) => + Underlying.Value!.GetAudioStreamFrequencyRatio(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetAudioStreamFrequencyRatio(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (float)GetAudioStreamFrequencyRatio(__dsl_stream); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetAudioStreamProperties(SDL_AudioStream* stream) => + Underlying.Value!.GetAudioStreamProperties(stream); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetAudioStreamProperties(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (uint)GetAudioStreamProperties(__dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamQueued")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamQueued(SDL_AudioStream* stream) => + Underlying.Value!.GetAudioStreamQueued(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamQueued")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetAudioStreamQueued(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)GetAudioStreamQueued(__dsl_stream); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetBasePath() => Underlying.Value!.GetBasePath(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetBasePathRaw() => Underlying.Value!.GetBasePathRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ) => Underlying.Value!.GetBooleanProperty(props, name, default_value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool) + (int)GetBooleanProperty(props, __dsl_name, (int)default_value); + } + } + + [return: NativeTypeName("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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetCameraDeviceNameRaw( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id + ) => Underlying.Value!.GetCameraDeviceNameRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetCameraDevicePosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static CameraPosition GetCameraDevicePosition( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id + ) => Underlying.Value!.GetCameraDevicePosition(instance_id); + + [return: NativeTypeName("SDL_CameraDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetCameraDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetCameraDevices(int* count) => + Underlying.Value!.GetCameraDevices(count); + + [return: NativeTypeName("SDL_CameraDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCameraDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetCameraDevices(__dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetCameraDeviceSupportedFormats")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static CameraSpec* GetCameraDeviceSupportedFormats( + [NativeTypeName("SDL_CameraDeviceID")] uint devid, + int* count + ) => Underlying.Value!.GetCameraDeviceSupportedFormats(devid, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDeviceSupportedFormats")] + [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); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCameraDriver(int index) => + Underlying.Value!.GetCameraDriver(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetCameraDriverRaw(int index) => + Underlying.Value!.GetCameraDriverRaw(index); + + [NativeFunction("SDL3", EntryPoint = "GetCameraFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCameraFormat(SDL_Camera* camera, CameraSpec* spec) => + Underlying.Value!.GetCameraFormat(camera, spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCameraFormat(Ref camera, Ref spec) + { + fixed (CameraSpec* __dsl_spec = spec) + fixed (SDL_Camera* __dsl_camera = camera) + { + return (int)GetCameraFormat(__dsl_camera, __dsl_spec); + } + } + + [return: NativeTypeName("SDL_CameraDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetCameraInstanceID(SDL_Camera* camera) => + Underlying.Value!.GetCameraInstanceID(camera); + + [return: NativeTypeName("SDL_CameraDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetCameraInstanceID(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + return (uint)GetCameraInstanceID(__dsl_camera); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetCameraPermissionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCameraPermissionState(SDL_Camera* camera) => + Underlying.Value!.GetCameraPermissionState(camera); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCameraPermissionState(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + return (int)GetCameraPermissionState(__dsl_camera); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetCameraProperties(SDL_Camera* camera) => + Underlying.Value!.GetCameraProperties(camera); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetCameraProperties(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + return (uint)GetCameraProperties(__dsl_camera); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* GetClipboardData( + [NativeTypeName("const char *")] sbyte* mime_type, + [NativeTypeName("size_t *")] nuint* size + ) => Underlying.Value!.GetClipboardData(mime_type, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetClipboardData( + [NativeTypeName("const char *")] Ref mime_type, + [NativeTypeName("size_t *")] Ref size + ) + { + fixed (nuint* __dsl_size = size) + fixed (sbyte* __dsl_mime_type = mime_type) + { + return (void*)GetClipboardData(__dsl_mime_type, __dsl_size); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetClipboardText() => Underlying.Value!.GetClipboardText(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetClipboardTextRaw() => Underlying.Value!.GetClipboardTextRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetClosestFullscreenDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static DisplayMode* GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] int include_high_density_modes + ) => + Underlying.Value!.GetClosestFullscreenDisplayMode( + displayID, + w, + h, + refresh_rate, + include_high_density_modes + ); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr 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 + ); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCacheLineSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCPUCacheLineSize() => Underlying.Value!.GetCPUCacheLineSize(); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCount")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCPUCount() => Underlying.Value!.GetCPUCount(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentAudioDriver() => + Underlying.Value!.GetCurrentAudioDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetCurrentAudioDriverRaw() => + Underlying.Value!.GetCurrentAudioDriverRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentCameraDriver() => + Underlying.Value!.GetCurrentCameraDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetCurrentCameraDriverRaw() => + Underlying.Value!.GetCurrentCameraDriverRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => Underlying.Value!.GetCurrentDisplayMode(displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static DisplayMode* GetCurrentDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => Underlying.Value!.GetCurrentDisplayModeRaw(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentDisplayOrientation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static DisplayOrientation GetCurrentDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => Underlying.Value!.GetCurrentDisplayOrientation(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCurrentRenderOutputSize(SDL_Renderer* renderer, int* w, int* h) => + Underlying.Value!.GetCurrentRenderOutputSize(renderer, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCurrentRenderOutputSize( + Ref renderer, + Ref w, + Ref h + ) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetCurrentRenderOutputSize(__dsl_renderer, __dsl_w, __dsl_h); + } + } + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetCurrentThreadID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetCurrentThreadID() => Underlying.Value!.GetCurrentThreadID(); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => + Underlying.Value!.GetCurrentTime(ticks); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) + { + fixed (long* __dsl_ticks = ticks) + { + return (int)GetCurrentTime(__dsl_ticks); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCurrentVideoDriver() => + Underlying.Value!.GetCurrentVideoDriver(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetCurrentVideoDriverRaw() => + Underlying.Value!.GetCurrentVideoDriverRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetCursor() => Underlying.Value!.GetCursor(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Cursor* GetCursorRaw() => Underlying.Value!.GetCursorRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfWeek")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetDayOfWeek(int year, int month, int day) => + Underlying.Value!.GetDayOfWeek(year, month, day); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfYear")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetDayOfYear(int year, int month, int day) => + Underlying.Value!.GetDayOfYear(year, month, day); + + [NativeFunction("SDL3", EntryPoint = "GetDaysInMonth")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetDaysInMonth(int year, int month) => + Underlying.Value!.GetDaysInMonth(year, month); + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetDefaultAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged< + AssertData*, + void*, + AssertState> GetDefaultAssertionHandler() => + Underlying.Value!.GetDefaultAssertionHandler(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetDefaultCursor() => Underlying.Value!.GetDefaultCursor(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Cursor* GetDefaultCursorRaw() => Underlying.Value!.GetDefaultCursorRaw(); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetDesktopDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => Underlying.Value!.GetDesktopDisplayMode(displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static DisplayMode* GetDesktopDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => Underlying.Value!.GetDesktopDisplayModeRaw(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ) => Underlying.Value!.GetDisplayBounds(displayID, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + { + return (int)GetDisplayBounds(displayID, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetDisplayContentScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetDisplayContentScale( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => Underlying.Value!.GetDisplayContentScale(displayID); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Point* point) => + Underlying.Value!.GetDisplayForPoint(point); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayForPoint( + [NativeTypeName("const SDL_Point *")] Ref point + ) + { + fixed (Point* __dsl_point = point) + { + return (uint)GetDisplayForPoint(__dsl_point); + } + } + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => + Underlying.Value!.GetDisplayForRect(rect); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (uint)GetDisplayForRect(__dsl_rect); + } + } + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayForWindow(SDL_Window* window) => + Underlying.Value!.GetDisplayForWindow(window); + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayForWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetDisplayForWindow(__dsl_window); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint displayID) => + Underlying.Value!.GetDisplayName(displayID); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetDisplayNameRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => + Underlying.Value!.GetDisplayNameRaw(displayID); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayID) => + Underlying.Value!.GetDisplayProperties(displayID); + + [return: NativeTypeName("SDL_DisplayID *")] + [NativeFunction("SDL3", EntryPoint = "GetDisplays")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetDisplays(int* count) => Underlying.Value!.GetDisplays(count); + + [return: NativeTypeName("SDL_DisplayID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplays")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetDisplays(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetDisplays(__dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetDisplayUsableBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ) => Underlying.Value!.GetDisplayUsableBounds(displayID, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + { + return (int)GetDisplayUsableBounds(displayID, __dsl_rect); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetError() => Underlying.Value!.GetError(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetErrorRaw() => Underlying.Value!.GetErrorRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + void** userdata + ) => Underlying.Value!.GetEventFilter(filter, userdata); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + Ref2D userdata + ) + { + fixed (void** __dsl_userdata = userdata) + { + return (MaybeBool)(int)GetEventFilter(filter, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float default_value + ) => Underlying.Value!.GetFloatProperty(props, name, default_value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (float)GetFloatProperty(props, __dsl_name, default_value); + } + } + + [return: NativeTypeName("const SDL_DisplayMode **")] + [NativeFunction("SDL3", EntryPoint = "GetFullscreenDisplayModes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static DisplayMode** GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int* count + ) => Underlying.Value!.GetFullscreenDisplayModes(displayID, count); + + [return: NativeTypeName("const SDL_DisplayMode **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (DisplayMode**)GetFullscreenDisplayModes(displayID, __dsl_count); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadAppleSFSymbolsNameForAxis( + SDL_Gamepad* gamepad, + GamepadAxis axis + ) => Underlying.Value!.GetGamepadAppleSFSymbolsNameForAxis(gamepad, axis); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadAppleSFSymbolsNameForAxis( + Ref gamepad, + GamepadAxis axis + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadAppleSFSymbolsNameForAxis(__dsl_gamepad, axis); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadAppleSFSymbolsNameForButton( + SDL_Gamepad* gamepad, + GamepadButton button + ) => Underlying.Value!.GetGamepadAppleSFSymbolsNameForButton(gamepad, button); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadAppleSFSymbolsNameForButton( + Ref gamepad, + GamepadButton button + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadAppleSFSymbolsNameForButton(__dsl_gamepad, button); + } + } + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static short GetGamepadAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + Underlying.Value!.GetGamepadAxis(gamepad, axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static short GetGamepadAxis(Ref gamepad, GamepadAxis axis) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (short)GetGamepadAxis(__dsl_gamepad, axis); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxisFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadAxis GetGamepadAxisFromString( + [NativeTypeName("const char *")] sbyte* str + ) => Underlying.Value!.GetGamepadAxisFromString(str); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxisFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadAxis GetGamepadAxisFromString( + [NativeTypeName("const char *")] Ref str + ) + { + fixed (sbyte* __dsl_str = str) + { + return (GamepadAxis)GetGamepadAxisFromString(__dsl_str); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadBindings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadBinding** GetGamepadBindings(SDL_Gamepad* gamepad, int* count) => + Underlying.Value!.GetGamepadBindings(gamepad, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadBindings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetGamepadBindings( + Ref gamepad, + Ref count + ) + { + fixed (int* __dsl_count = count) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadBinding**)GetGamepadBindings(__dsl_gamepad, __dsl_count); + } + } + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetGamepadButton(SDL_Gamepad* gamepad, GamepadButton button) => + Underlying.Value!.GetGamepadButton(gamepad, button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetGamepadButton(Ref gamepad, GamepadButton button) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (byte)GetGamepadButton(__dsl_gamepad, button); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] sbyte* str + ) => Underlying.Value!.GetGamepadButtonFromString(str); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] Ref str + ) + { + fixed (sbyte* __dsl_str = str) + { + return (GamepadButton)GetGamepadButtonFromString(__dsl_str); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadButtonLabel GetGamepadButtonLabel( + SDL_Gamepad* gamepad, + GamepadButton button + ) => Underlying.Value!.GetGamepadButtonLabel(gamepad, button); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonLabel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadButtonLabel GetGamepadButtonLabel( + Ref gamepad, + GamepadButton button + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadButtonLabel)GetGamepadButtonLabel(__dsl_gamepad, button); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabelForType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadButtonLabel GetGamepadButtonLabelForType( + GamepadType type, + GamepadButton button + ) => Underlying.Value!.GetGamepadButtonLabelForType(type, button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickConnectionState GetGamepadConnectionState(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadConnectionState(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickConnectionState GetGamepadConnectionState(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (JoystickConnectionState)GetGamepadConnectionState(__dsl_gamepad); + } + } + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadFirmwareVersion(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadFirmwareVersion(gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadFirmwareVersion(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)GetGamepadFirmwareVersion(__dsl_gamepad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadFromInstanceID(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Gamepad* GetGamepadFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadFromInstanceIDRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadFromPlayerIndex(int player_index) => + Underlying.Value!.GetGamepadFromPlayerIndex(player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Gamepad* GetGamepadFromPlayerIndexRaw(int player_index) => + Underlying.Value!.GetGamepadFromPlayerIndexRaw(player_index); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceGuid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Guid GetGamepadInstanceGuid( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadInstanceGuid(instance_id); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGamepadInstanceID(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadInstanceID(gamepad); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGamepadInstanceID(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (uint)GetGamepadInstanceID(__dsl_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")] + [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 = "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 = "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 = "GetGamepadInstanceProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadInstanceProductVersion( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadInstanceProductVersion(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetGamepadInstanceVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadInstanceVendor( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetGamepadInstanceVendor(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Joystick* GetGamepadJoystick(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadJoystick(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadJoystick(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (SDL_Joystick*)GetGamepadJoystick(__dsl_gamepad); + } + } + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadMapping(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadMapping(gamepad); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadMapping(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadMapping(__dsl_gamepad); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappingForGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadMappingForGuid( + [NativeTypeName("SDL_JoystickGUID")] 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); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMappings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte** GetGamepadMappings(int* count) => + Underlying.Value!.GetGamepadMappings(count); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetGamepadMappings(Ref count) + { + fixed (int* __dsl_count = count) + { + return (sbyte**)GetGamepadMappings(__dsl_count); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadName(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadName(gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadName(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadName(__dsl_gamepad); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadPath(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadPath(gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadPath(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadPath(__dsl_gamepad); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadPlayerIndex(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadPlayerIndex(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadPlayerIndex(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetGamepadPlayerIndex(__dsl_gamepad); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PowerState GetGamepadPowerInfo(SDL_Gamepad* gamepad, int* percent) => + Underlying.Value!.GetGamepadPowerInfo(gamepad, percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PowerState GetGamepadPowerInfo(Ref gamepad, Ref percent) + { + fixed (int* __dsl_percent = percent) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (PowerState)GetGamepadPowerInfo(__dsl_gamepad, __dsl_percent); + } + } + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadProduct(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadProduct(gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadProduct(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)GetGamepadProduct(__dsl_gamepad); + } + } + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadProductVersion(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadProductVersion(gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadProductVersion(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)GetGamepadProductVersion(__dsl_gamepad); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGamepadProperties(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadProperties(gamepad); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGamepadProperties(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (uint)GetGamepadProperties(__dsl_gamepad); + } + } + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetGamepads(int* count) => Underlying.Value!.GetGamepads(count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepads(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetGamepads(__dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadSensorData( + SDL_Gamepad* gamepad, + SensorType type, + float* data, + int num_values + ) => Underlying.Value!.GetGamepadSensorData(gamepad, type, data, num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadSensorData( + Ref gamepad, + SensorType type, + Ref data, + int num_values + ) + { + fixed (float* __dsl_data = data) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetGamepadSensorData(__dsl_gamepad, type, __dsl_data, num_values); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorDataRate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetGamepadSensorDataRate(SDL_Gamepad* gamepad, SensorType type) => + Underlying.Value!.GetGamepadSensorDataRate(gamepad, type); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorDataRate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetGamepadSensorDataRate(Ref gamepad, SensorType type) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (float)GetGamepadSensorDataRate(__dsl_gamepad, type); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadSerial(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadSerial(gamepad); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadSerial(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)GetGamepadSerial(__dsl_gamepad); + } + } + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSteamHandle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetGamepadSteamHandle(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadSteamHandle(gamepad); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSteamHandle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetGamepadSteamHandle(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ulong)GetGamepadSteamHandle(__dsl_gamepad); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadStringForAxis(GamepadAxis axis) => + Underlying.Value!.GetGamepadStringForAxis(axis); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadStringForAxisRaw(GamepadAxis axis) => + Underlying.Value!.GetGamepadStringForAxisRaw(axis); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadStringForButton(GamepadButton button) => + Underlying.Value!.GetGamepadStringForButton(button); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadStringForButtonRaw(GamepadButton button) => + Underlying.Value!.GetGamepadStringForButtonRaw(button); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGamepadStringForType(GamepadType type) => + Underlying.Value!.GetGamepadStringForType(type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetGamepadStringForTypeRaw(GamepadType type) => + Underlying.Value!.GetGamepadStringForTypeRaw(type); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTouchpadFinger")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadTouchpadFinger( + SDL_Gamepad* gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] byte* state, + float* x, + float* y, + float* pressure + ) => + Underlying.Value!.GetGamepadTouchpadFinger( + gamepad, + touchpad, + finger, + state, + x, + y, + pressure + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetGamepadTouchpadFinger( + Ref gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] Ref state, + Ref x, + Ref y, + Ref pressure + ) + { + fixed (float* __dsl_pressure = pressure) + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + fixed (byte* __dsl_state = state) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetGamepadTouchpadFinger( + __dsl_gamepad, + touchpad, + finger, + __dsl_state, + __dsl_x, + __dsl_y, + __dsl_pressure + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetGamepadType(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadType(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetGamepadType(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadType)GetGamepadType(__dsl_gamepad); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTypeFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetGamepadTypeFromString( + [NativeTypeName("const char *")] sbyte* str + ) => Underlying.Value!.GetGamepadTypeFromString(str); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetGamepadTypeFromString( + [NativeTypeName("const char *")] Ref str + ) + { + fixed (sbyte* __dsl_str = str) + { + return (GamepadType)GetGamepadTypeFromString(__dsl_str); + } + } + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadVendor(SDL_Gamepad* gamepad) => + Underlying.Value!.GetGamepadVendor(gamepad); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetGamepadVendor(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)GetGamepadVendor(__dsl_gamepad); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGlobalMouseState(float* x, float* y) => + Underlying.Value!.GetGlobalMouseState(x, y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGlobalMouseState(Ref x, Ref y) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + { + return (uint)GetGlobalMouseState(__dsl_x, __dsl_y); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetGlobalProperties() => Underlying.Value!.GetGlobalProperties(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetGrabbedWindow() => Underlying.Value!.GetGrabbedWindow(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* GetGrabbedWindowRaw() => Underlying.Value!.GetGrabbedWindowRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetHapticEffectStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetHapticEffectStatus(SDL_Haptic* haptic, int effect) => + Underlying.Value!.GetHapticEffectStatus(haptic, effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetHapticEffectStatus(Ref haptic, int effect) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)GetHapticEffectStatus(__dsl_haptic, effect); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetHapticFeatures")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetHapticFeatures(SDL_Haptic* haptic) => + Underlying.Value!.GetHapticFeatures(haptic); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetHapticFeatures(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (uint)GetHapticFeatures(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetHapticFromInstanceID( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => Underlying.Value!.GetHapticFromInstanceID(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Haptic* GetHapticFromInstanceIDRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => Underlying.Value!.GetHapticFromInstanceIDRaw(instance_id); + + [return: NativeTypeName("SDL_HapticID")] + [NativeFunction("SDL3", EntryPoint = "GetHapticInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetHapticInstanceID(SDL_Haptic* haptic) => + Underlying.Value!.GetHapticInstanceID(haptic); + + [return: NativeTypeName("SDL_HapticID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetHapticInstanceID(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (uint)GetHapticInstanceID(__dsl_haptic); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetHapticInstanceName( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => Underlying.Value!.GetHapticInstanceName(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetHapticInstanceNameRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => Underlying.Value!.GetHapticInstanceNameRaw(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHapticName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetHapticName(SDL_Haptic* haptic) => + Underlying.Value!.GetHapticName(haptic); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetHapticName(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (sbyte*)GetHapticName(__dsl_haptic); + } + } + + [return: NativeTypeName("SDL_HapticID *")] + [NativeFunction("SDL3", EntryPoint = "GetHaptics")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetHaptics(int* count) => Underlying.Value!.GetHaptics(count); + + [return: NativeTypeName("SDL_HapticID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHaptics")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetHaptics(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetHaptics(__dsl_count); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetHint([NativeTypeName("const char *")] sbyte* name) => + Underlying.Value!.GetHint(name); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetHint([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (sbyte*)GetHint(__dsl_name); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetHintBoolean")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetHintBoolean( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ) => Underlying.Value!.GetHintBoolean(name, default_value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetHintBoolean( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)GetHintBoolean(__dsl_name, (int)default_value); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetIOProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetIOProperties(SDL_IOStream* context) => + Underlying.Value!.GetIOProperties(context); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetIOProperties(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (uint)GetIOProperties(__dsl_context); + } + } + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetIOSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long GetIOSize(SDL_IOStream* context) => Underlying.Value!.GetIOSize(context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long GetIOSize(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (long)GetIOSize(__dsl_context); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetIOStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static IOStatus GetIOStatus(SDL_IOStream* context) => + Underlying.Value!.GetIOStatus(context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOStatus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static IOStatus GetIOStatus(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (IOStatus)GetIOStatus(__dsl_context); + } + } + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static short GetJoystickAxis(SDL_Joystick* joystick, int axis) => + Underlying.Value!.GetJoystickAxis(joystick, axis); + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static short GetJoystickAxis(Ref joystick, int axis) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (short)GetJoystickAxis(__dsl_joystick, axis); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxisInitialState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetJoystickAxisInitialState( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16 *")] short* state + ) => Underlying.Value!.GetJoystickAxisInitialState(joystick, axis, state); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetJoystickAxisInitialState( + Ref joystick, + int axis, + [NativeTypeName("Sint16 *")] Ref state + ) + { + fixed (short* __dsl_state = state) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (MaybeBool) + (int)GetJoystickAxisInitialState(__dsl_joystick, axis, __dsl_state); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetJoystickBall")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetJoystickBall(SDL_Joystick* joystick, int ball, int* dx, int* dy) => + Underlying.Value!.GetJoystickBall(joystick, ball, dx, dy); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetJoystickBall( + Ref joystick, + int ball, + Ref dx, + Ref dy + ) + { + fixed (int* __dsl_dy = dy) + fixed (int* __dsl_dx = dx) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetJoystickBall(__dsl_joystick, ball, __dsl_dx, __dsl_dy); + } + } + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetJoystickButton(SDL_Joystick* joystick, int button) => + Underlying.Value!.GetJoystickButton(joystick, button); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetJoystickButton(Ref joystick, int button) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (byte)GetJoystickButton(__dsl_joystick, button); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetJoystickConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickConnectionState GetJoystickConnectionState(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickConnectionState(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickConnectionState GetJoystickConnectionState(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (JoystickConnectionState)GetJoystickConnectionState(__dsl_joystick); + } + } + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickFirmwareVersion(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickFirmwareVersion(joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFirmwareVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickFirmwareVersion(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)GetJoystickFirmwareVersion(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickFromInstanceID(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Joystick* GetJoystickFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickFromInstanceIDRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickFromPlayerIndex(int player_index) => + Underlying.Value!.GetJoystickFromPlayerIndex(player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Joystick* GetJoystickFromPlayerIndexRaw(int player_index) => + Underlying.Value!.GetJoystickFromPlayerIndexRaw(player_index); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickGuid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Guid GetJoystickGuid(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickGuid(joystick); + + [return: NativeTypeName("SDL_JoystickGUID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Guid GetJoystickGuid(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (Guid)GetJoystickGuid(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Guid GetJoystickGuidFromString( + [NativeTypeName("const char *")] Ref pchGUID + ) + { + fixed (sbyte* __dsl_pchGUID = pchGUID) + { + return (Guid)GetJoystickGuidFromString(__dsl_pchGUID); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetJoystickGuidInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] ushort* vendor, + [NativeTypeName("Uint16 *")] ushort* product, + [NativeTypeName("Uint16 *")] ushort* version, + [NativeTypeName("Uint16 *")] ushort* crc16 + ) => Underlying.Value!.GetJoystickGuidInfo(guid, vendor, product, version, crc16); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] Ref vendor, + [NativeTypeName("Uint16 *")] Ref product, + [NativeTypeName("Uint16 *")] Ref version, + [NativeTypeName("Uint16 *")] Ref crc16 + ) + { + fixed (ushort* __dsl_crc16 = crc16) + fixed (ushort* __dsl_version = version) + fixed (ushort* __dsl_product = product) + fixed (ushort* __dsl_vendor = vendor) + { + GetJoystickGuidInfo(guid, __dsl_vendor, __dsl_product, __dsl_version, __dsl_crc16); + } + } + + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetJoystickHat(SDL_Joystick* joystick, int hat) => + Underlying.Value!.GetJoystickHat(joystick, hat); + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte GetJoystickHat(Ref joystick, int hat) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (byte)GetJoystickHat(__dsl_joystick, hat); + } + } + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetJoystickInstanceID(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickInstanceID(joystick); + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetJoystickInstanceID(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (uint)GetJoystickInstanceID(__dsl_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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetJoystickInstanceNameRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickInstanceNameRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickInstancePath( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickInstancePath(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 + ) => Underlying.Value!.GetJoystickInstancePathRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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 = "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 = "GetJoystickInstanceProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickInstanceProductVersion( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickInstanceProductVersion(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetJoystickInstanceVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickInstanceVendor( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetJoystickInstanceVendor(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetJoystickName(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickName(joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickName(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (sbyte*)GetJoystickName(__dsl_joystick); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetJoystickPath(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickPath(joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickPath(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (sbyte*)GetJoystickPath(__dsl_joystick); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetJoystickPlayerIndex(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickPlayerIndex(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetJoystickPlayerIndex(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetJoystickPlayerIndex(__dsl_joystick); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PowerState GetJoystickPowerInfo(SDL_Joystick* joystick, int* percent) => + Underlying.Value!.GetJoystickPowerInfo(joystick, percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PowerState GetJoystickPowerInfo(Ref joystick, Ref percent) + { + fixed (int* __dsl_percent = percent) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (PowerState)GetJoystickPowerInfo(__dsl_joystick, __dsl_percent); + } + } + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickProduct(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickProduct(joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProduct")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickProduct(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)GetJoystickProduct(__dsl_joystick); + } + } + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickProductVersion(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickProductVersion(joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickProductVersion(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)GetJoystickProductVersion(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetJoystickProperties(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickProperties(joystick); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetJoystickProperties(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (uint)GetJoystickProperties(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetJoysticks(int* count) => Underlying.Value!.GetJoysticks(count); + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoysticks(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetJoysticks(__dsl_count); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetJoystickSerial(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickSerial(joystick); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickSerial")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetJoystickSerial(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (sbyte*)GetJoystickSerial(__dsl_joystick); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetJoystickType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickType GetJoystickType(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickType(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static JoystickType GetJoystickType(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (JoystickType)GetJoystickType(__dsl_joystick); + } + } + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickVendor(SDL_Joystick* joystick) => + Underlying.Value!.GetJoystickVendor(joystick); + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ushort GetJoystickVendor(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)GetJoystickVendor(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyboardFocus() => Underlying.Value!.GetKeyboardFocus(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* GetKeyboardFocusRaw() => Underlying.Value!.GetKeyboardFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyboardInstanceName( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ) => Underlying.Value!.GetKeyboardInstanceName(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetKeyboardInstanceNameRaw( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ) => Underlying.Value!.GetKeyboardInstanceNameRaw(instance_id); + + [return: NativeTypeName("SDL_KeyboardID *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboards")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetKeyboards(int* count) => Underlying.Value!.GetKeyboards(count); + + [return: NativeTypeName("SDL_KeyboardID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyboards(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetKeyboards(__dsl_count); + } + } + + [return: NativeTypeName("const Uint8 *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboardState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static byte* GetKeyboardState(int* numkeys) => + Underlying.Value!.GetKeyboardState(numkeys); + + [return: NativeTypeName("const Uint8 *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyboardState(Ref numkeys) + { + fixed (int* __dsl_numkeys = numkeys) + { + return (byte*)GetKeyboardState(__dsl_numkeys); + } + } + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => + Underlying.Value!.GetKeyFromName(name); + + [return: NativeTypeName("SDL_Keycode")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetKeyFromName([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (int)GetKeyFromName(__dsl_name); + } + } + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromScancode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetKeyFromScancode(Scancode scancode) => + Underlying.Value!.GetKeyFromScancode(scancode); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetKeyName([NativeTypeName("SDL_Keycode")] int key) => + Underlying.Value!.GetKeyName(key); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key) => + Underlying.Value!.GetKeyNameRaw(key); + + [NativeFunction("SDL3", EntryPoint = "GetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + void** userdata + ) => Underlying.Value!.GetLogOutputFunction(callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + Ref2D userdata + ) + { + fixed (void** __dsl_userdata = userdata) + { + GetLogOutputFunction(callback, __dsl_userdata); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetMasksForPixelFormatEnum")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetMasksForPixelFormatEnum( + PixelFormatEnum 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); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetMasksForPixelFormatEnum( + PixelFormatEnum format, + Ref bpp, + [NativeTypeName("Uint32 *")] Ref Rmask, + [NativeTypeName("Uint32 *")] Ref Gmask, + [NativeTypeName("Uint32 *")] Ref Bmask, + [NativeTypeName("Uint32 *")] Ref Amask + ) + { + fixed (uint* __dsl_Amask = Amask) + fixed (uint* __dsl_Bmask = Bmask) + fixed (uint* __dsl_Gmask = Gmask) + fixed (uint* __dsl_Rmask = Rmask) + fixed (int* __dsl_bpp = bpp) + { + return (MaybeBool) + (int)GetMasksForPixelFormatEnum( + format, + __dsl_bpp, + __dsl_Rmask, + __dsl_Gmask, + __dsl_Bmask, + __dsl_Amask + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetMaxHapticEffects(SDL_Haptic* haptic) => + Underlying.Value!.GetMaxHapticEffects(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetMaxHapticEffects(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)GetMaxHapticEffects(__dsl_haptic); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffectsPlaying")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetMaxHapticEffectsPlaying(SDL_Haptic* haptic) => + Underlying.Value!.GetMaxHapticEffectsPlaying(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffectsPlaying")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetMaxHapticEffectsPlaying(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)GetMaxHapticEffectsPlaying(__dsl_haptic); + } + } + + [return: NativeTypeName("SDL_MouseID *")] + [NativeFunction("SDL3", EntryPoint = "GetMice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetMice(int* count) => Underlying.Value!.GetMice(count); + + [return: NativeTypeName("SDL_MouseID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetMice(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetMice(__dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetModState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Keymod GetModState() => Underlying.Value!.GetModState(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetMouseFocus() => Underlying.Value!.GetMouseFocus(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* GetMouseFocusRaw() => Underlying.Value!.GetMouseFocusRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetMouseInstanceName( + [NativeTypeName("SDL_MouseID")] uint instance_id + ) => Underlying.Value!.GetMouseInstanceName(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetMouseInstanceNameRaw( + [NativeTypeName("SDL_MouseID")] uint instance_id + ) => Underlying.Value!.GetMouseInstanceNameRaw(instance_id); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetMouseState(float* x, float* y) => + Underlying.Value!.GetMouseState(x, y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetMouseState(Ref x, Ref y) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + { + return (uint)GetMouseState(__dsl_x, __dsl_y); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetNaturalDisplayOrientation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static DisplayOrientation GetNaturalDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => Underlying.Value!.GetNaturalDisplayOrientation(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetNumAudioDrivers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumAudioDrivers() => Underlying.Value!.GetNumAudioDrivers(); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long default_value + ) => Underlying.Value!.GetNumberProperty(props, name, default_value); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (long)GetNumberProperty(props, __dsl_name, default_value); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetNumCameraDrivers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumCameraDrivers() => Underlying.Value!.GetNumCameraDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpadFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumGamepadTouchpadFingers(SDL_Gamepad* gamepad, int touchpad) => + Underlying.Value!.GetNumGamepadTouchpadFingers(gamepad, touchpad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpadFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumGamepadTouchpadFingers(Ref gamepad, int touchpad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetNumGamepadTouchpadFingers(__dsl_gamepad, touchpad); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumGamepadTouchpads(SDL_Gamepad* gamepad) => + Underlying.Value!.GetNumGamepadTouchpads(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumGamepadTouchpads(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)GetNumGamepadTouchpads(__dsl_gamepad); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetNumHapticAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumHapticAxes(SDL_Haptic* haptic) => + Underlying.Value!.GetNumHapticAxes(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumHapticAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumHapticAxes(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)GetNumHapticAxes(__dsl_haptic); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickAxes(SDL_Joystick* joystick) => + Underlying.Value!.GetNumJoystickAxes(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickAxes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickAxes(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetNumJoystickAxes(__dsl_joystick); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickBalls")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickBalls(SDL_Joystick* joystick) => + Underlying.Value!.GetNumJoystickBalls(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickBalls")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickBalls(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetNumJoystickBalls(__dsl_joystick); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickButtons")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickButtons(SDL_Joystick* joystick) => + Underlying.Value!.GetNumJoystickButtons(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickButtons")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickButtons(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetNumJoystickButtons(__dsl_joystick); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickHats")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickHats(SDL_Joystick* joystick) => + Underlying.Value!.GetNumJoystickHats(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickHats")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumJoystickHats(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)GetNumJoystickHats(__dsl_joystick); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetNumRenderDrivers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumRenderDrivers() => Underlying.Value!.GetNumRenderDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetNumVideoDrivers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetNumVideoDrivers() => Underlying.Value!.GetNumVideoDrivers(); + + [NativeFunction("SDL3", EntryPoint = "GetPathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetPathInfo( + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ) => Underlying.Value!.GetPathInfo(path, info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetPathInfo( + [NativeTypeName("const char *")] Ref path, + Ref info + ) + { + fixed (PathInfo* __dsl_info = info) + fixed (sbyte* __dsl_path = path) + { + return (int)GetPathInfo(__dsl_path, __dsl_info); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "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 = "GetPenFromGuid")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetPenFromGuid(Guid guid) => Underlying.Value!.GetPenFromGuid(guid); + + [NativeFunction("SDL3", EntryPoint = "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 = "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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPens(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetPens(__dsl_count); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "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 + ) => Underlying.Value!.GetPenStatus(instance_id, x, y, 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 + ) + { + 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 = "GetPenType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PenSubtype GetPenType([NativeTypeName("SDL_PenID")] uint instance_id) => + Underlying.Value!.GetPenType(instance_id); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceCounter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetPerformanceCounter() => Underlying.Value!.GetPerformanceCounter(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceFrequency")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetPerformanceFrequency() => + Underlying.Value!.GetPerformanceFrequency(); + + [NativeFunction("SDL3", EntryPoint = "GetPixelFormatEnumForMasks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PixelFormatEnum GetPixelFormatEnumForMasks( + 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); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPixelFormatName(PixelFormatEnum format) => + Underlying.Value!.GetPixelFormatName(format); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPixelFormatName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetPixelFormatNameRaw(PixelFormatEnum format) => + Underlying.Value!.GetPixelFormatNameRaw(format); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPlatform() => Underlying.Value!.GetPlatform(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetPlatformRaw() => Underlying.Value!.GetPlatformRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PowerState GetPowerInfo(int* seconds, int* percent) => + Underlying.Value!.GetPowerInfo(seconds, percent); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPowerInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PowerState GetPowerInfo(Ref seconds, Ref percent) + { + fixed (int* __dsl_percent = percent) + fixed (int* __dsl_seconds = seconds) + { + return (PowerState)GetPowerInfo(__dsl_seconds, __dsl_percent); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPreferredLocales() => Underlying.Value!.GetPreferredLocales(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetPreferredLocales")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Locale* GetPreferredLocalesRaw() => + Underlying.Value!.GetPreferredLocalesRaw(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "GetPrefPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetPrefPath( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app + ) => Underlying.Value!.GetPrefPath(org, 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 + ) + { + fixed (sbyte* __dsl_app = app) + fixed (sbyte* __dsl_org = org) + { + return (sbyte*)GetPrefPath(__dsl_org, __dsl_app); + } + } + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetPrimaryDisplay")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetPrimaryDisplay() => Underlying.Value!.GetPrimaryDisplay(); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetPrimarySelectionText() => + Underlying.Value!.GetPrimarySelectionText(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetPrimarySelectionTextRaw() => + Underlying.Value!.GetPrimarySelectionTextRaw(); + + [NativeFunction("SDL3", EntryPoint = "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 = "GetPropertyType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => Underlying.Value!.GetPropertyType(props, name); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (PropertyType)GetPropertyType(props, __dsl_name); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadInstanceType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetRealGamepadInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.GetRealGamepadInstanceType(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetRealGamepadType(SDL_Gamepad* gamepad) => + Underlying.Value!.GetRealGamepadType(gamepad); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static GamepadType GetRealGamepadType(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadType)GetRealGamepadType(__dsl_gamepad); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int* X1, + int* Y1, + int* X2, + int* Y2 + ) => Underlying.Value!.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) + { + fixed (int* __dsl_Y2 = Y2) + fixed (int* __dsl_X2 = X2) + fixed (int* __dsl_Y1 = Y1) + fixed (int* __dsl_X1 = X1) + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool) + (int)GetRectAndLineIntersection( + __dsl_rect, + __dsl_X1, + __dsl_Y1, + __dsl_X2, + __dsl_Y2 + ); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* rect, + float* X1, + float* Y1, + float* X2, + float* Y2 + ) => Underlying.Value!.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) + { + fixed (float* __dsl_Y2 = Y2) + fixed (float* __dsl_X2 = X2) + fixed (float* __dsl_Y1 = Y1) + fixed (float* __dsl_X1 = X1) + fixed (FRect* __dsl_rect = rect) + { + return (MaybeBool) + (int)GetRectAndLineIntersectionFloat( + __dsl_rect, + __dsl_X1, + __dsl_Y1, + __dsl_X2, + __dsl_Y2 + ); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int 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")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Ref points, + int count, + [NativeTypeName("const SDL_Rect *")] Ref clip, + Ref result + ) + { + fixed (Rect* __dsl_result = result) + fixed (Rect* __dsl_clip = clip) + fixed (Point* __dsl_points = points) + { + return (MaybeBool) + (int)GetRectEnclosingPoints(__dsl_points, count, __dsl_clip, __dsl_result); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPointsFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int 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")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count, + [NativeTypeName("const SDL_FRect *")] Ref clip, + Ref result + ) + { + fixed (FRect* __dsl_result = result) + fixed (FRect* __dsl_clip = clip) + fixed (FPoint* __dsl_points = points) + { + return (MaybeBool) + (int)GetRectEnclosingPointsFloat(__dsl_points, count, __dsl_clip, __dsl_result); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int 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")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectIntersection( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ) + { + fixed (Rect* __dsl_result = result) + fixed (Rect* __dsl_B = B) + fixed (Rect* __dsl_A = A) + { + return (MaybeBool)(int)GetRectIntersection(__dsl_A, __dsl_B, __dsl_result); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int 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")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B, + Ref result + ) + { + fixed (FRect* __dsl_result = result) + fixed (FRect* __dsl_B = B) + fixed (FRect* __dsl_A = A) + { + return (MaybeBool) + (int)GetRectIntersectionFloat(__dsl_A, __dsl_B, __dsl_result); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRectUnion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ) => Underlying.Value!.GetRectUnion(A, B, result); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRectUnion( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ) + { + fixed (Rect* __dsl_result = result) + fixed (Rect* __dsl_B = B) + fixed (Rect* __dsl_A = A) + { + return (int)GetRectUnion(__dsl_A, __dsl_B, __dsl_result); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRectUnionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRectUnionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ) => Underlying.Value!.GetRectUnionFloat(A, B, result); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRectUnionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B, + Ref result + ) + { + fixed (FRect* __dsl_result = result) + fixed (FRect* __dsl_B = B) + fixed (FRect* __dsl_A = A) + { + return (int)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")] + [NativeFunction("SDL3", EntryPoint = "GetRelativeMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetRelativeMouseState(float* x, float* y) => + Underlying.Value!.GetRelativeMouseState(x, y); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetRelativeMouseState(Ref x, Ref y) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + { + return (uint)GetRelativeMouseState(__dsl_x, __dsl_y); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderClipRect(SDL_Renderer* renderer, Rect* rect) => + Underlying.Value!.GetRenderClipRect(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderClipRect(Ref renderer, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderClipRect(__dsl_renderer, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderColorScale(SDL_Renderer* renderer, float* scale) => + Underlying.Value!.GetRenderColorScale(renderer, scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderColorScale(Ref renderer, Ref scale) + { + fixed (float* __dsl_scale = scale) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderColorScale(__dsl_renderer, __dsl_scale); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode* blendMode) => + Underlying.Value!.GetRenderDrawBlendMode(renderer, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderDrawBlendMode( + Ref renderer, + Ref blendMode + ) + { + fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderDrawBlendMode(__dsl_renderer, __dsl_blendMode); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => Underlying.Value!.GetRenderDrawColor(renderer, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) + { + fixed (byte* __dsl_a = a) + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderDrawColor(__dsl_renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderDrawColorFloat( + SDL_Renderer* renderer, + float* r, + float* g, + float* b, + float* a + ) => Underlying.Value!.GetRenderDrawColorFloat(renderer, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderDrawColorFloat( + Ref renderer, + 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 (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderDrawColorFloat( + __dsl_renderer, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderDriver(int index) => + Underlying.Value!.GetRenderDriver(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetRenderDriverRaw(int index) => + Underlying.Value!.GetRenderDriverRaw(index); + + [NativeFunction("SDL3", EntryPoint = "GetRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Renderer* GetRenderer(SDL_Window* window) => + Underlying.Value!.GetRenderer(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderer(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (SDL_Renderer*)GetRenderer(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRendererFromTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Renderer* GetRendererFromTexture(SDL_Texture* texture) => + Underlying.Value!.GetRendererFromTexture(texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRendererFromTexture(Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (SDL_Renderer*)GetRendererFromTexture(__dsl_texture); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRendererInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRendererInfo(SDL_Renderer* renderer, RendererInfo* info) => + Underlying.Value!.GetRendererInfo(renderer, info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRendererInfo(Ref renderer, Ref info) + { + fixed (RendererInfo* __dsl_info = info) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRendererInfo(__dsl_renderer, __dsl_info); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetRendererProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetRendererProperties(SDL_Renderer* renderer) => + Underlying.Value!.GetRendererProperties(renderer); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetRendererProperties(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (uint)GetRendererProperties(__dsl_renderer); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderLogicalPresentation( + SDL_Renderer* renderer, + int* w, + int* h, + RendererLogicalPresentation* mode, + ScaleMode* scale_mode + ) => Underlying.Value!.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderLogicalPresentation( + Ref renderer, + Ref w, + Ref h, + Ref mode, + Ref scale_mode + ) + { + fixed (ScaleMode* __dsl_scale_mode = scale_mode) + fixed (RendererLogicalPresentation* __dsl_mode = mode) + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderLogicalPresentation( + __dsl_renderer, + __dsl_w, + __dsl_h, + __dsl_mode, + __dsl_scale_mode + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalCommandEncoder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* GetRenderMetalCommandEncoder(SDL_Renderer* renderer) => + Underlying.Value!.GetRenderMetalCommandEncoder(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalCommandEncoder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderMetalCommandEncoder(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (void*)GetRenderMetalCommandEncoder(__dsl_renderer); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* GetRenderMetalLayer(SDL_Renderer* renderer) => + Underlying.Value!.GetRenderMetalLayer(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderMetalLayer(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (void*)GetRenderMetalLayer(__dsl_renderer); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderOutputSize(SDL_Renderer* renderer, int* w, int* h) => + Underlying.Value!.GetRenderOutputSize(renderer, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderOutputSize(Ref renderer, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderOutputSize(__dsl_renderer, __dsl_w, __dsl_h); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderScale(SDL_Renderer* renderer, float* scaleX, float* scaleY) => + Underlying.Value!.GetRenderScale(renderer, scaleX, scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderScale( + Ref renderer, + Ref scaleX, + Ref scaleY + ) + { + fixed (float* __dsl_scaleY = scaleY) + fixed (float* __dsl_scaleX = scaleX) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderScale(__dsl_renderer, __dsl_scaleX, __dsl_scaleY); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Texture* GetRenderTarget(SDL_Renderer* renderer) => + Underlying.Value!.GetRenderTarget(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderTarget(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)GetRenderTarget(__dsl_renderer); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderViewport(SDL_Renderer* renderer, Rect* rect) => + Underlying.Value!.GetRenderViewport(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderViewport(Ref renderer, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderViewport(__dsl_renderer, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderVSync(SDL_Renderer* renderer, int* vsync) => + Underlying.Value!.GetRenderVSync(renderer, vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetRenderVSync(Ref renderer, Ref vsync) + { + fixed (int* __dsl_vsync = vsync) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)GetRenderVSync(__dsl_renderer, __dsl_vsync); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRenderWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* GetRenderWindow(SDL_Renderer* renderer) => + Underlying.Value!.GetRenderWindow(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRenderWindow(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Window*)GetRenderWindow(__dsl_renderer); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetRevision() => Underlying.Value!.GetRevision(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetRevisionRaw() => Underlying.Value!.GetRevisionRaw(); + + [NativeFunction("SDL3", EntryPoint = "GetRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => Underlying.Value!.GetRGB(pixel, format, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) + { + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (PixelFormat* __dsl_format = format) + { + GetRGB(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetRgba")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) + { + fixed (byte* __dsl_a = a) + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (PixelFormat* __dsl_format = format) + { + GetRgba(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key) => + Underlying.Value!.GetScancodeFromKey(key); + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Scancode GetScancodeFromName([NativeTypeName("const char *")] sbyte* name) => + Underlying.Value!.GetScancodeFromName(name); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Scancode GetScancodeFromName([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (Scancode)GetScancodeFromName(__dsl_name); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetScancodeName(Scancode scancode) => + Underlying.Value!.GetScancodeName(scancode); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetScancodeNameRaw(Scancode scancode) => + Underlying.Value!.GetScancodeNameRaw(scancode); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetSemaphoreValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSemaphoreValue(SDL_Semaphore* sem) => + Underlying.Value!.GetSemaphoreValue(sem); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSemaphoreValue")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSemaphoreValue(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (uint)GetSemaphoreValue(__dsl_sem); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSensorData(SDL_Sensor* sensor, float* data, int num_values) => + Underlying.Value!.GetSensorData(sensor, data, num_values); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSensorData(Ref sensor, Ref data, int num_values) + { + fixed (float* __dsl_data = data) + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (int)GetSensorData(__dsl_sensor, __dsl_data, num_values); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSensorFromInstanceID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.GetSensorFromInstanceID(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Sensor* GetSensorFromInstanceIDRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.GetSensorFromInstanceIDRaw(instance_id); + + [return: NativeTypeName("SDL_SensorID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSensorInstanceID(SDL_Sensor* sensor) => + Underlying.Value!.GetSensorInstanceID(sensor); + + [return: NativeTypeName("SDL_SensorID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSensorInstanceID(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (uint)GetSensorInstanceID(__dsl_sensor); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSensorInstanceName( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.GetSensorInstanceName(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 + ) => Underlying.Value!.GetSensorInstanceNameRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceNonPortableType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSensorInstanceNonPortableType( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.GetSensorInstanceNonPortableType(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SensorType GetSensorInstanceType( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.GetSensorInstanceType(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetSensorName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetSensorName(SDL_Sensor* sensor) => + Underlying.Value!.GetSensorName(sensor); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSensorName(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (sbyte*)GetSensorName(__dsl_sensor); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSensorNonPortableType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSensorNonPortableType(SDL_Sensor* sensor) => + Underlying.Value!.GetSensorNonPortableType(sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSensorNonPortableType(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (int)GetSensorNonPortableType(__dsl_sensor); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSensorProperties(SDL_Sensor* sensor) => + Underlying.Value!.GetSensorProperties(sensor); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSensorProperties(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (uint)GetSensorProperties(__dsl_sensor); + } + } + + [return: NativeTypeName("SDL_SensorID *")] + [NativeFunction("SDL3", EntryPoint = "GetSensors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint* GetSensors(int* count) => Underlying.Value!.GetSensors(count); + + [return: NativeTypeName("SDL_SensorID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetSensors(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)GetSensors(__dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSensorType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SensorType GetSensorType(SDL_Sensor* sensor) => + Underlying.Value!.GetSensorType(sensor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SensorType GetSensorType(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (SensorType)GetSensorType(__dsl_sensor); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSilenceValueForFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSilenceValueForFormat( + [NativeTypeName("SDL_AudioFormat")] ushort format + ) => Underlying.Value!.GetSilenceValueForFormat(format); + + [NativeFunction("SDL3", EntryPoint = "GetStorageFileSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetStorageFileSize( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("Uint64 *")] ulong* length + ) => Underlying.Value!.GetStorageFileSize(storage, path, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetStorageFileSize( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("Uint64 *")] Ref length + ) + { + fixed (ulong* __dsl_length = length) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)GetStorageFileSize(__dsl_storage, __dsl_path, __dsl_length); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetStoragePathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetStoragePathInfo( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ) => Underlying.Value!.GetStoragePathInfo(storage, path, info); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetStoragePathInfo( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref info + ) + { + fixed (PathInfo* __dsl_info = info) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)GetStoragePathInfo(__dsl_storage, __dsl_path, __dsl_info); + } + } + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetStorageSpaceRemaining")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetStorageSpaceRemaining(SDL_Storage* storage) => + Underlying.Value!.GetStorageSpaceRemaining(storage); + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageSpaceRemaining")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetStorageSpaceRemaining(Ref storage) + { + fixed (SDL_Storage* __dsl_storage = storage) + { + return (ulong)GetStorageSpaceRemaining(__dsl_storage); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* default_value + ) => Underlying.Value!.GetStringProperty(props, name, default_value); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref default_value + ) + { + fixed (sbyte* __dsl_default_value = default_value) + fixed (sbyte* __dsl_name = name) + { + return (sbyte*)GetStringProperty(props, __dsl_name, __dsl_default_value); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceAlphaMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* alpha + ) => Underlying.Value!.GetSurfaceAlphaMod(surface, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref alpha + ) + { + fixed (byte* __dsl_alpha = alpha) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceAlphaMod(__dsl_surface, __dsl_alpha); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => + Underlying.Value!.GetSurfaceBlendMode(surface, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceBlendMode(Ref surface, Ref blendMode) + { + fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceBlendMode(__dsl_surface, __dsl_blendMode); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceClipRect(Surface* surface, Rect* rect) => + Underlying.Value!.GetSurfaceClipRect(surface, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceClipRect(Ref surface, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceClipRect(__dsl_surface, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceColorKey( + Surface* surface, + [NativeTypeName("Uint32 *")] uint* key + ) => Underlying.Value!.GetSurfaceColorKey(surface, key); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceColorKey( + Ref surface, + [NativeTypeName("Uint32 *")] Ref key + ) + { + fixed (uint* __dsl_key = key) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceColorKey(__dsl_surface, __dsl_key); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => Underlying.Value!.GetSurfaceColorMod(surface, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) + { + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceColorMod(__dsl_surface, __dsl_r, __dsl_g, __dsl_b); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace) => + Underlying.Value!.GetSurfaceColorspace(surface, colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSurfaceColorspace(Ref surface, Ref colorspace) + { + fixed (Colorspace* __dsl_colorspace = colorspace) + fixed (Surface* __dsl_surface = surface) + { + return (int)GetSurfaceColorspace(__dsl_surface, __dsl_colorspace); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSurfaceProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSurfaceProperties(Surface* surface) => + Underlying.Value!.GetSurfaceProperties(surface); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetSurfaceProperties(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (uint)GetSurfaceProperties(__dsl_surface); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetSystemRAM")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetSystemRAM() => Underlying.Value!.GetSystemRAM(); + + [NativeFunction("SDL3", EntryPoint = "GetSystemTheme")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SystemTheme GetSystemTheme() => Underlying.Value!.GetSystemTheme(); + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureAlphaMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* alpha + ) => Underlying.Value!.GetTextureAlphaMod(texture, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref alpha + ) + { + fixed (byte* __dsl_alpha = alpha) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureAlphaMod(__dsl_texture, __dsl_alpha); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureAlphaModFloat(SDL_Texture* texture, float* alpha) => + Underlying.Value!.GetTextureAlphaModFloat(texture, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureAlphaModFloat(Ref texture, Ref alpha) + { + fixed (float* __dsl_alpha = alpha) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureAlphaModFloat(__dsl_texture, __dsl_alpha); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureBlendMode(SDL_Texture* texture, BlendMode* blendMode) => + Underlying.Value!.GetTextureBlendMode(texture, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureBlendMode(Ref texture, Ref blendMode) + { + fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureBlendMode(__dsl_texture, __dsl_blendMode); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => Underlying.Value!.GetTextureColorMod(texture, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) + { + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureColorMod(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureColorModFloat( + SDL_Texture* texture, + float* r, + float* g, + float* b + ) => Underlying.Value!.GetTextureColorModFloat(texture, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureColorModFloat( + Ref texture, + Ref r, + Ref g, + Ref b + ) + { + fixed (float* __dsl_b = b) + fixed (float* __dsl_g = g) + fixed (float* __dsl_r = r) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureColorModFloat(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetTextureProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetTextureProperties(SDL_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 (SDL_Texture* __dsl_texture = texture) + { + return (uint)GetTextureProperties(__dsl_texture); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureScaleMode(SDL_Texture* texture, ScaleMode* scaleMode) => + Underlying.Value!.GetTextureScaleMode(texture, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetTextureScaleMode(Ref texture, Ref scaleMode) + { + fixed (ScaleMode* __dsl_scaleMode = scaleMode) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)GetTextureScaleMode(__dsl_texture, __dsl_scaleMode); + } + } + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetThreadID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetThreadID(SDL_Thread* thread) => + Underlying.Value!.GetThreadID(thread); + + [return: NativeTypeName("SDL_ThreadID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetThreadID(Ref thread) + { + fixed (SDL_Thread* __dsl_thread = thread) + { + return (ulong)GetThreadID(__dsl_thread); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetThreadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetThreadName(SDL_Thread* thread) => + Underlying.Value!.GetThreadName(thread); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetThreadName(Ref thread) + { + fixed (SDL_Thread* __dsl_thread = thread) + { + return (sbyte*)GetThreadName(__dsl_thread); + } + } + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong GetTicks() => Underlying.Value!.GetTicks(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicksNS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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) => + Underlying.Value!.GetTLS(id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id) => + Underlying.Value!.GetTLSRaw(id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetTouchDeviceName( + [NativeTypeName("SDL_TouchID")] ulong touchID + ) => Underlying.Value!.GetTouchDeviceName(touchID); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetTouchDeviceNameRaw([NativeTypeName("SDL_TouchID")] ulong touchID) => + Underlying.Value!.GetTouchDeviceNameRaw(touchID); + + [return: NativeTypeName("SDL_TouchID *")] + [NativeFunction("SDL3", EntryPoint = "GetTouchDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static ulong* GetTouchDevices(int* count) => + Underlying.Value!.GetTouchDevices(count); + + [return: NativeTypeName("SDL_TouchID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDevices")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetTouchDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (ulong*)GetTouchDevices(__dsl_count); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetTouchDeviceType")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static TouchDeviceType GetTouchDeviceType( + [NativeTypeName("SDL_TouchID")] ulong touchID + ) => Underlying.Value!.GetTouchDeviceType(touchID); + + [NativeFunction("SDL3", EntryPoint = "GetTouchFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Finger** GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + int* count + ) => Underlying.Value!.GetTouchFingers(touchID, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchFingers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (Finger**)GetTouchFingers(touchID, __dsl_count); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetUserFolder(Folder folder) => + Underlying.Value!.GetUserFolder(folder); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetUserFolderRaw(Folder folder) => + Underlying.Value!.GetUserFolderRaw(folder); + + [NativeFunction("SDL3", EntryPoint = "GetVersion")] + [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); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetVideoDriver(int index) => + Underlying.Value!.GetVideoDriver(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetVideoDriverRaw(int index) => + Underlying.Value!.GetVideoDriverRaw(index); + + [NativeFunction("SDL3", EntryPoint = "GetWindowBordersSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowBordersSize( + SDL_Window* window, + int* top, + int* left, + int* bottom, + int* right + ) => Underlying.Value!.GetWindowBordersSize(window, top, left, bottom, right); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowBordersSize( + Ref window, + Ref top, + Ref left, + Ref bottom, + Ref right + ) + { + fixed (int* __dsl_right = right) + fixed (int* __dsl_bottom = bottom) + fixed (int* __dsl_left = left) + fixed (int* __dsl_top = top) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowBordersSize( + __dsl_window, + __dsl_top, + __dsl_left, + __dsl_bottom, + __dsl_right + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowDisplayScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetWindowDisplayScale(SDL_Window* window) => + Underlying.Value!.GetWindowDisplayScale(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowDisplayScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetWindowDisplayScale(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (float)GetWindowDisplayScale(__dsl_window); + } + } + + [return: NativeTypeName("SDL_WindowFlags")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFlags")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowFlags(SDL_Window* window) => + Underlying.Value!.GetWindowFlags(window); + + [return: NativeTypeName("SDL_WindowFlags")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFlags")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowFlags(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetWindowFlags(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id) => + Underlying.Value!.GetWindowFromID(id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* GetWindowFromIDRaw([NativeTypeName("SDL_WindowID")] uint id) => + Underlying.Value!.GetWindowFromIDRaw(id); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static DisplayMode* GetWindowFullscreenMode(SDL_Window* window) => + Underlying.Value!.GetWindowFullscreenMode(window); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowFullscreenMode(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (DisplayMode*)GetWindowFullscreenMode(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowICCProfile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* GetWindowICCProfile( + SDL_Window* window, + [NativeTypeName("size_t *")] nuint* size + ) => Underlying.Value!.GetWindowICCProfile(window, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowICCProfile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowICCProfile( + Ref window, + [NativeTypeName("size_t *")] Ref size + ) + { + fixed (nuint* __dsl_size = size) + fixed (SDL_Window* __dsl_window = window) + { + return (void*)GetWindowICCProfile(__dsl_window, __dsl_size); + } + } + + [return: NativeTypeName("SDL_WindowID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowID(SDL_Window* window) => Underlying.Value!.GetWindowID(window); + + [return: NativeTypeName("SDL_WindowID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowID")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowID(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetWindowID(__dsl_window); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowKeyboardGrab(SDL_Window* window) => + Underlying.Value!.GetWindowKeyboardGrab(window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowKeyboardGrab(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)GetWindowKeyboardGrab(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowMaximumSize(SDL_Window* window, int* w, int* h) => + Underlying.Value!.GetWindowMaximumSize(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowMaximumSize(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowMaximumSize(__dsl_window, __dsl_w, __dsl_h); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowMinimumSize(SDL_Window* window, int* w, int* h) => + Underlying.Value!.GetWindowMinimumSize(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowMinimumSize(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowMinimumSize(__dsl_window, __dsl_w, __dsl_h); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowMouseGrab(SDL_Window* window) => + Underlying.Value!.GetWindowMouseGrab(window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GetWindowMouseGrab(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)GetWindowMouseGrab(__dsl_window); + } + } + + [return: NativeTypeName("const SDL_Rect *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Rect* GetWindowMouseRect(SDL_Window* window) => + Underlying.Value!.GetWindowMouseRect(window); + + [return: NativeTypeName("const SDL_Rect *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowMouseRect(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (Rect*)GetWindowMouseRect(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowOpacity(SDL_Window* 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(Ref window, Ref out_opacity) + { + fixed (float* __dsl_out_opacity = out_opacity) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowOpacity(__dsl_window, __dsl_out_opacity); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowParent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* GetWindowParent(SDL_Window* window) => + Underlying.Value!.GetWindowParent(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowParent(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (SDL_Window*)GetWindowParent(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelDensity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetWindowPixelDensity(SDL_Window* window) => + Underlying.Value!.GetWindowPixelDensity(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelDensity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static float GetWindowPixelDensity(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (float)GetWindowPixelDensity(__dsl_window); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowPixelFormat(SDL_Window* window) => + Underlying.Value!.GetWindowPixelFormat(window); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowPixelFormat(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetWindowPixelFormat(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowPosition(SDL_Window* window, int* x, int* y) => + Underlying.Value!.GetWindowPosition(window, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowPosition(Ref window, Ref x, Ref y) + { + fixed (int* __dsl_y = y) + fixed (int* __dsl_x = x) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowPosition(__dsl_window, __dsl_x, __dsl_y); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowProperties(SDL_Window* window) => + Underlying.Value!.GetWindowProperties(window); + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint GetWindowProperties(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)GetWindowProperties(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowSize(SDL_Window* window, int* w, int* h) => + Underlying.Value!.GetWindowSize(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowSize(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowSize(__dsl_window, __dsl_w, __dsl_h); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowSizeInPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowSizeInPixels(SDL_Window* window, int* w, int* h) => + Underlying.Value!.GetWindowSizeInPixels(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GetWindowSizeInPixels(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GetWindowSizeInPixels(__dsl_window, __dsl_w, __dsl_h); + } + } + + [NativeFunction("SDL3", EntryPoint = "GetWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* GetWindowSurface(SDL_Window* window) => + Underlying.Value!.GetWindowSurface(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (Surface*)GetWindowSurface(__dsl_window); + } + } + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte* GetWindowTitle(SDL_Window* window) => + Underlying.Value!.GetWindowTitle(window); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GetWindowTitle(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (sbyte*)GetWindowTitle(__dsl_window); + } + } + + [return: NativeTypeName("SDL_GLContext")] + [NativeFunction("SDL3", EntryPoint = "GLCreateContext")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* GLCreateContext(SDL_Window* window) => + Underlying.Value!.GLCreateContext(window); + + [return: NativeTypeName("SDL_GLContext")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GLCreateContext(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (void*)GLCreateContext(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "GLDeleteContext")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context) => + Underlying.Value!.GLDeleteContext(context); + + [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); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GLExtensionSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => + Underlying.Value!.GLExtensionSupported(extension); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool GLExtensionSupported( + [NativeTypeName("const char *")] Ref extension + ) + { + fixed (sbyte* __dsl_extension = extension) + { + return (MaybeBool)(int)GLExtensionSupported(__dsl_extension); + } + } + + [NativeFunction("SDL3", EntryPoint = "GLGetAttribute")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLGetAttribute(GLattr attr, int* value) => + Underlying.Value!.GLGetAttribute(attr, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLGetAttribute(GLattr attr, Ref value) + { + fixed (int* __dsl_value = value) + { + return (int)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(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr GLGetCurrentWindow() => + Underlying.Value!.GLGetCurrentWindow(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Window* GLGetCurrentWindowRaw() => + Underlying.Value!.GLGetCurrentWindowRaw(); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "GLGetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ) => Underlying.Value!.GLGetProcAddress(proc); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetProcAddress")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) + { + fixed (sbyte* __dsl_proc = proc) + { + return (delegate* unmanaged)GLGetProcAddress(__dsl_proc); + } + } + + [NativeFunction("SDL3", EntryPoint = "GLGetSwapInterval")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLGetSwapInterval(int* interval) => + Underlying.Value!.GLGetSwapInterval(interval); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLGetSwapInterval(Ref interval) + { + fixed (int* __dsl_interval = interval) + { + return (int)GLGetSwapInterval(__dsl_interval); + } + } + + [NativeFunction("SDL3", EntryPoint = "GLLoadLibrary")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => + Underlying.Value!.GLLoadLibrary(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLLoadLibrary([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (int)GLLoadLibrary(__dsl_path); + } + } + + [NativeFunction("SDL3", EntryPoint = "GLMakeCurrent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLMakeCurrent( + SDL_Window* window, + [NativeTypeName("SDL_GLContext")] void* context + ) => Underlying.Value!.GLMakeCurrent(window, context); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLMakeCurrent( + Ref window, + [NativeTypeName("SDL_GLContext")] Ref context + ) + { + fixed (void* __dsl_context = context) + fixed (SDL_Window* __dsl_window = window) + { + return (int)GLMakeCurrent(__dsl_window, __dsl_context); + } + } + + [NativeFunction("SDL3", EntryPoint = "GLResetAttributes")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GLResetAttributes() => Underlying.Value!.GLResetAttributes(); + + [NativeFunction("SDL3", EntryPoint = "GLSetAttribute")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLSetAttribute(GLattr attr, int value) => + Underlying.Value!.GLSetAttribute(attr, value); + + [NativeFunction("SDL3", EntryPoint = "GLSetSwapInterval")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLSetSwapInterval(int interval) => + Underlying.Value!.GLSetSwapInterval(interval); + + [NativeFunction("SDL3", EntryPoint = "GLSwapWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLSwapWindow(SDL_Window* window) => + Underlying.Value!.GLSwapWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GLSwapWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)GLSwapWindow(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "GLUnloadLibrary")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void GLUnloadLibrary() => Underlying.Value!.GLUnloadLibrary(); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte** GlobDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ) => Underlying.Value!.GlobDirectory(path, pattern, flags, count); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GlobDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) + { + fixed (int* __dsl_count = count) + fixed (sbyte* __dsl_pattern = pattern) + fixed (sbyte* __dsl_path = path) + { + return (sbyte**)GlobDirectory(__dsl_path, __dsl_pattern, flags, __dsl_count); + } + } + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static sbyte** GlobStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ) => Underlying.Value!.GlobStorageDirectory(storage, path, pattern, flags, count); + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobStorageDirectory")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr2D GlobStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) + { + fixed (int* __dsl_count = count) + fixed (sbyte* __dsl_pattern = pattern) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (sbyte**)GlobStorageDirectory( + __dsl_storage, + __dsl_path, + __dsl_pattern, + flags, + __dsl_count + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "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 = "GuidToString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GuidToString( + Guid guid, + [NativeTypeName("char *")] sbyte* pszGUID, + int cbGUID + ) => Underlying.Value!.GuidToString(guid, pszGUID, cbGUID); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int GuidToString( + Guid guid, + [NativeTypeName("char *")] Ref pszGUID, + int cbGUID + ) + { + fixed (sbyte* __dsl_pszGUID = pszGUID) + { + return (int)GuidToString(guid, __dsl_pszGUID, cbGUID); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticEffectSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HapticEffectSupported( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ) => Underlying.Value!.HapticEffectSupported(haptic, effect); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HapticEffectSupported( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) + { + fixed (HapticEffect* __dsl_effect = effect) + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (MaybeBool)(int)HapticEffectSupported(__dsl_haptic, __dsl_effect); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticRumbleSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HapticRumbleSupported(SDL_Haptic* haptic) => + Underlying.Value!.HapticRumbleSupported(haptic); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HapticRumbleSupported(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (MaybeBool)(int)HapticRumbleSupported(__dsl_haptic); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasAltiVec() => Underlying.Value!.HasAltiVec(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasAltiVecRaw() => Underlying.Value!.HasAltiVecRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasArmsimd() => Underlying.Value!.HasArmsimd(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasArmsimdRaw() => Underlying.Value!.HasArmsimdRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasAVX() => Underlying.Value!.HasAVX(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasAVX2() => Underlying.Value!.HasAVX2(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasAVX2Raw() => Underlying.Value!.HasAVX2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasAVX512F() => Underlying.Value!.HasAVX512F(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasAVX512FRaw() => Underlying.Value!.HasAVX512FRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasAVXRaw() => Underlying.Value!.HasAVXRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => + Underlying.Value!.HasClipboardData(mime_type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasClipboardText() => Underlying.Value!.HasClipboardText(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasClipboardTextRaw() => Underlying.Value!.HasClipboardTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => + Underlying.Value!.HasEvent(type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasEventRaw([NativeTypeName("Uint32")] uint type) => + Underlying.Value!.HasEventRaw(type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => Underlying.Value!.HasEvents(minType, maxType); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasEventsRaw( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => Underlying.Value!.HasEventsRaw(minType, maxType); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasGamepad() => Underlying.Value!.HasGamepad(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasGamepadRaw() => Underlying.Value!.HasGamepadRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasJoystick() => Underlying.Value!.HasJoystick(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasJoystickRaw() => Underlying.Value!.HasJoystickRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasKeyboard() => Underlying.Value!.HasKeyboard(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasKeyboardRaw() => Underlying.Value!.HasKeyboardRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasLasx() => Underlying.Value!.HasLasx(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasLasxRaw() => Underlying.Value!.HasLasxRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasLSX() => Underlying.Value!.HasLSX(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasLSXRaw() => Underlying.Value!.HasLSXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasMMX() => Underlying.Value!.HasMMX(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasMMXRaw() => Underlying.Value!.HasMMXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasMouse() => Underlying.Value!.HasMouse(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasMouseRaw() => Underlying.Value!.HasMouseRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasNeon() => Underlying.Value!.HasNeon(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasNeonRaw() => Underlying.Value!.HasNeonRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasPrimarySelectionText() => + Underlying.Value!.HasPrimarySelectionText(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasPrimarySelectionTextRaw() => + Underlying.Value!.HasPrimarySelectionTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => Underlying.Value!.HasProperty(props, name); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + 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: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B + ) => Underlying.Value!.HasRectIntersection(A, B); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasRectIntersection( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B + ) + { + fixed (Rect* __dsl_B = B) + fixed (Rect* __dsl_A = A) + { + return (MaybeBool)(int)HasRectIntersection(__dsl_A, __dsl_B); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B + ) => Underlying.Value!.HasRectIntersectionFloat(A, B); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasRectIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B + ) + { + fixed (FRect* __dsl_B = B) + fixed (FRect* __dsl_A = A) + { + return (MaybeBool)(int)HasRectIntersectionFloat(__dsl_A, __dsl_B); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasScreenKeyboardSupport() => + Underlying.Value!.HasScreenKeyboardSupport(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasScreenKeyboardSupportRaw() => + Underlying.Value!.HasScreenKeyboardSupportRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasSSE() => Underlying.Value!.HasSSE(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasSSE2() => Underlying.Value!.HasSSE2(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasSSE2Raw() => Underlying.Value!.HasSSE2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasSSE3() => Underlying.Value!.HasSSE3(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasSSE3Raw() => Underlying.Value!.HasSSE3Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasSSE41() => Underlying.Value!.HasSSE41(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasSSE41Raw() => Underlying.Value!.HasSSE41Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool HasSSE42() => Underlying.Value!.HasSSE42(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasSSE42Raw() => Underlying.Value!.HasSSE42Raw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HasSSERaw() => Underlying.Value!.HasSSERaw(); + + [NativeFunction("SDL3", EntryPoint = "HidBleScan")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void HidBleScan([NativeTypeName("SDL_bool")] int active) => + Underlying.Value!.HidBleScan(active); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active) => + Underlying.Value!.HidBleScan(active); + + [NativeFunction("SDL3", EntryPoint = "HidClose")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidClose(SDL_hid_device* dev) => Underlying.Value!.HidClose(dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidClose(Ref dev) + { + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidClose(__dsl_dev); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "HidDeviceChangeCount")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint HidDeviceChangeCount() => Underlying.Value!.HidDeviceChangeCount(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr HidEnumerate( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ) => Underlying.Value!.HidEnumerate(vendor_id, product_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static HidDeviceInfo* HidEnumerateRaw( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ) => Underlying.Value!.HidEnumerateRaw(vendor_id, product_id); + + [NativeFunction("SDL3", EntryPoint = "HidExit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidExit() => Underlying.Value!.HidExit(); + + [NativeFunction("SDL3", EntryPoint = "HidFreeEnumeration")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void HidFreeEnumeration(HidDeviceInfo* devs) => + Underlying.Value!.HidFreeEnumeration(devs); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_free_enumeration")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void HidFreeEnumeration(Ref devs) + { + fixed (HidDeviceInfo* __dsl_devs = devs) + { + HidFreeEnumeration(__dsl_devs); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidGetDeviceInfo")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static HidDeviceInfo* HidGetDeviceInfo(SDL_hid_device* dev) => + Underlying.Value!.HidGetDeviceInfo(dev); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_device_info")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr HidGetDeviceInfo(Ref dev) + { + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (HidDeviceInfo*)HidGetDeviceInfo(__dsl_dev); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidGetFeatureReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => Underlying.Value!.HidGetFeatureReport(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_feature_report")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetFeatureReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetFeatureReport(__dsl_dev, __dsl_data, length); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidGetIndexedString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetIndexedString( + SDL_hid_device* dev, + int string_index, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => Underlying.Value!.HidGetIndexedString(dev, string_index, @string, maxlen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_indexed_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetIndexedString( + Ref dev, + int string_index, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetIndexedString(__dsl_dev, string_index, __dsl_string, maxlen); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidGetInputReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetInputReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => Underlying.Value!.HidGetInputReport(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_input_report")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetInputReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetInputReport(__dsl_dev, __dsl_data, length); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidGetManufacturerString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetManufacturerString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => Underlying.Value!.HidGetManufacturerString(dev, @string, maxlen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_manufacturer_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetManufacturerString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetManufacturerString(__dsl_dev, __dsl_string, maxlen); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidGetProductString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetProductString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => Underlying.Value!.HidGetProductString(dev, @string, maxlen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_product_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetProductString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetProductString(__dsl_dev, __dsl_string, maxlen); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidGetReportDescriptor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetReportDescriptor( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* buf, + [NativeTypeName("size_t")] nuint buf_size + ) => Underlying.Value!.HidGetReportDescriptor(dev, buf, buf_size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetReportDescriptor( + Ref dev, + [NativeTypeName("unsigned char *")] Ref buf, + [NativeTypeName("size_t")] nuint buf_size + ) + { + fixed (byte* __dsl_buf = buf) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetReportDescriptor(__dsl_dev, __dsl_buf, buf_size); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidGetSerialNumberString")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetSerialNumberString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => Underlying.Value!.HidGetSerialNumberString(dev, @string, maxlen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_serial_number_string")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidGetSerialNumberString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidGetSerialNumberString(__dsl_dev, __dsl_string, maxlen); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidInit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidInit() => Underlying.Value!.HidInit(); + + [NativeFunction("SDL3", EntryPoint = "HidOpen")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_hid_device* HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] uint* serial_number + ) => Underlying.Value!.HidOpen(vendor_id, product_id, serial_number); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] Ref serial_number + ) + { + fixed (uint* __dsl_serial_number = serial_number) + { + return (SDL_hid_device*)HidOpen(vendor_id, product_id, __dsl_serial_number); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidOpenPath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_hid_device* HidOpenPath([NativeTypeName("const char *")] sbyte* path) => + Underlying.Value!.HidOpenPath(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open_path")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr HidOpenPath( + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + { + return (SDL_hid_device*)HidOpenPath(__dsl_path); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidRead")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidRead( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => Underlying.Value!.HidRead(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidRead( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidRead(__dsl_dev, __dsl_data, length); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidReadTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidReadTimeout( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ) => Underlying.Value!.HidReadTimeout(dev, data, length, milliseconds); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read_timeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidReadTimeout( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidReadTimeout(__dsl_dev, __dsl_data, length, milliseconds); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidSendFeatureReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidSendFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => Underlying.Value!.HidSendFeatureReport(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_send_feature_report")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidSendFeatureReport( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidSendFeatureReport(__dsl_dev, __dsl_data, length); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidSetNonblocking")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidSetNonblocking(SDL_hid_device* dev, int nonblock) => + Underlying.Value!.HidSetNonblocking(dev, nonblock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_set_nonblocking")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidSetNonblocking(Ref dev, int nonblock) + { + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidSetNonblocking(__dsl_dev, nonblock); + } + } + + [NativeFunction("SDL3", EntryPoint = "HidWrite")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidWrite( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => Underlying.Value!.HidWrite(dev, data, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_write")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HidWrite( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)HidWrite(__dsl_dev, __dsl_data, length); + } + } + + [NativeFunction("SDL3", EntryPoint = "HideCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HideCursor() => Underlying.Value!.HideCursor(); + + [NativeFunction("SDL3", EntryPoint = "HideWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HideWindow(SDL_Window* window) => Underlying.Value!.HideWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int HideWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)HideWindow(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "Init")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int Init([NativeTypeName("Uint32")] uint flags) => + Underlying.Value!.Init(flags); + + [NativeFunction("SDL3", EntryPoint = "InitHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int InitHapticRumble(SDL_Haptic* haptic) => + Underlying.Value!.InitHapticRumble(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int InitHapticRumble(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)InitHapticRumble(__dsl_haptic); + } + } + + [NativeFunction("SDL3", EntryPoint = "InitSubSystem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int InitSubSystem([NativeTypeName("Uint32")] uint flags) => + Underlying.Value!.InitSubSystem(flags); + + [NativeFunction("SDL3", EntryPoint = "IOFromConstMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_IOStream* IOFromConstMem( + [NativeTypeName("const void *")] void* mem, + [NativeTypeName("size_t")] nuint size + ) => Underlying.Value!.IOFromConstMem(mem, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr IOFromConstMem( + [NativeTypeName("const void *")] Ref mem, + [NativeTypeName("size_t")] nuint size + ) + { + fixed (void* __dsl_mem = mem) + { + return (SDL_IOStream*)IOFromConstMem(__dsl_mem, size); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr IOFromDynamicMem() => Underlying.Value!.IOFromDynamicMem(); + + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_IOStream* IOFromDynamicMemRaw() => + Underlying.Value!.IOFromDynamicMemRaw(); + + [NativeFunction("SDL3", EntryPoint = "IOFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_IOStream* IOFromFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const char *")] sbyte* mode + ) => Underlying.Value!.IOFromFile(file, mode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr IOFromFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const char *")] Ref mode + ) + { + fixed (sbyte* __dsl_mode = mode) + fixed (sbyte* __dsl_file = file) + { + return (SDL_IOStream*)IOFromFile(__dsl_file, __dsl_mode); + } + } + + [NativeFunction("SDL3", EntryPoint = "IOFromMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_IOStream* IOFromMem(void* mem, [NativeTypeName("size_t")] nuint size) => + Underlying.Value!.IOFromMem(mem, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromMem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr IOFromMem(Ref mem, [NativeTypeName("size_t")] nuint size) + { + fixed (void* __dsl_mem = mem) + { + return (SDL_IOStream*)IOFromMem(__dsl_mem, size); + } + } + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "IOvprintf")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint IOvprintf( + SDL_IOStream* context, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => Underlying.Value!.IOvprintf(context, fmt, ap); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOvprintf")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint IOvprintf( + Ref context, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) + { + fixed (sbyte* __dsl_ap = ap) + fixed (sbyte* __dsl_fmt = fmt) + fixed (SDL_IOStream* __dsl_context = context) + { + return (nuint)IOvprintf(__dsl_context, __dsl_fmt, __dsl_ap); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsGamepad( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.IsGamepad(instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + Underlying.Value!.IsGamepadRaw(instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "IsJoystickHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int IsJoystickHaptic(SDL_Joystick* joystick) => + Underlying.Value!.IsJoystickHaptic(joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsJoystickHaptic(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (MaybeBool)(int)IsJoystickHaptic(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsJoystickVirtual( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.IsJoystickVirtual(instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int IsJoystickVirtualRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.IsJoystickVirtualRaw(instance_id); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsMouseHaptic() => Underlying.Value!.IsMouseHaptic(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int IsMouseHapticRaw() => Underlying.Value!.IsMouseHapticRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool IsTablet() => Underlying.Value!.IsTablet(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int IsTabletRaw() => Underlying.Value!.IsTabletRaw(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "JoystickConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int JoystickConnected(SDL_Joystick* joystick) => + Underlying.Value!.JoystickConnected(joystick); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool JoystickConnected(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (MaybeBool)(int)JoystickConnected(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool JoystickEventsEnabled() => + Underlying.Value!.JoystickEventsEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int JoystickEventsEnabledRaw() => + Underlying.Value!.JoystickEventsEnabledRaw(); + + [NativeFunction("SDL3", EntryPoint = "LoadBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* LoadBMP([NativeTypeName("const char *")] sbyte* file) => + Underlying.Value!.LoadBMP(file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadBMP([NativeTypeName("const char *")] Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (Surface*)LoadBMP(__dsl_file); + } + } + + [NativeFunction("SDL3", EntryPoint = "LoadBMPIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* LoadBMPIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio + ) => Underlying.Value!.LoadBMPIO(src, closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadBMPIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (SDL_IOStream* __dsl_src = src) + { + return (Surface*)LoadBMPIO(__dsl_src, (int)closeio); + } + } + + [NativeFunction("SDL3", EntryPoint = "LoadFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* LoadFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("size_t *")] nuint* datasize + ) => Underlying.Value!.LoadFile(file, datasize); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("size_t *")] Ref datasize + ) + { + fixed (nuint* __dsl_datasize = datasize) + fixed (sbyte* __dsl_file = file) + { + return (void*)LoadFile(__dsl_file, __dsl_datasize); + } + } + + [NativeFunction("SDL3", EntryPoint = "LoadFileIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* LoadFileIO( + SDL_IOStream* src, + [NativeTypeName("size_t *")] nuint* datasize, + [NativeTypeName("SDL_bool")] int closeio + ) => Underlying.Value!.LoadFileIO(src, datasize, closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr LoadFileIO( + Ref src, + [NativeTypeName("size_t *")] Ref datasize, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (nuint* __dsl_datasize = datasize) + fixed (SDL_IOStream* __dsl_src = src) + { + return (void*)LoadFileIO(__dsl_src, __dsl_datasize, (int)closeio); + } + } + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "LoadFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged LoadFunction( + void* handle, + [NativeTypeName("const char *")] sbyte* name + ) => Underlying.Value!.LoadFunction(handle, name); + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static delegate* unmanaged LoadFunction( + Ref handle, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + fixed (void* __dsl_handle = handle) + { + return (delegate* unmanaged)LoadFunction(__dsl_handle, __dsl_name); + } + } + + [NativeFunction("SDL3", EntryPoint = "LoadObject")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* 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) + { + fixed (sbyte* __dsl_sofile = sofile) + { + return (void*)LoadObject(__dsl_sofile); + } + } + + [NativeFunction("SDL3", EntryPoint = "LoadWAV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int 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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LoadWAV( + [NativeTypeName("const char *")] Ref path, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ) + { + fixed (uint* __dsl_audio_len = audio_len) + fixed (byte** __dsl_audio_buf = audio_buf) + fixed (AudioSpec* __dsl_spec = spec) + fixed (sbyte* __dsl_path = path) + { + return (int)LoadWAV(__dsl_path, __dsl_spec, __dsl_audio_buf, __dsl_audio_len); + } + } + + [NativeFunction("SDL3", EntryPoint = "LoadWAVIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LoadWAVIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ) => Underlying.Value!.LoadWAVIO(src, closeio, spec, audio_buf, audio_len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LoadWAVIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ) + { + fixed (uint* __dsl_audio_len = audio_len) + fixed (byte** __dsl_audio_buf = audio_buf) + fixed (AudioSpec* __dsl_spec = spec) + fixed (SDL_IOStream* __dsl_src = src) + { + return (int)LoadWAVIO( + __dsl_src, + (int)closeio, + __dsl_spec, + __dsl_audio_buf, + __dsl_audio_len + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "LockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockAudioStream(SDL_AudioStream* stream) => + Underlying.Value!.LockAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)LockAudioStream(__dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "LockJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockJoysticks() => Underlying.Value!.LockJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "LockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockMutex(SDL_Mutex* mutex) => Underlying.Value!.LockMutex(mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + LockMutex(__dsl_mutex); + } + } + + [NativeFunction("SDL3", EntryPoint = "LockProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + Underlying.Value!.LockProperties(props); + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockRWLockForReading(SDL_RWLock* rwlock) => + Underlying.Value!.LockRWLockForReading(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockRWLockForReading(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + LockRWLockForReading(__dsl_rwlock); + } + } + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockRWLockForWriting(SDL_RWLock* rwlock) => + Underlying.Value!.LockRWLockForWriting(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockRWLockForWriting(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + LockRWLockForWriting(__dsl_rwlock); + } + } + + [NativeFunction("SDL3", EntryPoint = "LockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + Underlying.Value!.LockSpinlock(@lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) + { + fixed (int* __dsl_lock = @lock) + { + LockSpinlock(__dsl_lock); + } + } + + [NativeFunction("SDL3", EntryPoint = "LockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockSurface(Surface* surface) => Underlying.Value!.LockSurface(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockSurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)LockSurface(__dsl_surface); + } + } + + [NativeFunction("SDL3", EntryPoint = "LockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + void** pixels, + int* pitch + ) => Underlying.Value!.LockTexture(texture, rect, pixels, pitch); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D pixels, + Ref pitch + ) + { + fixed (int* __dsl_pitch = pitch) + fixed (void** __dsl_pixels = pixels) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)LockTexture(__dsl_texture, __dsl_rect, __dsl_pixels, __dsl_pitch); + } + } + + [NativeFunction("SDL3", EntryPoint = "LockTextureToSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockTextureToSurface( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + Surface** surface + ) => Underlying.Value!.LockTextureToSurface(texture, rect, surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int LockTextureToSurface( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D surface + ) + { + fixed (Surface** __dsl_surface = surface) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)LockTextureToSurface(__dsl_texture, __dsl_rect, __dsl_surface); + } + } + + [NativeFunction("SDL3", EntryPoint = "LogGetPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static LogPriority LogGetPriority(int category) => + Underlying.Value!.LogGetPriority(category); + + [NativeFunction("SDL3", EntryPoint = "LogMessageV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => Underlying.Value!.LogMessageV(category, priority, fmt, ap); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) + { + fixed (sbyte* __dsl_ap = ap) + fixed (sbyte* __dsl_fmt = fmt) + { + LogMessageV(category, priority, __dsl_fmt, __dsl_ap); + } + } + + [NativeFunction("SDL3", EntryPoint = "LogResetPriorities")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LogResetPriorities() => Underlying.Value!.LogResetPriorities(); + + [NativeFunction("SDL3", EntryPoint = "LogSetAllPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void LogSetAllPriority(LogPriority priority) => + Underlying.Value!.LogSetAllPriority(priority); + + [NativeFunction("SDL3", EntryPoint = "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 = "MapRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => Underlying.Value!.MapRGB(format, r, g, b); + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (PixelFormat* __dsl_format = format) + { + return (uint)MapRGB(__dsl_format, r, g, b); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "MapRgba")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => Underlying.Value!.MapRgba(format, 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_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (PixelFormat* __dsl_format = format) + { + return (uint)MapRgba(__dsl_format, r, g, b, a); + } + } + + [NativeFunction("SDL3", EntryPoint = "MaximizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int MaximizeWindow(SDL_Window* window) => + Underlying.Value!.MaximizeWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int MaximizeWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)MaximizeWindow(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierAcquireFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void MemoryBarrierAcquireFunction() => + Underlying.Value!.MemoryBarrierAcquireFunction(); + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierReleaseFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void MemoryBarrierReleaseFunction() => + Underlying.Value!.MemoryBarrierReleaseFunction(); + + [return: NativeTypeName("SDL_MetalView")] + [NativeFunction("SDL3", EntryPoint = "MetalCreateView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* MetalCreateView(SDL_Window* window) => + Underlying.Value!.MetalCreateView(window); + + [return: NativeTypeName("SDL_MetalView")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_CreateView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr MetalCreateView(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (void*)MetalCreateView(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "MetalDestroyView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view) => + Underlying.Value!.MetalDestroyView(view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_DestroyView")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view) + { + fixed (void* __dsl_view = view) + { + MetalDestroyView(__dsl_view); + } + } + + [NativeFunction("SDL3", EntryPoint = "MetalGetLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void* MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view) => + Underlying.Value!.MetalGetLayer(view); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_GetLayer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) + { + fixed (void* __dsl_view = view) + { + return (void*)MetalGetLayer(__dsl_view); + } + } + + [NativeFunction("SDL3", EntryPoint = "MinimizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int MinimizeWindow(SDL_Window* window) => + Underlying.Value!.MinimizeWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int MinimizeWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)MinimizeWindow(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "MixAudioFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int MixAudioFormat( + [NativeTypeName("Uint8 *")] byte* dst, + [NativeTypeName("const Uint8 *")] byte* src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ) => Underlying.Value!.MixAudioFormat(dst, src, format, len, volume); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int MixAudioFormat( + [NativeTypeName("Uint8 *")] Ref dst, + [NativeTypeName("const Uint8 *")] Ref src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ) + { + fixed (byte* __dsl_src = src) + fixed (byte* __dsl_dst = dst) + { + return (int)MixAudioFormat(__dsl_dst, __dsl_src, format, len, volume); + } + } + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidBecomeActive")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void OnApplicationDidBecomeActive() => + Underlying.Value!.OnApplicationDidBecomeActive(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidEnterBackground")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void OnApplicationDidEnterBackground() => + Underlying.Value!.OnApplicationDidEnterBackground(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidReceiveMemoryWarning")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void OnApplicationDidReceiveMemoryWarning() => + Underlying.Value!.OnApplicationDidReceiveMemoryWarning(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillEnterForeground")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void OnApplicationWillEnterForeground() => + Underlying.Value!.OnApplicationWillEnterForeground(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillResignActive")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void OnApplicationWillResignActive() => + Underlying.Value!.OnApplicationWillResignActive(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillTerminate")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void OnApplicationWillTerminate() => + Underlying.Value!.OnApplicationWillTerminate(); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "OpenAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec + ) => Underlying.Value!.OpenAudioDevice(devid, spec); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec + ) + { + fixed (AudioSpec* __dsl_spec = spec) + { + return (uint)OpenAudioDevice(devid, __dsl_spec); + } + } + + [NativeFunction("SDL3", EntryPoint = "OpenAudioDeviceStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_AudioStream* OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => Underlying.Value!.OpenAudioDeviceStream(devid, spec, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDeviceStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (AudioSpec* __dsl_spec = spec) + { + return (SDL_AudioStream*)OpenAudioDeviceStream( + devid, + __dsl_spec, + callback, + __dsl_userdata + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "OpenCameraDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Camera* OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec + ) => Underlying.Value!.OpenCameraDevice(instance_id, spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] Ref spec + ) + { + fixed (CameraSpec* __dsl_spec = spec) + { + return (SDL_Camera*)OpenCameraDevice(instance_id, __dsl_spec); + } + } + + [NativeFunction("SDL3", EntryPoint = "OpenFileStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Storage* OpenFileStorage([NativeTypeName("const char *")] sbyte* path) => + Underlying.Value!.OpenFileStorage(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenFileStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenFileStorage( + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + { + return (SDL_Storage*)OpenFileStorage(__dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenGamepad( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.OpenGamepad(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Gamepad* OpenGamepadRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.OpenGamepadRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenHaptic( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => Underlying.Value!.OpenHaptic(instance_id); + + [NativeFunction("SDL3", EntryPoint = "OpenHapticFromJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Haptic* OpenHapticFromJoystick(SDL_Joystick* joystick) => + Underlying.Value!.OpenHapticFromJoystick(joystick); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenHapticFromJoystick(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (SDL_Haptic*)OpenHapticFromJoystick(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenHapticFromMouse() => + Underlying.Value!.OpenHapticFromMouse(); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Haptic* OpenHapticFromMouseRaw() => + Underlying.Value!.OpenHapticFromMouseRaw(); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Haptic* OpenHapticRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => Underlying.Value!.OpenHapticRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "OpenIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_IOStream* OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] IOStreamInterface* iface, + void* userdata + ) => Underlying.Value!.OpenIO(iface, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] Ref iface, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (IOStreamInterface* __dsl_iface = iface) + { + return (SDL_IOStream*)OpenIO(__dsl_iface, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.OpenJoystick(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Joystick* OpenJoystickRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => Underlying.Value!.OpenJoystickRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenSensor( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.OpenSensor(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Sensor* OpenSensorRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => Underlying.Value!.OpenSensorRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "OpenStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Storage* OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] StorageInterface* iface, + void* userdata + ) => Underlying.Value!.OpenStorage(iface, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] Ref iface, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (StorageInterface* __dsl_iface = iface) + { + return (SDL_Storage*)OpenStorage(__dsl_iface, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "OpenTitleStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Storage* OpenTitleStorage( + [NativeTypeName("const char *")] sbyte* @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.OpenTitleStorage(@override, props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenTitleStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenTitleStorage( + [NativeTypeName("const char *")] Ref @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (sbyte* __dsl_override = @override) + { + return (SDL_Storage*)OpenTitleStorage(__dsl_override, props); + } + } + + [NativeFunction("SDL3", EntryPoint = "OpenURL")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int OpenURL([NativeTypeName("const char *")] sbyte* url) => + Underlying.Value!.OpenURL(url); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int OpenURL([NativeTypeName("const char *")] Ref url) + { + fixed (sbyte* __dsl_url = url) + { + return (int)OpenURL(__dsl_url); + } + } + + [NativeFunction("SDL3", EntryPoint = "OpenUserStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static SDL_Storage* OpenUserStorage( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => Underlying.Value!.OpenUserStorage(org, app, props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr OpenUserStorage( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (sbyte* __dsl_app = app) + fixed (sbyte* __dsl_org = org) + { + return (SDL_Storage*)OpenUserStorage(__dsl_org, __dsl_app, props); + } + } + + [NativeFunction("SDL3", EntryPoint = "PauseAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + Underlying.Value!.PauseAudioDevice(dev); + + [NativeFunction("SDL3", EntryPoint = "PauseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PauseHaptic(SDL_Haptic* haptic) => Underlying.Value!.PauseHaptic(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PauseHaptic(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)PauseHaptic(__dsl_haptic); + } + } + + [NativeFunction("SDL3", EntryPoint = "PeepEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PeepEvents( + Event* events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => Underlying.Value!.PeepEvents(events, numevents, action, minType, maxType); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PeepEvents( + Ref events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) + { + fixed (Event* __dsl_events = events) + { + return (int)PeepEvents(__dsl_events, numevents, action, minType, maxType); + } + } + + [return: NativeTypeName("SDL_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")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id) => + Underlying.Value!.PenConnectedRaw(instance_id); + + [NativeFunction("SDL3", EntryPoint = "PlayHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PlayHapticRumble( + SDL_Haptic* haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => Underlying.Value!.PlayHapticRumble(haptic, strength, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PlayHapticRumble( + Ref haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)PlayHapticRumble(__dsl_haptic, strength, length); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "PollEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PollEvent(Event* @event) => Underlying.Value!.PollEvent(@event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PollEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool PollEvent(Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (MaybeBool)(int)PollEvent(__dsl_event); + } + } + + [NativeFunction("SDL3", EntryPoint = "PostSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PostSemaphore(SDL_Semaphore* sem) => Underlying.Value!.PostSemaphore(sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PostSemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)PostSemaphore(__dsl_sem); + } + } + + [NativeFunction("SDL3", EntryPoint = "PremultiplyAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ) => + Underlying.Value!.PremultiplyAlpha( + width, + height, + src_format, + src, + src_pitch, + dst_format, + dst, + dst_pitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ) + { + 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 + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "PumpEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void PumpEvents() => Underlying.Value!.PumpEvents(); + + [NativeFunction("SDL3", EntryPoint = "PushEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PushEvent(Event* @event) => Underlying.Value!.PushEvent(@event); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PushEvent(Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (int)PushEvent(__dsl_event); + } + } + + [NativeFunction("SDL3", EntryPoint = "PutAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PutAudioStreamData( + SDL_AudioStream* stream, + [NativeTypeName("const void *")] void* buf, + int len + ) => Underlying.Value!.PutAudioStreamData(stream, buf, len); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int PutAudioStreamData( + Ref stream, + [NativeTypeName("const void *")] Ref buf, + int len + ) + { + fixed (void* __dsl_buf = buf) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)PutAudioStreamData(__dsl_stream, __dsl_buf, len); + } + } + + [NativeFunction("SDL3", EntryPoint = "QueryTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int QueryTexture( + SDL_Texture* 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( + Ref 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) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)QueryTexture( + __dsl_texture, + __dsl_format, + __dsl_access, + __dsl_w, + __dsl_h + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "Quit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void Quit() => Underlying.Value!.Quit(); + + [NativeFunction("SDL3", EntryPoint = "QuitSubSystem")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void QuitSubSystem([NativeTypeName("Uint32")] uint flags) => + Underlying.Value!.QuitSubSystem(flags); + + [NativeFunction("SDL3", EntryPoint = "RaiseWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RaiseWindow(SDL_Window* window) => Underlying.Value!.RaiseWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RaiseWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)RaiseWindow(__dsl_window); + } + } + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "ReadIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint ReadIO( + SDL_IOStream* context, + void* ptr, + [NativeTypeName("size_t")] nuint size + ) => Underlying.Value!.ReadIO(context, ptr, size); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint ReadIO( + Ref context, + Ref ptr, + [NativeTypeName("size_t")] nuint size + ) + { + fixed (void* __dsl_ptr = ptr) + fixed (SDL_IOStream* __dsl_context = context) + { + return (nuint)ReadIO(__dsl_context, __dsl_ptr, size); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadS16BE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value) => + Underlying.Value!.ReadS16BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS16BE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) + { + fixed (short* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS16BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadS16LE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value) => + Underlying.Value!.ReadS16LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS16LE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) + { + fixed (short* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS16LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadS32BE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value) => + Underlying.Value!.ReadS32BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS32BE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) + { + fixed (int* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS32BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadS32LE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value) => + Underlying.Value!.ReadS32LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS32LE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) + { + fixed (int* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS32LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadS64BE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value) => + Underlying.Value!.ReadS64BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS64BE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) + { + fixed (long* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS64BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadS64LE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value) => + Underlying.Value!.ReadS64LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadS64LE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) + { + fixed (long* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadS64LE(__dsl_src, __dsl_value); + } + } + + [NativeFunction("SDL3", EntryPoint = "ReadStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + void* destination, + [NativeTypeName("Uint64")] ulong length + ) => Underlying.Value!.ReadStorageFile(storage, path, destination, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref destination, + [NativeTypeName("Uint64")] ulong length + ) + { + fixed (void* __dsl_destination = destination) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)ReadStorageFile(__dsl_storage, __dsl_path, __dsl_destination, length); + } + } + + [NativeFunction("SDL3", EntryPoint = "ReadSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => Underlying.Value!.ReadSurfacePixel(surface, x, y, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) + { + fixed (byte* __dsl_a = a) + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + 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: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadU16BE( + SDL_IOStream* src, + [NativeTypeName("Uint16 *")] ushort* value + ) => Underlying.Value!.ReadU16BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU16BE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) + { + fixed (ushort* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU16BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadU16LE( + SDL_IOStream* src, + [NativeTypeName("Uint16 *")] ushort* value + ) => Underlying.Value!.ReadU16LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU16LE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) + { + fixed (ushort* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU16LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadU32BE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value) => + Underlying.Value!.ReadU32BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU32BE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) + { + fixed (uint* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU32BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadU32LE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value) => + Underlying.Value!.ReadU32LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU32LE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) + { + fixed (uint* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU32LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadU64BE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value) => + Underlying.Value!.ReadU64BE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU64BE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) + { + fixed (ulong* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU64BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadU64LE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value) => + Underlying.Value!.ReadU64LE(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU64LE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) + { + fixed (ulong* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU64LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReadU8(SDL_IOStream* src, [NativeTypeName("Uint8 *")] byte* value) => + Underlying.Value!.ReadU8(src, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ReadU8( + Ref src, + [NativeTypeName("Uint8 *")] Ref value + ) + { + fixed (byte* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)ReadU8(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "RegisterEvents")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint RegisterEvents(int numevents) => + Underlying.Value!.RegisterEvents(numevents); + + [NativeFunction("SDL3", EntryPoint = "ReleaseCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReleaseCameraFrame(SDL_Camera* camera, Surface* frame) => + Underlying.Value!.ReleaseCameraFrame(camera, frame); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReleaseCameraFrame(Ref camera, Ref frame) + { + fixed (Surface* __dsl_frame = frame) + fixed (SDL_Camera* __dsl_camera = camera) + { + return (int)ReleaseCameraFrame(__dsl_camera, __dsl_frame); + } + } + + [NativeFunction("SDL3", EntryPoint = "ReloadGamepadMappings")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ReloadGamepadMappings() => Underlying.Value!.ReloadGamepadMappings(); + + [NativeFunction("SDL3", EntryPoint = "RemovePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RemovePath([NativeTypeName("const char *")] sbyte* path) => + Underlying.Value!.RemovePath(path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RemovePath([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (int)RemovePath(__dsl_path); + } + } + + [NativeFunction("SDL3", EntryPoint = "RemoveStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RemoveStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ) => Underlying.Value!.RemoveStoragePath(storage, path); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RemoveStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)RemoveStoragePath(__dsl_storage, __dsl_path); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RemoveTimer([NativeTypeName("SDL_TimerID")] uint id) => + Underlying.Value!.RemoveTimer(id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => + Underlying.Value!.RemoveTimerRaw(id); + + [NativeFunction("SDL3", EntryPoint = "RenamePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenamePath( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => Underlying.Value!.RenamePath(oldpath, newpath); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenamePath( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + { + return (int)RenamePath(__dsl_oldpath, __dsl_newpath); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenameStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenameStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => Underlying.Value!.RenameStoragePath(storage, oldpath, newpath); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenameStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)RenameStoragePath(__dsl_storage, __dsl_oldpath, __dsl_newpath); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderClear")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderClear(SDL_Renderer* renderer) => + Underlying.Value!.RenderClear(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderClear(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderClear(__dsl_renderer); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderClipEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderClipEnabled(SDL_Renderer* renderer) => + Underlying.Value!.RenderClipEnabled(renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderClipEnabled(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (MaybeBool)(int)RenderClipEnabled(__dsl_renderer); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesFromWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderCoordinatesFromWindow( + SDL_Renderer* renderer, + float window_x, + float window_y, + float* x, + float* y + ) => Underlying.Value!.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderCoordinatesFromWindow( + Ref renderer, + float window_x, + float window_y, + Ref x, + Ref y + ) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderCoordinatesFromWindow( + __dsl_renderer, + window_x, + window_y, + __dsl_x, + __dsl_y + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesToWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderCoordinatesToWindow( + SDL_Renderer* renderer, + float x, + float y, + float* window_x, + float* window_y + ) => Underlying.Value!.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderCoordinatesToWindow( + Ref renderer, + float x, + float y, + Ref window_x, + Ref window_y + ) + { + fixed (float* __dsl_window_y = window_y) + fixed (float* __dsl_window_x = window_x) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderCoordinatesToWindow( + __dsl_renderer, + x, + y, + __dsl_window_x, + __dsl_window_y + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderFillRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderFillRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ) => Underlying.Value!.RenderFillRect(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderFillRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) + { + fixed (FRect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderFillRect(__dsl_renderer, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderFillRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderFillRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ) => Underlying.Value!.RenderFillRects(renderer, rects, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderFillRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) + { + fixed (FRect* __dsl_rects = rects) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderFillRects(__dsl_renderer, __dsl_rects, count); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderGeometry")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderGeometry( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, + int num_vertices, + [NativeTypeName("const int *")] int* indices, + int num_indices + ) => + Underlying.Value!.RenderGeometry( + renderer, + texture, + vertices, + num_vertices, + indices, + num_indices + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderGeometry( + Ref renderer, + Ref texture, + [NativeTypeName("const SDL_Vertex *")] Ref vertices, + int num_vertices, + [NativeTypeName("const int *")] Ref indices, + int num_indices + ) + { + fixed (int* __dsl_indices = indices) + fixed (Vertex* __dsl_vertices = vertices) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderGeometry( + __dsl_renderer, + __dsl_texture, + __dsl_vertices, + num_vertices, + __dsl_indices, + num_indices + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderGeometryRaw")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderGeometryRaw( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const float *")] float* xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] Color* 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!.RenderGeometryRaw( + renderer, + texture, + xy, + xy_stride, + color, + color_stride, + uv, + uv_stride, + num_vertices, + indices, + num_indices, + size_indices + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderGeometryRaw( + Ref renderer, + Ref texture, + [NativeTypeName("const float *")] Ref xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] 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 (Color* __dsl_color = color) + fixed (float* __dsl_xy = xy) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderGeometryRaw( + __dsl_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 = "RenderGeometryRawFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderGeometryRawFloat( + SDL_Renderer* renderer, + SDL_Texture* 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 + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderGeometryRawFloat( + Ref renderer, + Ref 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) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderGeometryRawFloat( + __dsl_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 = "RenderLine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderLine( + SDL_Renderer* renderer, + float x1, + float y1, + float x2, + float y2 + ) => Underlying.Value!.RenderLine(renderer, x1, y1, x2, y2); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderLine( + Ref renderer, + float x1, + float y1, + float x2, + float y2 + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderLine(__dsl_renderer, x1, y1, x2, y2); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderLines")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderLines( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ) => Underlying.Value!.RenderLines(renderer, points, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderLines( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) + { + fixed (FPoint* __dsl_points = points) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderLines(__dsl_renderer, __dsl_points, count); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderPoint(SDL_Renderer* renderer, float x, float y) => + Underlying.Value!.RenderPoint(renderer, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderPoint(Ref renderer, float x, float y) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderPoint(__dsl_renderer, x, y); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderPoints( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ) => Underlying.Value!.RenderPoints(renderer, points, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderPoints( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) + { + fixed (FPoint* __dsl_points = points) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderPoints(__dsl_renderer, __dsl_points, count); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderPresent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderPresent(SDL_Renderer* renderer) => + Underlying.Value!.RenderPresent(renderer); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderPresent(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderPresent(__dsl_renderer); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderReadPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Surface* RenderReadPixels( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => Underlying.Value!.RenderReadPixels(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static Ptr RenderReadPixels( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (Surface*)RenderReadPixels(__dsl_renderer, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ) => Underlying.Value!.RenderRect(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) + { + fixed (FRect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderRect(__dsl_renderer, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ) => Underlying.Value!.RenderRects(renderer, rects, count); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) + { + fixed (FRect* __dsl_rects = rects) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderRects(__dsl_renderer, __dsl_rects, count); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderTexture( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => Underlying.Value!.RenderTexture(renderer, texture, srcrect, dstrect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderTexture( + Ref renderer, + 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 (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderTexture( + __dsl_renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "RenderTextureRotated")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderTextureRotated( + SDL_Renderer* renderer, + SDL_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 + ) => + Underlying.Value!.RenderTextureRotated( + renderer, + texture, + srcrect, + dstrect, + angle, + center, + flip + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderTextureRotated( + Ref renderer, + 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 + ) + { + fixed (FPoint* __dsl_center = center) + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)RenderTextureRotated( + __dsl_renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect, + angle, + __dsl_center, + flip + ); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderViewportSet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RenderViewportSet(SDL_Renderer* renderer) => + Underlying.Value!.RenderViewportSet(renderer); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool RenderViewportSet(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (MaybeBool)(int)RenderViewportSet(__dsl_renderer); + } + } + + [NativeFunction("SDL3", EntryPoint = "ReportAssertion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static AssertState ReportAssertion( + AssertData* data, + [NativeTypeName("const char *")] sbyte* func, + [NativeTypeName("const char *")] sbyte* file, + int line + ) => Underlying.Value!.ReportAssertion(data, func, file, line); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static AssertState ReportAssertion( + Ref data, + [NativeTypeName("const char *")] Ref func, + [NativeTypeName("const char *")] Ref file, + int line + ) + { + fixed (sbyte* __dsl_file = file) + fixed (sbyte* __dsl_func = func) + fixed (AssertData* __dsl_data = data) + { + return (AssertState)ReportAssertion(__dsl_data, __dsl_func, __dsl_file, line); + } + } + + [NativeFunction("SDL3", EntryPoint = "ResetAssertionReport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ResetAssertionReport() => Underlying.Value!.ResetAssertionReport(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ResetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ResetHint([NativeTypeName("const char *")] sbyte* name) => + Underlying.Value!.ResetHint(name); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)ResetHint(__dsl_name); + } + } + + [NativeFunction("SDL3", EntryPoint = "ResetHints")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ResetHints() => Underlying.Value!.ResetHints(); + + [NativeFunction("SDL3", EntryPoint = "ResetKeyboard")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ResetKeyboard() => Underlying.Value!.ResetKeyboard(); + + [NativeFunction("SDL3", EntryPoint = "RestoreWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RestoreWindow(SDL_Window* window) => + Underlying.Value!.RestoreWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RestoreWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)RestoreWindow(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "ResumeAudioDevice")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + Underlying.Value!.ResumeAudioDevice(dev); + + [NativeFunction("SDL3", EntryPoint = "ResumeHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ResumeHaptic(SDL_Haptic* haptic) => + Underlying.Value!.ResumeHaptic(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ResumeHaptic(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)ResumeHaptic(__dsl_haptic); + } + } + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleGamepad( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + Underlying.Value!.RumbleGamepad( + gamepad, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleGamepad( + Ref gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)RumbleGamepad( + __dsl_gamepad, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepadTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleGamepadTriggers( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + Underlying.Value!.RumbleGamepadTriggers( + gamepad, + left_rumble, + right_rumble, + duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleGamepadTriggers( + Ref gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)RumbleGamepadTriggers( + __dsl_gamepad, + left_rumble, + right_rumble, + duration_ms + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleJoystick( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + Underlying.Value!.RumbleJoystick( + joystick, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleJoystick( + Ref joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)RumbleJoystick( + __dsl_joystick, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystickTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleJoystickTriggers( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + Underlying.Value!.RumbleJoystickTriggers( + joystick, + left_rumble, + right_rumble, + duration_ms + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RumbleJoystickTriggers( + Ref joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)RumbleJoystickTriggers( + __dsl_joystick, + left_rumble, + right_rumble, + duration_ms + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "RunHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RunHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => Underlying.Value!.RunHapticEffect(haptic, effect, iterations); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int RunHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)RunHapticEffect(__dsl_haptic, effect, iterations); + } + } + + [NativeFunction("SDL3", EntryPoint = "SaveBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => + Underlying.Value!.SaveBMP(surface, file); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SaveBMP( + Ref surface, + [NativeTypeName("const char *")] Ref file + ) + { + fixed (sbyte* __dsl_file = file) + fixed (Surface* __dsl_surface = surface) + { + return (int)SaveBMP(__dsl_surface, __dsl_file); + } + } + + [NativeFunction("SDL3", EntryPoint = "SaveBMPIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SaveBMPIO( + Surface* surface, + SDL_IOStream* dst, + [NativeTypeName("SDL_bool")] int closeio + ) => Underlying.Value!.SaveBMPIO(surface, dst, closeio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SaveBMPIO( + Ref surface, + Ref dst, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + fixed (Surface* __dsl_surface = surface) + { + return (int)SaveBMPIO(__dsl_surface, __dsl_dst, (int)closeio); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ScreenKeyboardShown")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ScreenKeyboardShown(SDL_Window* window) => + Underlying.Value!.ScreenKeyboardShown(window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ScreenKeyboardShown(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)ScreenKeyboardShown(__dsl_window); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool ScreenSaverEnabled() => Underlying.Value!.ScreenSaverEnabled(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ScreenSaverEnabledRaw() => Underlying.Value!.ScreenSaverEnabledRaw(); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "SeekIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long SeekIO( + SDL_IOStream* context, + [NativeTypeName("Sint64")] long offset, + int whence + ) => Underlying.Value!.SeekIO(context, offset, whence); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long SeekIO( + Ref context, + [NativeTypeName("Sint64")] long offset, + int whence + ) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (long)SeekIO(__dsl_context, offset, whence); + } + } + + [NativeFunction("SDL3", EntryPoint = "SendGamepadEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SendGamepadEffect( + SDL_Gamepad* gamepad, + [NativeTypeName("const void *")] void* data, + int size + ) => Underlying.Value!.SendGamepadEffect(gamepad, data, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SendGamepadEffect( + Ref gamepad, + [NativeTypeName("const void *")] Ref data, + int size + ) + { + fixed (void* __dsl_data = data) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)SendGamepadEffect(__dsl_gamepad, __dsl_data, size); + } + } + + [NativeFunction("SDL3", EntryPoint = "SendJoystickEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SendJoystickEffect( + SDL_Joystick* joystick, + [NativeTypeName("const void *")] void* data, + int size + ) => Underlying.Value!.SendJoystickEffect(joystick, data, size); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SendJoystickEffect( + Ref joystick, + [NativeTypeName("const void *")] Ref data, + int size + ) + { + fixed (void* __dsl_data = data) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SendJoystickEffect(__dsl_joystick, __dsl_data, size); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + void* userdata + ) => Underlying.Value!.SetAssertionHandler(handler, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + SetAssertionHandler(handler, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetAudioPostmixCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + void* userdata + ) => Underlying.Value!.SetAudioPostmixCallback(devid, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (int)SetAudioPostmixCallback(devid, callback, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamFormat( + SDL_AudioStream* stream, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ) => Underlying.Value!.SetAudioStreamFormat(stream, src_spec, dst_spec); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamFormat( + Ref stream, + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ) + { + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + fixed (AudioSpec* __dsl_src_spec = src_spec) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)SetAudioStreamFormat(__dsl_stream, __dsl_src_spec, __dsl_dst_spec); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamFrequencyRatio(SDL_AudioStream* stream, float ratio) => + Underlying.Value!.SetAudioStreamFrequencyRatio(stream, ratio); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamFrequencyRatio(Ref stream, float ratio) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)SetAudioStreamFrequencyRatio(__dsl_stream, ratio); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamGetCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamGetCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => Underlying.Value!.SetAudioStreamGetCallback(stream, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamGetCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)SetAudioStreamGetCallback(__dsl_stream, callback, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamPutCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamPutCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => Underlying.Value!.SetAudioStreamPutCallback(stream, callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetAudioStreamPutCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)SetAudioStreamPutCallback(__dsl_stream, callback, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int value + ) => Underlying.Value!.SetBooleanProperty(props, name, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)SetBooleanProperty(props, __dsl_name, (int)value); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] + delegate* unmanaged cleanup, + void* userdata, + [NativeTypeName("const char **")] sbyte** mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ) => + Underlying.Value!.SetClipboardData( + callback, + cleanup, + userdata, + mime_types, + num_mime_types + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] + delegate* unmanaged cleanup, + Ref userdata, + [NativeTypeName("const char **")] Ref2D mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ) + { + 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 + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetClipboardText([NativeTypeName("const char *")] sbyte* text) => + Underlying.Value!.SetClipboardText(text); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetClipboardText([NativeTypeName("const char *")] Ref text) + { + fixed (sbyte* __dsl_text = text) + { + return (int)SetClipboardText(__dsl_text); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetCursor(SDL_Cursor* cursor) => Underlying.Value!.SetCursor(cursor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetCursor(Ref cursor) + { + fixed (SDL_Cursor* __dsl_cursor = cursor) + { + return (int)SetCursor(__dsl_cursor); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetEventEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] int enabled + ) => Underlying.Value!.SetEventEnabled(type, 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 + ) => Underlying.Value!.SetEventEnabled(type, enabled); + + [NativeFunction("SDL3", EntryPoint = "SetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => Underlying.Value!.SetEventFilter(filter, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + SetEventFilter(filter, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float value + ) => Underlying.Value!.SetFloatProperty(props, name, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)SetFloatProperty(props, __dsl_name, value); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetGamepadEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + Underlying.Value!.SetGamepadEventsEnabled(enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetGamepadEventsEnabled( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => Underlying.Value!.SetGamepadEventsEnabled(enabled); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadLED( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => Underlying.Value!.SetGamepadLED(gamepad, red, green, blue); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadLED( + Ref gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)SetGamepadLED(__dsl_gamepad, red, green, blue); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] sbyte* mapping + ) => Underlying.Value!.SetGamepadMapping(instance_id, mapping); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] Ref mapping + ) + { + fixed (sbyte* __dsl_mapping = mapping) + { + return (int)SetGamepadMapping(instance_id, __dsl_mapping); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadPlayerIndex(SDL_Gamepad* gamepad, int player_index) => + Underlying.Value!.SetGamepadPlayerIndex(gamepad, player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadPlayerIndex(Ref gamepad, int player_index) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)SetGamepadPlayerIndex(__dsl_gamepad, player_index); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetGamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadSensorEnabled( + SDL_Gamepad* gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] int enabled + ) => Underlying.Value!.SetGamepadSensorEnabled(gamepad, type, enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetGamepadSensorEnabled( + Ref gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)SetGamepadSensorEnabled(__dsl_gamepad, type, (int)enabled); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetHapticAutocenter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetHapticAutocenter(SDL_Haptic* haptic, int autocenter) => + Underlying.Value!.SetHapticAutocenter(haptic, autocenter); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetHapticAutocenter(Ref haptic, int autocenter) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)SetHapticAutocenter(__dsl_haptic, autocenter); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetHapticGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetHapticGain(SDL_Haptic* haptic, int gain) => + Underlying.Value!.SetHapticGain(haptic, gain); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetHapticGain(Ref haptic, int gain) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)SetHapticGain(__dsl_haptic, gain); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetHint( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => Underlying.Value!.SetHint(name, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetHint( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) + { + fixed (sbyte* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)SetHint(__dsl_name, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHintWithPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetHintWithPriority( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value, + HintPriority priority + ) => Underlying.Value!.SetHintWithPriority(name, value, priority); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetHintWithPriority( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value, + HintPriority priority + ) + { + fixed (sbyte* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)SetHintWithPriority(__dsl_name, __dsl_value, priority); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetJoystickEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + Underlying.Value!.SetJoystickEventsEnabled(enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetJoystickEventsEnabled( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => Underlying.Value!.SetJoystickEventsEnabled(enabled); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickLED( + SDL_Joystick* joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => Underlying.Value!.SetJoystickLED(joystick, red, green, blue); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickLED( + Ref joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickLED(__dsl_joystick, red, green, blue); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickPlayerIndex(SDL_Joystick* joystick, int player_index) => + Underlying.Value!.SetJoystickPlayerIndex(joystick, player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickPlayerIndex(Ref joystick, int player_index) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickPlayerIndex(__dsl_joystick, player_index); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickVirtualAxis( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => Underlying.Value!.SetJoystickVirtualAxis(joystick, axis, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickVirtualAxis( + Ref joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickVirtualAxis(__dsl_joystick, axis, value); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickVirtualButton( + SDL_Joystick* joystick, + int button, + [NativeTypeName("Uint8")] byte value + ) => Underlying.Value!.SetJoystickVirtualButton(joystick, button, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickVirtualButton( + Ref joystick, + int button, + [NativeTypeName("Uint8")] byte value + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickVirtualButton(__dsl_joystick, button, value); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickVirtualHat( + SDL_Joystick* joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => Underlying.Value!.SetJoystickVirtualHat(joystick, hat, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetJoystickVirtualHat( + Ref joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)SetJoystickVirtualHat(__dsl_joystick, hat, value); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + void* userdata + ) => Underlying.Value!.SetLogOutputFunction(callback, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + SetLogOutputFunction(callback, __dsl_userdata); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetModState")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void SetModState(Keymod modstate) => Underlying.Value!.SetModState(modstate); + + [NativeFunction("SDL3", EntryPoint = "SetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long value + ) => Underlying.Value!.SetNumberProperty(props, name, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)SetNumberProperty(props, __dsl_name, value); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetPaletteColors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetPaletteColors( + Palette* palette, + [NativeTypeName("const SDL_Color *")] Color* colors, + int firstcolor, + int ncolors + ) => Underlying.Value!.SetPaletteColors(palette, colors, firstcolor, ncolors); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetPaletteColors( + Ref palette, + [NativeTypeName("const SDL_Color *")] Ref colors, + int firstcolor, + int ncolors + ) + { + fixed (Color* __dsl_colors = colors) + fixed (Palette* __dsl_palette = palette) + { + return (int)SetPaletteColors(__dsl_palette, __dsl_colors, firstcolor, ncolors); + } + } + + [NativeFunction("SDL3", EntryPoint = "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 = "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); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value + ) => Underlying.Value!.SetProperty(props, name, value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value + ) + { + fixed (void* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (int)SetProperty(props, __dsl_name, __dsl_value); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetPropertyWithCleanup")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + void* userdata + ) => Underlying.Value!.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (void* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (int)SetPropertyWithCleanup( + props, + __dsl_name, + __dsl_value, + cleanup, + __dsl_userdata + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled) => + Underlying.Value!.SetRelativeMouseMode(enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRelativeMouseMode( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => Underlying.Value!.SetRelativeMouseMode(enabled); + + [NativeFunction("SDL3", EntryPoint = "SetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderClipRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => Underlying.Value!.SetRenderClipRect(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderClipRect( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderClipRect(__dsl_renderer, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderColorScale(SDL_Renderer* renderer, float scale) => + Underlying.Value!.SetRenderColorScale(renderer, scale); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderColorScale(Ref renderer, float scale) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderColorScale(__dsl_renderer, scale); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode blendMode) => + Underlying.Value!.SetRenderDrawBlendMode(renderer, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderDrawBlendMode(Ref renderer, BlendMode blendMode) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderDrawBlendMode(__dsl_renderer, blendMode); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => Underlying.Value!.SetRenderDrawColor(renderer, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderDrawColor(__dsl_renderer, r, g, b, a); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderDrawColorFloat( + SDL_Renderer* renderer, + float r, + float g, + float b, + float a + ) => Underlying.Value!.SetRenderDrawColorFloat(renderer, r, g, b, a); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderDrawColorFloat( + Ref renderer, + float r, + float g, + float b, + float a + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderDrawColorFloat(__dsl_renderer, r, g, b, a); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderLogicalPresentation( + SDL_Renderer* renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ) => Underlying.Value!.SetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderLogicalPresentation( + Ref renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderLogicalPresentation(__dsl_renderer, w, h, mode, scale_mode); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderScale(SDL_Renderer* renderer, float scaleX, float scaleY) => + Underlying.Value!.SetRenderScale(renderer, scaleX, scaleY); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderScale(Ref renderer, float scaleX, float scaleY) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderScale(__dsl_renderer, scaleX, scaleY); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderTarget(SDL_Renderer* renderer, SDL_Texture* texture) => + Underlying.Value!.SetRenderTarget(renderer, texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderTarget(Ref renderer, Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderTarget(__dsl_renderer, __dsl_texture); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderViewport( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => Underlying.Value!.SetRenderViewport(renderer, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderViewport( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderViewport(__dsl_renderer, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderVSync(SDL_Renderer* renderer, int vsync) => + Underlying.Value!.SetRenderVSync(renderer, vsync); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetRenderVSync(Ref renderer, int vsync) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)SetRenderVSync(__dsl_renderer, vsync); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetStringProperty")] + [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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int 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); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceAlphaMod( + Surface* surface, + [NativeTypeName("Uint8")] byte alpha + ) => Underlying.Value!.SetSurfaceAlphaMod(surface, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8")] byte alpha + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceAlphaMod(__dsl_surface, alpha); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => + Underlying.Value!.SetSurfaceBlendMode(surface, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceBlendMode(Ref surface, BlendMode blendMode) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceBlendMode(__dsl_surface, blendMode); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceClipRect( + Surface* surface, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => Underlying.Value!.SetSurfaceClipRect(surface, rect); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SetSurfaceClipRect( + Ref surface, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(int)SetSurfaceClipRect(__dsl_surface, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceColorKey( + Surface* surface, + int flag, + [NativeTypeName("Uint32")] uint key + ) => Underlying.Value!.SetSurfaceColorKey(surface, flag, key); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceColorKey( + Ref surface, + int flag, + [NativeTypeName("Uint32")] uint key + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceColorKey(__dsl_surface, flag, key); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => Underlying.Value!.SetSurfaceColorMod(surface, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceColorMod(__dsl_surface, r, g, b); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => + Underlying.Value!.SetSurfaceColorspace(surface, colorspace); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceColorspace(Ref surface, Colorspace colorspace) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceColorspace(__dsl_surface, colorspace); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfacePalette(Surface* surface, Palette* palette) => + Underlying.Value!.SetSurfacePalette(surface, palette); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfacePalette(Ref surface, Ref palette) + { + fixed (Palette* __dsl_palette = palette) + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfacePalette(__dsl_surface, __dsl_palette); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceRLE(Surface* surface, int flag) => + Underlying.Value!.SetSurfaceRLE(surface, flag); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetSurfaceRLE(Ref surface, int flag) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)SetSurfaceRLE(__dsl_surface, flag); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetTextInputRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => + Underlying.Value!.SetTextInputRect(rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (int)SetTextInputRect(__dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureAlphaMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte alpha + ) => Underlying.Value!.SetTextureAlphaMod(texture, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8")] byte alpha + ) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureAlphaMod(__dsl_texture, alpha); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureAlphaModFloat(SDL_Texture* texture, float alpha) => + Underlying.Value!.SetTextureAlphaModFloat(texture, alpha); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureAlphaModFloat(Ref texture, float alpha) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureAlphaModFloat(__dsl_texture, alpha); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureBlendMode(SDL_Texture* texture, BlendMode blendMode) => + Underlying.Value!.SetTextureBlendMode(texture, blendMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureBlendMode(Ref texture, BlendMode blendMode) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureBlendMode(__dsl_texture, blendMode); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => Underlying.Value!.SetTextureColorMod(texture, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureColorMod(__dsl_texture, r, g, b); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureColorModFloat( + SDL_Texture* texture, + float r, + float g, + float b + ) => Underlying.Value!.SetTextureColorModFloat(texture, r, g, b); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureColorModFloat( + Ref texture, + float r, + float g, + float b + ) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureColorModFloat(__dsl_texture, r, g, b); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureScaleMode(SDL_Texture* texture, ScaleMode scaleMode) => + Underlying.Value!.SetTextureScaleMode(texture, scaleMode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTextureScaleMode(Ref texture, ScaleMode scaleMode) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)SetTextureScaleMode(__dsl_texture, scaleMode); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetThreadPriority")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetThreadPriority(ThreadPriority priority) => + Underlying.Value!.SetThreadPriority(priority); + + [NativeFunction("SDL3", EntryPoint = "SetTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] void* value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ) => Underlying.Value!.SetTLS(id, value, destructor); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] Ref value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ) + { + fixed (void* __dsl_value = value) + { + return (int)SetTLS(id, __dsl_value, destructor); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowAlwaysOnTop")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowAlwaysOnTop( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int on_top + ) => Underlying.Value!.SetWindowAlwaysOnTop(window, on_top); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowAlwaysOnTop( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool on_top + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowAlwaysOnTop(__dsl_window, (int)on_top); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowBordered")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowBordered( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int bordered + ) => Underlying.Value!.SetWindowBordered(window, bordered); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowBordered( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool bordered + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowBordered(__dsl_window, (int)bordered); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowFocusable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowFocusable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int focusable + ) => Underlying.Value!.SetWindowFocusable(window, focusable); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowFocusable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool focusable + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowFocusable(__dsl_window, (int)focusable); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreen")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowFullscreen( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int fullscreen + ) => Underlying.Value!.SetWindowFullscreen(window, fullscreen); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowFullscreen( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool fullscreen + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowFullscreen(__dsl_window, (int)fullscreen); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowFullscreenMode( + SDL_Window* window, + [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode + ) => Underlying.Value!.SetWindowFullscreenMode(window, mode); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowFullscreenMode( + Ref window, + [NativeTypeName("const SDL_DisplayMode *")] Ref mode + ) + { + fixed (DisplayMode* __dsl_mode = mode) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowFullscreenMode(__dsl_window, __dsl_mode); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowHitTest")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowHitTest( + SDL_Window* window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + void* callback_data + ) => Underlying.Value!.SetWindowHitTest(window, callback, callback_data); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowHitTest( + Ref window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + Ref callback_data + ) + { + fixed (void* __dsl_callback_data = callback_data) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowHitTest(__dsl_window, callback, __dsl_callback_data); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowIcon")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowIcon(SDL_Window* window, Surface* icon) => + Underlying.Value!.SetWindowIcon(window, icon); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowIcon(Ref window, Ref icon) + { + fixed (Surface* __dsl_icon = icon) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowIcon(__dsl_window, __dsl_icon); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowInputFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowInputFocus(SDL_Window* window) => + Underlying.Value!.SetWindowInputFocus(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowInputFocus(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowInputFocus(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowKeyboardGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ) => Underlying.Value!.SetWindowKeyboardGrab(window, grabbed); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowKeyboardGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowKeyboardGrab(__dsl_window, (int)grabbed); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMaximumSize(SDL_Window* window, int max_w, int max_h) => + Underlying.Value!.SetWindowMaximumSize(window, max_w, max_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMaximumSize(Ref window, int max_w, int max_h) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowMaximumSize(__dsl_window, max_w, max_h); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMinimumSize(SDL_Window* window, int min_w, int min_h) => + Underlying.Value!.SetWindowMinimumSize(window, min_w, min_h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMinimumSize(Ref window, int min_w, int min_h) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowMinimumSize(__dsl_window, min_w, min_h); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowModalFor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowModalFor(SDL_Window* modal_window, SDL_Window* parent_window) => + Underlying.Value!.SetWindowModalFor(modal_window, parent_window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowModalFor( + Ref modal_window, + Ref parent_window + ) + { + fixed (SDL_Window* __dsl_parent_window = parent_window) + fixed (SDL_Window* __dsl_modal_window = modal_window) + { + return (int)SetWindowModalFor(__dsl_modal_window, __dsl_parent_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMouseGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ) => Underlying.Value!.SetWindowMouseGrab(window, grabbed); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMouseGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowMouseGrab(__dsl_window, (int)grabbed); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMouseRect( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => Underlying.Value!.SetWindowMouseRect(window, rect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowMouseRect( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowMouseRect(__dsl_window, __dsl_rect); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowOpacity(SDL_Window* window, float opacity) => + Underlying.Value!.SetWindowOpacity(window, opacity); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowOpacity(Ref window, float opacity) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowOpacity(__dsl_window, opacity); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowPosition(SDL_Window* window, int x, int y) => + Underlying.Value!.SetWindowPosition(window, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowPosition(Ref window, int x, int y) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowPosition(__dsl_window, x, y); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowResizable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowResizable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int resizable + ) => Underlying.Value!.SetWindowResizable(window, resizable); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowResizable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool resizable + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowResizable(__dsl_window, (int)resizable); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowShape")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowShape(SDL_Window* window, Surface* shape) => + Underlying.Value!.SetWindowShape(window, shape); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowShape(Ref window, Ref shape) + { + fixed (Surface* __dsl_shape = shape) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowShape(__dsl_window, __dsl_shape); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowSize(SDL_Window* window, int w, int h) => + Underlying.Value!.SetWindowSize(window, w, h); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowSize(Ref window, int w, int h) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowSize(__dsl_window, w, h); + } + } + + [NativeFunction("SDL3", EntryPoint = "SetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowTitle( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* title + ) => Underlying.Value!.SetWindowTitle(window, title); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SetWindowTitle( + Ref window, + [NativeTypeName("const char *")] Ref title + ) + { + fixed (sbyte* __dsl_title = title) + fixed (SDL_Window* __dsl_window = window) + { + return (int)SetWindowTitle(__dsl_window, __dsl_title); + } + } + + [NativeFunction("SDL3", EntryPoint = "ShowCursor")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowCursor() => Underlying.Value!.ShowCursor(); + + [NativeFunction("SDL3", EntryPoint = "ShowMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, + int* buttonid + ) => Underlying.Value!.ShowMessageBox(messageboxdata, buttonid); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, + Ref buttonid + ) + { + fixed (int* __dsl_buttonid = buttonid) + fixed (MessageBoxData* __dsl_messageboxdata = messageboxdata) + { + return (int)ShowMessageBox(__dsl_messageboxdata, __dsl_buttonid); + } + } + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ) => + Underlying.Value!.ShowOpenFileDialog( + callback, + userdata, + window, + filters, + default_location, + allow_many + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) + { + fixed (sbyte* __dsl_default_location = default_location) + fixed (DialogFileFilter* __dsl_filters = filters) + fixed (SDL_Window* __dsl_window = window) + fixed (void* __dsl_userdata = userdata) + { + ShowOpenFileDialog( + callback, + __dsl_userdata, + __dsl_window, + __dsl_filters, + __dsl_default_location, + (int)allow_many + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFolderDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ) => + Underlying.Value!.ShowOpenFolderDialog( + callback, + userdata, + window, + default_location, + allow_many + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) + { + fixed (sbyte* __dsl_default_location = default_location) + fixed (SDL_Window* __dsl_window = window) + fixed (void* __dsl_userdata = userdata) + { + ShowOpenFolderDialog( + callback, + __dsl_userdata, + __dsl_window, + __dsl_default_location, + (int)allow_many + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "ShowSaveFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location + ) => + Underlying.Value!.ShowSaveFileDialog( + callback, + userdata, + window, + filters, + default_location + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location + ) + { + fixed (sbyte* __dsl_default_location = default_location) + fixed (DialogFileFilter* __dsl_filters = filters) + fixed (SDL_Window* __dsl_window = window) + fixed (void* __dsl_userdata = userdata) + { + ShowSaveFileDialog( + callback, + __dsl_userdata, + __dsl_window, + __dsl_filters, + __dsl_default_location + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "ShowSimpleMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] sbyte* title, + [NativeTypeName("const char *")] sbyte* message, + SDL_Window* window + ) => Underlying.Value!.ShowSimpleMessageBox(flags, title, message, window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] Ref title, + [NativeTypeName("const char *")] Ref message, + Ref window + ) + { + fixed (SDL_Window* __dsl_window = window) + fixed (sbyte* __dsl_message = message) + fixed (sbyte* __dsl_title = title) + { + return (int)ShowSimpleMessageBox(flags, __dsl_title, __dsl_message, __dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "ShowWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowWindow(SDL_Window* window) => Underlying.Value!.ShowWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)ShowWindow(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "ShowWindowSystemMenu")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowWindowSystemMenu(SDL_Window* window, int x, int y) => + Underlying.Value!.ShowWindowSystemMenu(window, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int ShowWindowSystemMenu(Ref window, int x, int y) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)ShowWindowSystemMenu(__dsl_window, x, y); + } + } + + [NativeFunction("SDL3", EntryPoint = "SignalCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SignalCondition(SDL_Condition* cond) => + Underlying.Value!.SignalCondition(cond); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SignalCondition(Ref cond) + { + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)SignalCondition(__dsl_cond); + } + } + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SimdGetAlignment")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint SimdGetAlignment() => Underlying.Value!.SimdGetAlignment(); + + [NativeFunction("SDL3", EntryPoint = "SoftStretch")] + [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); + + [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 = "StartTextInput")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void StartTextInput() => Underlying.Value!.StartTextInput(); + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StopHapticEffect(SDL_Haptic* haptic, int effect) => + Underlying.Value!.StopHapticEffect(haptic, effect); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StopHapticEffect(Ref haptic, int effect) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)StopHapticEffect(__dsl_haptic, effect); + } + } + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StopHapticEffects(SDL_Haptic* haptic) => + Underlying.Value!.StopHapticEffects(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StopHapticEffects(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)StopHapticEffects(__dsl_haptic); + } + } + + [NativeFunction("SDL3", EntryPoint = "StopHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StopHapticRumble(SDL_Haptic* haptic) => + Underlying.Value!.StopHapticRumble(haptic); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StopHapticRumble(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)StopHapticRumble(__dsl_haptic); + } + } + + [NativeFunction("SDL3", EntryPoint = "StopTextInput")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void StopTextInput() => Underlying.Value!.StopTextInput(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "StorageReady")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int StorageReady(SDL_Storage* storage) => + Underlying.Value!.StorageReady(storage); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool StorageReady(Ref storage) + { + fixed (SDL_Storage* __dsl_storage = storage) + { + return (MaybeBool)(int)StorageReady(__dsl_storage); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SurfaceHasColorKey(Surface* surface) => + Underlying.Value!.SurfaceHasColorKey(surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SurfaceHasColorKey(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(int)SurfaceHasColorKey(__dsl_surface); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SurfaceHasRLE(Surface* surface) => + Underlying.Value!.SurfaceHasRLE(surface); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool SurfaceHasRLE(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(int)SurfaceHasRLE(__dsl_surface); + } + } + + [NativeFunction("SDL3", EntryPoint = "SyncWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SyncWindow(SDL_Window* window) => Underlying.Value!.SyncWindow(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int SyncWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)SyncWindow(__dsl_window); + } + } + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "TellIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long TellIO(SDL_IOStream* context) => Underlying.Value!.TellIO(context); + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long TellIO(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (long)TellIO(__dsl_context); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool TextInputActive() => Underlying.Value!.TextInputActive(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TextInputActiveRaw() => Underlying.Value!.TextInputActiveRaw(); + + [return: NativeTypeName("SDL_Time")] + [NativeFunction("SDL3", EntryPoint = "TimeFromWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static long TimeFromWindows( + [NativeTypeName("Uint32")] uint dwLowDateTime, + [NativeTypeName("Uint32")] uint dwHighDateTime + ) => Underlying.Value!.TimeFromWindows(dwLowDateTime, dwHighDateTime); + + [NativeFunction("SDL3", EntryPoint = "TimeToDateTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + DateTime* dt, + [NativeTypeName("SDL_bool")] int localTime + ) => Underlying.Value!.TimeToDateTime(ticks, dt, localTime); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + Ref dt, + [NativeTypeName("SDL_bool")] MaybeBool localTime + ) + { + fixed (DateTime* __dsl_dt = dt) + { + return (int)TimeToDateTime(ticks, __dsl_dt, (int)localTime); + } + } + + [NativeFunction("SDL3", EntryPoint = "TimeToWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] uint* dwLowDateTime, + [NativeTypeName("Uint32 *")] uint* dwHighDateTime + ) => Underlying.Value!.TimeToWindows(ticks, dwLowDateTime, dwHighDateTime); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] Ref dwLowDateTime, + [NativeTypeName("Uint32 *")] Ref dwHighDateTime + ) + { + fixed (uint* __dsl_dwHighDateTime = dwHighDateTime) + fixed (uint* __dsl_dwLowDateTime = dwLowDateTime) + { + TimeToWindows(ticks, __dsl_dwLowDateTime, __dsl_dwHighDateTime); + } + } + + [NativeFunction("SDL3", EntryPoint = "TryLockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockMutex(SDL_Mutex* mutex) => Underlying.Value!.TryLockMutex(mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + return (int)TryLockMutex(__dsl_mutex); + } + } + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockRWLockForReading(SDL_RWLock* rwlock) => + Underlying.Value!.TryLockRWLockForReading(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockRWLockForReading(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + return (int)TryLockRWLockForReading(__dsl_rwlock); + } + } + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockRWLockForWriting(SDL_RWLock* rwlock) => + Underlying.Value!.TryLockRWLockForWriting(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockRWLockForWriting(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + return (int)TryLockRWLockForWriting(__dsl_rwlock); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "TryLockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + Underlying.Value!.TryLockSpinlock(@lock); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool TryLockSpinlock( + [NativeTypeName("SDL_SpinLock *")] Ref @lock + ) + { + fixed (int* __dsl_lock = @lock) + { + return (MaybeBool)(int)TryLockSpinlock(__dsl_lock); + } + } + + [NativeFunction("SDL3", EntryPoint = "TryWaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryWaitSemaphore(SDL_Semaphore* sem) => + Underlying.Value!.TryWaitSemaphore(sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int TryWaitSemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)TryWaitSemaphore(__dsl_sem); + } + } + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnbindAudioStream(SDL_AudioStream* stream) => + Underlying.Value!.UnbindAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnbindAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + UnbindAudioStream(__dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnbindAudioStreams(SDL_AudioStream** streams, int num_streams) => + Underlying.Value!.UnbindAudioStreams(streams, num_streams); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnbindAudioStreams(Ref2D streams, int num_streams) + { + fixed (SDL_AudioStream** __dsl_streams = streams) + { + UnbindAudioStreams(__dsl_streams, num_streams); + } + } + + [NativeFunction("SDL3", EntryPoint = "UnloadObject")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnloadObject(void* handle) => Underlying.Value!.UnloadObject(handle); + + [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 = "UnlockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UnlockAudioStream(SDL_AudioStream* stream) => + Underlying.Value!.UnlockAudioStream(stream); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UnlockAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)UnlockAudioStream(__dsl_stream); + } + } + + [NativeFunction("SDL3", EntryPoint = "UnlockJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockJoysticks() => Underlying.Value!.UnlockJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "UnlockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockMutex(SDL_Mutex* mutex) => Underlying.Value!.UnlockMutex(mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockMutex")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + UnlockMutex(__dsl_mutex); + } + } + + [NativeFunction("SDL3", EntryPoint = "UnlockProperties")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + Underlying.Value!.UnlockProperties(props); + + [NativeFunction("SDL3", EntryPoint = "UnlockRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockRWLock(SDL_RWLock* rwlock) => + Underlying.Value!.UnlockRWLock(rwlock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockRWLock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockRWLock(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + UnlockRWLock(__dsl_rwlock); + } + } + + [NativeFunction("SDL3", EntryPoint = "UnlockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + Underlying.Value!.UnlockSpinlock(@lock); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSpinlock")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) + { + fixed (int* __dsl_lock = @lock) + { + UnlockSpinlock(__dsl_lock); + } + } + + [NativeFunction("SDL3", EntryPoint = "UnlockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockSurface(Surface* surface) => + Underlying.Value!.UnlockSurface(surface); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockSurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + UnlockSurface(__dsl_surface); + } + } + + [NativeFunction("SDL3", EntryPoint = "UnlockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockTexture(SDL_Texture* texture) => + Underlying.Value!.UnlockTexture(texture); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UnlockTexture(Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + UnlockTexture(__dsl_texture); + } + } + + [NativeFunction("SDL3", EntryPoint = "UpdateGamepads")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UpdateGamepads() => Underlying.Value!.UpdateGamepads(); + + [NativeFunction("SDL3", EntryPoint = "UpdateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data + ) => Underlying.Value!.UpdateHapticEffect(haptic, effect, data); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] Ref data + ) + { + fixed (HapticEffect* __dsl_data = data) + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)UpdateHapticEffect(__dsl_haptic, effect, __dsl_data); + } + } + + [NativeFunction("SDL3", EntryPoint = "UpdateJoysticks")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UpdateJoysticks() => Underlying.Value!.UpdateJoysticks(); + + [NativeFunction("SDL3", EntryPoint = "UpdateNVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateNVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* UVplane, + int UVpitch + ) => Underlying.Value!.UpdateNVTexture(texture, rect, Yplane, Ypitch, UVplane, UVpitch); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateNVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref UVplane, + int UVpitch + ) + { + fixed (byte* __dsl_UVplane = UVplane) + fixed (byte* __dsl_Yplane = Yplane) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)UpdateNVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_UVplane, + UVpitch + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "UpdateSensors")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void UpdateSensors() => Underlying.Value!.UpdateSensors(); + + [NativeFunction("SDL3", EntryPoint = "UpdateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const void *")] void* pixels, + int pitch + ) => Underlying.Value!.UpdateTexture(texture, rect, pixels, pitch); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const void *")] Ref pixels, + int pitch + ) + { + fixed (void* __dsl_pixels = pixels) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)UpdateTexture(__dsl_texture, __dsl_rect, __dsl_pixels, pitch); + } + } + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateWindowSurface(SDL_Window* window) => + Underlying.Value!.UpdateWindowSurface(window); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateWindowSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)UpdateWindowSurface(__dsl_window); + } + } + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateWindowSurfaceRects( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int numrects + ) => Underlying.Value!.UpdateWindowSurfaceRects(window, rects, numrects); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateWindowSurfaceRects( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int numrects + ) + { + fixed (Rect* __dsl_rects = rects) + fixed (SDL_Window* __dsl_window = window) + { + return (int)UpdateWindowSurfaceRects(__dsl_window, __dsl_rects, numrects); + } + } + + [NativeFunction("SDL3", EntryPoint = "UpdateYUVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateYUVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] byte* Vplane, + int Vpitch + ) => + Underlying.Value!.UpdateYUVTexture( + texture, + rect, + Yplane, + Ypitch, + Uplane, + Upitch, + Vplane, + Vpitch + ); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int UpdateYUVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] Ref Vplane, + int Vpitch + ) + { + fixed (byte* __dsl_Vplane = Vplane) + fixed (byte* __dsl_Uplane = Uplane) + fixed (byte* __dsl_Yplane = Yplane) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)UpdateYUVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_Uplane, + Upitch, + __dsl_Vplane, + Vpitch + ); + } + } + + [NativeFunction("SDL3", EntryPoint = "WaitCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitCondition(SDL_Condition* cond, SDL_Mutex* mutex) => + Underlying.Value!.WaitCondition(cond, mutex); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitCondition(Ref cond, Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)WaitCondition(__dsl_cond, __dsl_mutex); + } + } + + [NativeFunction("SDL3", EntryPoint = "WaitConditionTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitConditionTimeout( + SDL_Condition* cond, + SDL_Mutex* mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => Underlying.Value!.WaitConditionTimeout(cond, mutex, timeoutMS); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitConditionTimeout( + Ref cond, + Ref mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)WaitConditionTimeout(__dsl_cond, __dsl_mutex, timeoutMS); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitEvent(Event* @event) => Underlying.Value!.WaitEvent(@event); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WaitEvent(Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (MaybeBool)(int)WaitEvent(__dsl_event); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEventTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitEventTimeout( + Event* @event, + [NativeTypeName("Sint32")] int timeoutMS + ) => Underlying.Value!.WaitEventTimeout(@event, timeoutMS); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WaitEventTimeout( + Ref @event, + [NativeTypeName("Sint32")] int timeoutMS + ) + { + fixed (Event* __dsl_event = @event) + { + return (MaybeBool)(int)WaitEventTimeout(__dsl_event, timeoutMS); + } + } + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitSemaphore(SDL_Semaphore* sem) => Underlying.Value!.WaitSemaphore(sem); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitSemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)WaitSemaphore(__dsl_sem); + } + } + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphoreTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitSemaphoreTimeout( + SDL_Semaphore* sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => Underlying.Value!.WaitSemaphoreTimeout(sem, timeoutMS); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WaitSemaphoreTimeout( + Ref sem, + [NativeTypeName("Sint32")] int timeoutMS + ) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)WaitSemaphoreTimeout(__dsl_sem, timeoutMS); + } + } + + [NativeFunction("SDL3", EntryPoint = "WaitThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void WaitThread(SDL_Thread* thread, int* status) => + Underlying.Value!.WaitThread(thread, status); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void WaitThread(Ref thread, Ref status) + { + fixed (int* __dsl_status = status) + fixed (SDL_Thread* __dsl_thread = thread) + { + WaitThread(__dsl_thread, __dsl_status); + } + } + + [NativeFunction("SDL3", EntryPoint = "WarpMouseGlobal")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WarpMouseGlobal(float x, float y) => + Underlying.Value!.WarpMouseGlobal(x, y); + + [NativeFunction("SDL3", EntryPoint = "WarpMouseInWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void WarpMouseInWindow(SDL_Window* window, float x, float y) => + Underlying.Value!.WarpMouseInWindow(window, x, y); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static void WarpMouseInWindow(Ref window, float x, float y) + { + fixed (SDL_Window* __dsl_window = window) + { + WarpMouseInWindow(__dsl_window, x, y); + } + } + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "WasInit")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static uint WasInit([NativeTypeName("Uint32")] uint flags) => + Underlying.Value!.WasInit(flags); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WindowHasSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WindowHasSurface(SDL_Window* window) => + Underlying.Value!.WindowHasSurface(window); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WindowHasSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)WindowHasSurface(__dsl_window); + } + } + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "WriteIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint WriteIO( + SDL_IOStream* context, + [NativeTypeName("const void *")] void* ptr, + [NativeTypeName("size_t")] nuint size + ) => Underlying.Value!.WriteIO(context, ptr, size); + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteIO")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static nuint WriteIO( + Ref context, + [NativeTypeName("const void *")] Ref ptr, + [NativeTypeName("size_t")] nuint size + ) + { + fixed (void* __dsl_ptr = ptr) + fixed (SDL_IOStream* __dsl_context = context) + { + return (nuint)WriteIO(__dsl_context, __dsl_ptr, size); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteS16BE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value) => + Underlying.Value!.WriteS16BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS16BE( + Ref dst, + [NativeTypeName("Sint16")] short value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS16BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteS16LE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value) => + Underlying.Value!.WriteS16LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS16LE( + Ref dst, + [NativeTypeName("Sint16")] short value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS16LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteS32BE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value) => + Underlying.Value!.WriteS32BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS32BE( + Ref dst, + [NativeTypeName("Sint32")] int value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS32BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteS32LE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value) => + Underlying.Value!.WriteS32LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS32LE( + Ref dst, + [NativeTypeName("Sint32")] int value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS32LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteS64BE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value) => + Underlying.Value!.WriteS64BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS64BE( + Ref dst, + [NativeTypeName("Sint64")] long value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS64BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteS64LE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value) => + Underlying.Value!.WriteS64LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteS64LE( + Ref dst, + [NativeTypeName("Sint64")] long value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteS64LE(__dsl_dst, value); + } + } + + [NativeFunction("SDL3", EntryPoint = "WriteStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const void *")] void* source, + [NativeTypeName("Uint64")] ulong length + ) => Underlying.Value!.WriteStorageFile(storage, path, source, length); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const void *")] Ref source, + [NativeTypeName("Uint64")] ulong length + ) + { + fixed (void* __dsl_source = source) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)WriteStorageFile(__dsl_storage, __dsl_path, __dsl_source, length); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteU16BE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value) => + Underlying.Value!.WriteU16BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU16BE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU16BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteU16LE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value) => + Underlying.Value!.WriteU16LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU16LE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU16LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteU32BE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value) => + Underlying.Value!.WriteU32BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU32BE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU32BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteU32LE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value) => + Underlying.Value!.WriteU32LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU32LE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU32LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteU64BE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value) => + Underlying.Value!.WriteU64BE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU64BE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU64BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteU64LE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value) => + Underlying.Value!.WriteU64LE(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU64LE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU64LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static int WriteU8(SDL_IOStream* dst, [NativeTypeName("Uint8")] byte value) => + Underlying.Value!.WriteU8(dst, value); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] + [MethodImpl( + MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization + )] + public static MaybeBool WriteU8( + Ref dst, + [NativeTypeName("Uint8")] byte value + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)WriteU8(__dsl_dst, value); + } + } + } + + [NativeTypeName("#define SDL_ASSERT_LEVEL 2")] + public const int AssertLevel = 2; + + [NativeTypeName("#define SDL_FILE __FILE__")] + public static ReadOnlySpan File => + "/Users/dylan/Documents/Silk.NET3/eng/silktouch/sdl/SDL3/sdl-SDL.h"u8; + + [NativeTypeName("#define SDL_LINE __LINE__")] + public const int Line = 7; + + [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_RWLOCK_TIMEDOUT SDL_MUTEX_TIMEDOUT")] + public const int RwlockTimedout = 1; + + [NativeTypeName( + "#define SDL_PROP_IOSTREAM_WINDOWS_HANDLE_POINTER \"SDL.iostream.windows.handle\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_IOSTREAM_ANDROID_AASSET_POINTER \"SDL.iostream.android.aasset\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_IOSTREAM_DYNAMIC_CHUNKSIZE_NUMBER \"SDL.iostream.dynamic.chunksize\"" + )] + public static ReadOnlySpan 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_F32LE 0x8120")] + public const int AudioF32Le = 0x8120; + + [NativeTypeName("#define SDL_AUDIO_F32BE 0x9120")] + public const int AudioF32Be = 0x9120; + + [NativeTypeName("#define SDL_AUDIO_S16 SDL_AUDIO_S16LE")] + public const int AudioS16 = 0x8010; + + [NativeTypeName("#define SDL_AUDIO_S32 SDL_AUDIO_S32LE")] + public const int AudioS32 = 0x8020; + + [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_ALPHA_OPAQUE 255")] + public const int AlphaOpaque = 255; + + [NativeTypeName("#define SDL_ALPHA_TRANSPARENT 0")] + public const int AlphaTransparent = 0; + + [NativeTypeName("#define SDL_SWSURFACE 0")] + public const int Swsurface = 0; + + [NativeTypeName("#define SDL_PREALLOC 0x00000001")] + public const int Prealloc = 0x00000001; + + [NativeTypeName("#define SDL_RLEACCEL 0x00000002")] + public const int Rleaccel = 0x00000002; + + [NativeTypeName("#define SDL_DONTFREE 0x00000004")] + public const int Dontfree = 0x00000004; + + [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 ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_SURFACE_HDR_HEADROOM_FLOAT \"SDL.surface.HDR_headroom\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_GLOBAL_VIDEO_WAYLAND_WL_DISPLAY_POINTER \"SDL.video.wayland.wl_display\"" + )] + public static ReadOnlySpan PropGlobalVideoWaylandWlDisplayPointer => + "SDL.video.wayland.wl_display"u8; + + [NativeTypeName("#define SDL_WINDOW_FULLSCREEN 0x00000001U")] + public const uint WindowFullscreen = 0x00000001U; + + [NativeTypeName("#define SDL_WINDOW_OPENGL 0x00000002U")] + public const uint WindowOpengl = 0x00000002U; + + [NativeTypeName("#define SDL_WINDOW_OCCLUDED 0x00000004U")] + public const uint WindowOccluded = 0x00000004U; + + [NativeTypeName("#define SDL_WINDOW_HIDDEN 0x00000008U")] + public const uint WindowHidden = 0x00000008U; + + [NativeTypeName("#define SDL_WINDOW_BORDERLESS 0x00000010U")] + public const uint WindowBorderless = 0x00000010U; + + [NativeTypeName("#define SDL_WINDOW_RESIZABLE 0x00000020U")] + public const uint WindowResizable = 0x00000020U; + + [NativeTypeName("#define SDL_WINDOW_MINIMIZED 0x00000040U")] + public const uint WindowMinimized = 0x00000040U; + + [NativeTypeName("#define SDL_WINDOW_MAXIMIZED 0x00000080U")] + public const uint WindowMaximized = 0x00000080U; + + [NativeTypeName("#define SDL_WINDOW_MOUSE_GRABBED 0x00000100U")] + public const uint WindowMouseGrabbed = 0x00000100U; + + [NativeTypeName("#define SDL_WINDOW_INPUT_FOCUS 0x00000200U")] + public const uint WindowInputFocus = 0x00000200U; + + [NativeTypeName("#define SDL_WINDOW_MOUSE_FOCUS 0x00000400U")] + public const uint WindowMouseFocus = 0x00000400U; + + [NativeTypeName("#define SDL_WINDOW_EXTERNAL 0x00000800U")] + public const uint WindowExternal = 0x00000800U; + + [NativeTypeName("#define SDL_WINDOW_MODAL 0x00001000U")] + public const uint WindowModal = 0x00001000U; + + [NativeTypeName("#define SDL_WINDOW_HIGH_PIXEL_DENSITY 0x00002000U")] + public const uint WindowHighPixelDensity = 0x00002000U; + + [NativeTypeName("#define SDL_WINDOW_MOUSE_CAPTURE 0x00004000U")] + public const uint WindowMouseCapture = 0x00004000U; + + [NativeTypeName("#define SDL_WINDOW_ALWAYS_ON_TOP 0x00008000U")] + public const uint WindowAlwaysOnTop = 0x00008000U; + + [NativeTypeName("#define SDL_WINDOW_UTILITY 0x00020000U")] + public const uint WindowUtility = 0x00020000U; + + [NativeTypeName("#define SDL_WINDOW_TOOLTIP 0x00040000U")] + public const uint WindowTooltip = 0x00040000U; + + [NativeTypeName("#define SDL_WINDOW_POPUP_MENU 0x00080000U")] + public const uint WindowPopupMenu = 0x00080000U; + + [NativeTypeName("#define SDL_WINDOW_KEYBOARD_GRABBED 0x00100000U")] + public const uint WindowKeyboardGrabbed = 0x00100000U; + + [NativeTypeName("#define SDL_WINDOW_VULKAN 0x10000000U")] + public const uint WindowVulkan = 0x10000000U; + + [NativeTypeName("#define SDL_WINDOW_METAL 0x20000000U")] + public const uint WindowMetal = 0x20000000U; + + [NativeTypeName("#define SDL_WINDOW_TRANSPARENT 0x40000000U")] + public const uint WindowTransparent = 0x40000000U; + + [NativeTypeName("#define SDL_WINDOW_NOT_FOCUSABLE 0x80000000U")] + public const uint WindowNotFocusable = 0x80000000U; + + [NativeTypeName("#define SDL_WINDOWPOS_UNDEFINED_MASK 0x1FFF0000u")] + public const uint WindowposUndefinedMask = 0x1FFF0000U; + + [NativeTypeName("#define SDL_WINDOWPOS_UNDEFINED SDL_WINDOWPOS_UNDEFINED_DISPLAY(0)")] + public const uint WindowposUndefined = (0x1FFF0000U | (0)); + + [NativeTypeName("#define SDL_WINDOWPOS_CENTERED_MASK 0x2FFF0000u")] + public const uint WindowposCenteredMask = 0x2FFF0000U; + + [NativeTypeName("#define SDL_WINDOWPOS_CENTERED SDL_WINDOWPOS_CENTERED_DISPLAY(0)")] + 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; + + [NativeTypeName( + "#define SDL_PROP_DISPLAY_SDR_WHITE_POINT_FLOAT \"SDL.display.SDR_white_point\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_ALWAYS_ON_TOP_BOOLEAN \"always_on_top\"")] + public static ReadOnlySpan PropWindowCreateAlwaysOnTopBoolean => "always_on_top"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_BORDERLESS_BOOLEAN \"borderless\"")] + public static ReadOnlySpan PropWindowCreateBorderlessBoolean => "borderless"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_FOCUSABLE_BOOLEAN \"focusable\"")] + public static ReadOnlySpan PropWindowCreateFocusableBoolean => "focusable"u8; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_EXTERNAL_GRAPHICS_CONTEXT_BOOLEAN \"external_graphics_context\"" + )] + public static ReadOnlySpan PropWindowCreateExternalGraphicsContextBoolean => + "external_graphics_context"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_FULLSCREEN_BOOLEAN \"fullscreen\"")] + public static ReadOnlySpan PropWindowCreateFullscreenBoolean => "fullscreen"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_HEIGHT_NUMBER \"height\"")] + public static ReadOnlySpan PropWindowCreateHeightNumber => "height"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_HIDDEN_BOOLEAN \"hidden\"")] + public static ReadOnlySpan PropWindowCreateHiddenBoolean => "hidden"u8; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_HIGH_PIXEL_DENSITY_BOOLEAN \"high_pixel_density\"" + )] + public static ReadOnlySpan PropWindowCreateHighPixelDensityBoolean => + "high_pixel_density"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MAXIMIZED_BOOLEAN \"maximized\"")] + public static ReadOnlySpan PropWindowCreateMaximizedBoolean => "maximized"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MENU_BOOLEAN \"menu\"")] + public static ReadOnlySpan PropWindowCreateMenuBoolean => "menu"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_METAL_BOOLEAN \"metal\"")] + public static ReadOnlySpan PropWindowCreateMetalBoolean => "metal"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MINIMIZED_BOOLEAN \"minimized\"")] + public static ReadOnlySpan PropWindowCreateMinimizedBoolean => "minimized"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MODAL_BOOLEAN \"modal\"")] + public static ReadOnlySpan PropWindowCreateModalBoolean => "modal"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_MOUSE_GRABBED_BOOLEAN \"mouse_grabbed\"")] + public static ReadOnlySpan PropWindowCreateMouseGrabbedBoolean => "mouse_grabbed"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_OPENGL_BOOLEAN \"opengl\"")] + public static ReadOnlySpan PropWindowCreateOpenglBoolean => "opengl"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_PARENT_POINTER \"parent\"")] + public static ReadOnlySpan PropWindowCreateParentPointer => "parent"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_RESIZABLE_BOOLEAN \"resizable\"")] + public static ReadOnlySpan PropWindowCreateResizableBoolean => "resizable"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TITLE_STRING \"title\"")] + public static ReadOnlySpan PropWindowCreateTitleString => "title"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TRANSPARENT_BOOLEAN \"transparent\"")] + public static ReadOnlySpan PropWindowCreateTransparentBoolean => "transparent"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_TOOLTIP_BOOLEAN \"tooltip\"")] + public static ReadOnlySpan PropWindowCreateTooltipBoolean => "tooltip"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_UTILITY_BOOLEAN \"utility\"")] + public static ReadOnlySpan PropWindowCreateUtilityBoolean => "utility"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_VULKAN_BOOLEAN \"vulkan\"")] + public static ReadOnlySpan PropWindowCreateVulkanBoolean => "vulkan"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_WIDTH_NUMBER \"width\"")] + public static ReadOnlySpan PropWindowCreateWidthNumber => "width"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_X_NUMBER \"x\"")] + public static ReadOnlySpan PropWindowCreateXNumber => "x"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_Y_NUMBER \"y\"")] + public static ReadOnlySpan PropWindowCreateYNumber => "y"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_COCOA_WINDOW_POINTER \"cocoa.window\"")] + public static ReadOnlySpan PropWindowCreateCocoaWindowPointer => "cocoa.window"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_COCOA_VIEW_POINTER \"cocoa.view\"")] + public static ReadOnlySpan PropWindowCreateCocoaViewPointer => "cocoa.view"u8; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_WAYLAND_SCALE_TO_DISPLAY_BOOLEAN \"wayland.scale_to_display\"" + )] + public static ReadOnlySpan 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 => + "wayland.surface_role_custom"u8; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_WAYLAND_CREATE_EGL_WINDOW_BOOLEAN \"wayland.create_egl_window\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_WIN32_HWND_POINTER \"win32.hwnd\"")] + public static ReadOnlySpan PropWindowCreateWin32HwndPointer => "win32.hwnd"u8; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_CREATE_WIN32_PIXEL_FORMAT_HWND_POINTER \"win32.pixel_format_hwnd\"" + )] + public static ReadOnlySpan PropWindowCreateWin32PixelFormatHwndPointer => + "win32.pixel_format_hwnd"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_CREATE_X11_WINDOW_NUMBER \"x11.window\"")] + public static ReadOnlySpan PropWindowCreateX11WindowNumber => "x11.window"u8; + + [NativeTypeName("#define SDL_PROP_WINDOW_SHAPE_POINTER \"SDL.window.shape\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_ANDROID_SURFACE_POINTER \"SDL.window.android.surface\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_UIKIT_METAL_VIEW_TAG_NUMBER \"SDL.window.uikit.metal_view_tag\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_WINDOW_KMSDRM_DRM_FD_NUMBER \"SDL.window.kmsdrm.drm_fd\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_WINDOW_COCOA_WINDOW_POINTER \"SDL.window.cocoa.window\"")] + public static ReadOnlySpan 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 => + "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; + + [NativeTypeName("#define SDL_PROP_WINDOW_VIVANTE_WINDOW_POINTER \"SDL.window.vivante.window\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_WINDOW_WINRT_WINDOW_POINTER \"SDL.window.winrt.window\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_WINDOW_WIN32_HDC_POINTER \"SDL.window.win32.hdc\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_WAYLAND_DISPLAY_POINTER \"SDL.window.wayland.display\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_WAYLAND_EGL_WINDOW_POINTER \"SDL.window.wayland.egl_window\"" + )] + public static ReadOnlySpan 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 => + "SDL.window.wayland.xdg_surface"u8; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_WAYLAND_XDG_TOPLEVEL_POINTER \"SDL.window.wayland.xdg_toplevel\"" + )] + public static ReadOnlySpan 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 => + "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; + + [NativeTypeName( + "#define SDL_PROP_WINDOW_WAYLAND_XDG_POSITIONER_POINTER \"SDL.window.wayland.xdg_positioner\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_WINDOW_X11_SCREEN_NUMBER \"SDL.window.x11.screen\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_CACHELINE_SIZE 128")] + public const int CachelineSize = 128; + + [NativeTypeName("#define SDL_JOYSTICK_AXIS_MAX 32767")] + public const int JoystickAxisMax = 32767; + + [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 ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_JOYSTICK_CAP_PLAYER_LED_BOOLEAN \"SDL.joystick.cap.player_led\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_JOYSTICK_CAP_TRIGGER_RUMBLE_BOOLEAN \"SDL.joystick.cap.trigger_rumble\"" + )] + public static ReadOnlySpan PropJoystickCapTriggerRumbleBoolean => + "SDL.joystick.cap.trigger_rumble"u8; + + [NativeTypeName("#define SDL_HAT_CENTERED 0x00")] + public const int HatCentered = 0x00; + + [NativeTypeName("#define SDL_HAT_UP 0x01")] + public const int HatUp = 0x01; + + [NativeTypeName("#define SDL_HAT_RIGHT 0x02")] + public const int HatRight = 0x02; + + [NativeTypeName("#define SDL_HAT_DOWN 0x04")] + public const int HatDown = 0x04; + + [NativeTypeName("#define SDL_HAT_LEFT 0x08")] + public const int HatLeft = 0x08; + + [NativeTypeName("#define SDL_HAT_RIGHTUP (SDL_HAT_RIGHT|SDL_HAT_UP)")] + public const int HatRightup = (0x02 | 0x01); + + [NativeTypeName("#define SDL_HAT_RIGHTDOWN (SDL_HAT_RIGHT|SDL_HAT_DOWN)")] + public const int HatRightdown = (0x02 | 0x04); + + [NativeTypeName("#define SDL_HAT_LEFTUP (SDL_HAT_LEFT|SDL_HAT_UP)")] + public const int HatLeftup = (0x08 | 0x01); + + [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; + + [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; + + [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; + + [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; + + [NativeTypeName( + "#define SDL_PROP_GAMEPAD_CAP_RUMBLE_BOOLEAN SDL_PROP_JOYSTICK_CAP_RUMBLE_BOOLEAN" + )] + public static ReadOnlySpan 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 => + "SDL.joystick.cap.trigger_rumble"u8; + + [NativeTypeName("#define SDLK_SCANCODE_MASK (1<<30)")] + public const int KScancodeMask = (1 << 30); + + [NativeTypeName("#define SDLK_UNKNOWN 0")] + public const int KUnknown = 0; + + [NativeTypeName("#define SDLK_RETURN '\r'")] + public const sbyte KReturn = (sbyte)('\r'); + + [NativeTypeName("#define SDLK_ESCAPE '\\x1B'")] + public const sbyte KEscape = (sbyte)(''); + + [NativeTypeName("#define SDLK_BACKSPACE '\\b'")] + public const sbyte KBackspace = (sbyte)(''); + + [NativeTypeName("#define SDLK_TAB '\t'")] + public const sbyte KTab = (sbyte)('\t'); + + [NativeTypeName("#define SDLK_SPACE ' '")] + public const sbyte KSpace = (sbyte)(' '); + + [NativeTypeName("#define SDLK_EXCLAIM '!'")] + public const sbyte KExclaim = (sbyte)('!'); + + [NativeTypeName("#define SDLK_QUOTEDBL '\"'")] + public const sbyte KQuotedbl = (sbyte)('"'); + + [NativeTypeName("#define SDLK_HASH '#'")] + public const sbyte KHash = (sbyte)('#'); + + [NativeTypeName("#define SDLK_PERCENT '%'")] + public const sbyte KPercent = (sbyte)('%'); + + [NativeTypeName("#define SDLK_DOLLAR '$'")] + public const sbyte KDollar = (sbyte)('$'); + + [NativeTypeName("#define SDLK_AMPERSAND '&'")] + public const sbyte KAmpersand = (sbyte)('&'); + + [NativeTypeName("#define SDLK_QUOTE '\\''")] + public const sbyte KQuote = (sbyte)('\''); + + [NativeTypeName("#define SDLK_LEFTPAREN '('")] + public const sbyte KLeftparen = (sbyte)('('); + + [NativeTypeName("#define SDLK_RIGHTPAREN ')'")] + public const sbyte KRightparen = (sbyte)(')'); + + [NativeTypeName("#define SDLK_ASTERISK '*'")] + public const sbyte KAsterisk = (sbyte)('*'); + + [NativeTypeName("#define SDLK_PLUS '+'")] + public const sbyte KPlus = (sbyte)('+'); + + [NativeTypeName("#define SDLK_COMMA ','")] + public const sbyte KComma = (sbyte)(','); + + [NativeTypeName("#define SDLK_MINUS '-'")] + public const sbyte KMinus = (sbyte)('-'); + + [NativeTypeName("#define SDLK_PERIOD '.'")] + public const sbyte KPeriod = (sbyte)('.'); + + [NativeTypeName("#define SDLK_SLASH '/'")] + public const sbyte KSlash = (sbyte)('/'); + + [NativeTypeName("#define SDLK_0 '0'")] + public const sbyte K0 = (sbyte)('0'); + + [NativeTypeName("#define SDLK_1 '1'")] + public const sbyte K1 = (sbyte)('1'); + + [NativeTypeName("#define SDLK_2 '2'")] + public const sbyte K2 = (sbyte)('2'); + + [NativeTypeName("#define SDLK_3 '3'")] + public const sbyte K3 = (sbyte)('3'); + + [NativeTypeName("#define SDLK_4 '4'")] + public const sbyte K4 = (sbyte)('4'); + + [NativeTypeName("#define SDLK_5 '5'")] + public const sbyte K5 = (sbyte)('5'); + + [NativeTypeName("#define SDLK_6 '6'")] + public const sbyte K6 = (sbyte)('6'); + + [NativeTypeName("#define SDLK_7 '7'")] + public const sbyte K7 = (sbyte)('7'); + + [NativeTypeName("#define SDLK_8 '8'")] + public const sbyte K8 = (sbyte)('8'); + + [NativeTypeName("#define SDLK_9 '9'")] + public const sbyte K9 = (sbyte)('9'); + + [NativeTypeName("#define SDLK_COLON ':'")] + public const sbyte KColon = (sbyte)(':'); + + [NativeTypeName("#define SDLK_SEMICOLON ';'")] + public const sbyte KSemicolon = (sbyte)(';'); + + [NativeTypeName("#define SDLK_LESS '<'")] + public const sbyte KLess = (sbyte)('<'); + + [NativeTypeName("#define SDLK_EQUALS '='")] + public const sbyte KEquals = (sbyte)('='); + + [NativeTypeName("#define SDLK_GREATER '>'")] + public const sbyte KGreater = (sbyte)('>'); + + [NativeTypeName("#define SDLK_QUESTION '?'")] + public const sbyte KQuestion = (sbyte)('?'); + + [NativeTypeName("#define SDLK_AT '@'")] + public const sbyte KAt = (sbyte)('@'); + + [NativeTypeName("#define SDLK_LEFTBRACKET '['")] + public const sbyte KLeftbracket = (sbyte)('['); + + [NativeTypeName("#define SDLK_BACKSLASH '\\'")] + public const sbyte KBackslash = (sbyte)('\\'); + + [NativeTypeName("#define SDLK_RIGHTBRACKET ']'")] + public const sbyte KRightbracket = (sbyte)(']'); + + [NativeTypeName("#define SDLK_CARET '^'")] + public const sbyte KCaret = (sbyte)('^'); + + [NativeTypeName("#define SDLK_UNDERSCORE '_'")] + public const sbyte KUnderscore = (sbyte)('_'); + + [NativeTypeName("#define SDLK_BACKQUOTE '`'")] + public const sbyte KBackquote = (sbyte)('`'); + + [NativeTypeName("#define SDLK_a 'a'")] + public const sbyte Ka = (sbyte)('a'); + + [NativeTypeName("#define SDLK_b 'b'")] + public const sbyte Kb = (sbyte)('b'); + + [NativeTypeName("#define SDLK_c 'c'")] + public const sbyte Kc = (sbyte)('c'); + + [NativeTypeName("#define SDLK_d 'd'")] + public const sbyte Kd = (sbyte)('d'); + + [NativeTypeName("#define SDLK_e 'e'")] + public const sbyte Ke = (sbyte)('e'); + + [NativeTypeName("#define SDLK_f 'f'")] + public const sbyte Kf = (sbyte)('f'); + + [NativeTypeName("#define SDLK_g 'g'")] + public const sbyte Kg = (sbyte)('g'); + + [NativeTypeName("#define SDLK_h 'h'")] + public const sbyte Kh = (sbyte)('h'); + + [NativeTypeName("#define SDLK_i 'i'")] + public const sbyte Ki = (sbyte)('i'); + + [NativeTypeName("#define SDLK_j 'j'")] + public const sbyte Kj = (sbyte)('j'); + + [NativeTypeName("#define SDLK_k 'k'")] + public const sbyte Kk = (sbyte)('k'); + + [NativeTypeName("#define SDLK_l 'l'")] + public const sbyte Kl = (sbyte)('l'); + + [NativeTypeName("#define SDLK_m 'm'")] + public const sbyte Km = (sbyte)('m'); + + [NativeTypeName("#define SDLK_n 'n'")] + public const sbyte Kn = (sbyte)('n'); + + [NativeTypeName("#define SDLK_o 'o'")] + public const sbyte Ko = (sbyte)('o'); + + [NativeTypeName("#define SDLK_p 'p'")] + public const sbyte Kp = (sbyte)('p'); + + [NativeTypeName("#define SDLK_q 'q'")] + public const sbyte Kq = (sbyte)('q'); + + [NativeTypeName("#define SDLK_r 'r'")] + public const sbyte Kr = (sbyte)('r'); + + [NativeTypeName("#define SDLK_s 's'")] + public const sbyte Ks = (sbyte)('s'); + + [NativeTypeName("#define SDLK_t 't'")] + public const sbyte Kt = (sbyte)('t'); + + [NativeTypeName("#define SDLK_u 'u'")] + public const sbyte Ku = (sbyte)('u'); + + [NativeTypeName("#define SDLK_v 'v'")] + public const sbyte Kv = (sbyte)('v'); + + [NativeTypeName("#define SDLK_w 'w'")] + public const sbyte Kw = (sbyte)('w'); + + [NativeTypeName("#define SDLK_x 'x'")] + public const sbyte Kx = (sbyte)('x'); + + [NativeTypeName("#define SDLK_y 'y'")] + public const sbyte Ky = (sbyte)('y'); + + [NativeTypeName("#define SDLK_z 'z'")] + public const sbyte Kz = (sbyte)('z'); + + [NativeTypeName("#define SDLK_CAPSLOCK SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CAPSLOCK)")] + public const int KCapslock = ((int)(ScancodeCapslock) | (1 << 30)); + + [NativeTypeName("#define SDLK_F1 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F1)")] + public const int KF1 = ((int)(ScancodeF1) | (1 << 30)); + + [NativeTypeName("#define SDLK_F2 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F2)")] + public const int KF2 = ((int)(ScancodeF2) | (1 << 30)); + + [NativeTypeName("#define SDLK_F3 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F3)")] + public const int KF3 = ((int)(ScancodeF3) | (1 << 30)); + + [NativeTypeName("#define SDLK_F4 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F4)")] + public const int KF4 = ((int)(ScancodeF4) | (1 << 30)); + + [NativeTypeName("#define SDLK_F5 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F5)")] + public const int KF5 = ((int)(ScancodeF5) | (1 << 30)); + + [NativeTypeName("#define SDLK_F6 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F6)")] + public const int KF6 = ((int)(ScancodeF6) | (1 << 30)); + + [NativeTypeName("#define SDLK_F7 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F7)")] + public const int KF7 = ((int)(ScancodeF7) | (1 << 30)); + + [NativeTypeName("#define SDLK_F8 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F8)")] + public const int KF8 = ((int)(ScancodeF8) | (1 << 30)); + + [NativeTypeName("#define SDLK_F9 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F9)")] + public const int KF9 = ((int)(ScancodeF9) | (1 << 30)); + + [NativeTypeName("#define SDLK_F10 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F10)")] + public const int KF10 = ((int)(ScancodeF10) | (1 << 30)); + + [NativeTypeName("#define SDLK_F11 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F11)")] + public const int KF11 = ((int)(ScancodeF11) | (1 << 30)); + + [NativeTypeName("#define SDLK_F12 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F12)")] + public const int KF12 = ((int)(ScancodeF12) | (1 << 30)); + + [NativeTypeName("#define SDLK_PRINTSCREEN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRINTSCREEN)")] + public const int KPrintscreen = ((int)(ScancodePrintscreen) | (1 << 30)); + + [NativeTypeName("#define SDLK_SCROLLLOCK SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SCROLLLOCK)")] + public const int KScrolllock = ((int)(ScancodeScrolllock) | (1 << 30)); + + [NativeTypeName("#define SDLK_PAUSE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAUSE)")] + public const int KPause = ((int)(ScancodePause) | (1 << 30)); + + [NativeTypeName("#define SDLK_INSERT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_INSERT)")] + public const int KInsert = ((int)(ScancodeInsert) | (1 << 30)); + + [NativeTypeName("#define SDLK_HOME SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HOME)")] + public const int KHome = ((int)(ScancodeHome) | (1 << 30)); + + [NativeTypeName("#define SDLK_PAGEUP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEUP)")] + public const int KPageup = ((int)(ScancodePageup) | (1 << 30)); + + [NativeTypeName("#define SDLK_DELETE '\\x7F'")] + public const sbyte KDelete = (sbyte)(''); + + [NativeTypeName("#define SDLK_END SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_END)")] + public const int KEnd = ((int)(ScancodeEnd) | (1 << 30)); + + [NativeTypeName("#define SDLK_PAGEDOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PAGEDOWN)")] + public const int KPagedown = ((int)(ScancodePagedown) | (1 << 30)); + + [NativeTypeName("#define SDLK_RIGHT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RIGHT)")] + public const int KRight = ((int)(ScancodeRight) | (1 << 30)); + + [NativeTypeName("#define SDLK_LEFT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LEFT)")] + public const int KLeft = ((int)(ScancodeLeft) | (1 << 30)); + + [NativeTypeName("#define SDLK_DOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DOWN)")] + public const int KDown = ((int)(ScancodeDown) | (1 << 30)); + + [NativeTypeName("#define SDLK_UP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UP)")] + public const int KUp = ((int)(ScancodeUp) | (1 << 30)); + + [NativeTypeName("#define SDLK_NUMLOCKCLEAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_NUMLOCKCLEAR)")] + public const int KNumlockclear = ((int)(ScancodeNumlockclear) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_DIVIDE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DIVIDE)")] + public const int KKpDivide = ((int)(ScancodeKpDivide) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_MULTIPLY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MULTIPLY)")] + public const int KKpMultiply = ((int)(ScancodeKpMultiply) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_MINUS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MINUS)")] + public const int KKpMinus = ((int)(ScancodeKpMinus) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_PLUS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUS)")] + public const int KKpPlus = ((int)(ScancodeKpPlus) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_ENTER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_ENTER)")] + public const int KKpEnter = ((int)(ScancodeKpEnter) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_1 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_1)")] + public const int KKp1 = ((int)(ScancodeKp1) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_2 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_2)")] + public const int KKp2 = ((int)(ScancodeKp2) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_3 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_3)")] + public const int KKp3 = ((int)(ScancodeKp3) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_4 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_4)")] + public const int KKp4 = ((int)(ScancodeKp4) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_5 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_5)")] + public const int KKp5 = ((int)(ScancodeKp5) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_6 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_6)")] + public const int KKp6 = ((int)(ScancodeKp6) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_7 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_7)")] + public const int KKp7 = ((int)(ScancodeKp7) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_8 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_8)")] + public const int KKp8 = ((int)(ScancodeKp8) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_9 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_9)")] + public const int KKp9 = ((int)(ScancodeKp9) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_0 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_0)")] + public const int KKp0 = ((int)(ScancodeKp0) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_PERIOD SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERIOD)")] + public const int KKpPeriod = ((int)(ScancodeKpPeriod) | (1 << 30)); + + [NativeTypeName("#define SDLK_APPLICATION SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APPLICATION)")] + public const int KApplication = ((int)(ScancodeApplication) | (1 << 30)); + + [NativeTypeName("#define SDLK_POWER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_POWER)")] + public const int KPower = ((int)(ScancodePower) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_EQUALS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALS)")] + public const int KKpEquals = ((int)(ScancodeKpEquals) | (1 << 30)); + + [NativeTypeName("#define SDLK_F13 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F13)")] + public const int KF13 = ((int)(ScancodeF13) | (1 << 30)); + + [NativeTypeName("#define SDLK_F14 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F14)")] + public const int KF14 = ((int)(ScancodeF14) | (1 << 30)); + + [NativeTypeName("#define SDLK_F15 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F15)")] + public const int KF15 = ((int)(ScancodeF15) | (1 << 30)); + + [NativeTypeName("#define SDLK_F16 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F16)")] + public const int KF16 = ((int)(ScancodeF16) | (1 << 30)); + + [NativeTypeName("#define SDLK_F17 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F17)")] + public const int KF17 = ((int)(ScancodeF17) | (1 << 30)); + + [NativeTypeName("#define SDLK_F18 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F18)")] + public const int KF18 = ((int)(ScancodeF18) | (1 << 30)); + + [NativeTypeName("#define SDLK_F19 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F19)")] + public const int KF19 = ((int)(ScancodeF19) | (1 << 30)); + + [NativeTypeName("#define SDLK_F20 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F20)")] + public const int KF20 = ((int)(ScancodeF20) | (1 << 30)); + + [NativeTypeName("#define SDLK_F21 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F21)")] + public const int KF21 = ((int)(ScancodeF21) | (1 << 30)); + + [NativeTypeName("#define SDLK_F22 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F22)")] + public const int KF22 = ((int)(ScancodeF22) | (1 << 30)); + + [NativeTypeName("#define SDLK_F23 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F23)")] + public const int KF23 = ((int)(ScancodeF23) | (1 << 30)); + + [NativeTypeName("#define SDLK_F24 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_F24)")] + public const int KF24 = ((int)(ScancodeF24) | (1 << 30)); + + [NativeTypeName("#define SDLK_EXECUTE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXECUTE)")] + public const int KExecute = ((int)(ScancodeExecute) | (1 << 30)); + + [NativeTypeName("#define SDLK_HELP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_HELP)")] + public const int KHelp = ((int)(ScancodeHelp) | (1 << 30)); + + [NativeTypeName("#define SDLK_MENU SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MENU)")] + public const int KMenu = ((int)(ScancodeMenu) | (1 << 30)); + + [NativeTypeName("#define SDLK_SELECT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SELECT)")] + public const int KSelect = ((int)(ScancodeSelect) | (1 << 30)); + + [NativeTypeName("#define SDLK_STOP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_STOP)")] + public const int KStop = ((int)(ScancodeStop) | (1 << 30)); + + [NativeTypeName("#define SDLK_AGAIN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AGAIN)")] + public const int KAgain = ((int)(ScancodeAgain) | (1 << 30)); + + [NativeTypeName("#define SDLK_UNDO SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_UNDO)")] + public const int KUndo = ((int)(ScancodeUndo) | (1 << 30)); + + [NativeTypeName("#define SDLK_CUT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CUT)")] + public const int KCut = ((int)(ScancodeCut) | (1 << 30)); + + [NativeTypeName("#define SDLK_COPY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COPY)")] + public const int KCopy = ((int)(ScancodeCopy) | (1 << 30)); + + [NativeTypeName("#define SDLK_PASTE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PASTE)")] + public const int KPaste = ((int)(ScancodePaste) | (1 << 30)); + + [NativeTypeName("#define SDLK_FIND SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_FIND)")] + public const int KFind = ((int)(ScancodeFind) | (1 << 30)); + + [NativeTypeName("#define SDLK_MUTE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MUTE)")] + public const int KMute = ((int)(ScancodeMute) | (1 << 30)); + + [NativeTypeName("#define SDLK_VOLUMEUP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEUP)")] + public const int KVolumeup = ((int)(ScancodeVolumeup) | (1 << 30)); + + [NativeTypeName("#define SDLK_VOLUMEDOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_VOLUMEDOWN)")] + public const int KVolumedown = ((int)(ScancodeVolumedown) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_COMMA SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COMMA)")] + public const int KKpComma = ((int)(ScancodeKpComma) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_EQUALSAS400 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EQUALSAS400)" + )] + public const int KKpEqualsas400 = ((int)(ScancodeKpEqualsas400) | (1 << 30)); + + [NativeTypeName("#define SDLK_ALTERASE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ALTERASE)")] + public const int KAlterase = ((int)(ScancodeAlterase) | (1 << 30)); + + [NativeTypeName("#define SDLK_SYSREQ SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SYSREQ)")] + public const int KSysreq = ((int)(ScancodeSysreq) | (1 << 30)); + + [NativeTypeName("#define SDLK_CANCEL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CANCEL)")] + public const int KCancel = ((int)(ScancodeCancel) | (1 << 30)); + + [NativeTypeName("#define SDLK_CLEAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEAR)")] + public const int KClear = ((int)(ScancodeClear) | (1 << 30)); + + [NativeTypeName("#define SDLK_PRIOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_PRIOR)")] + public const int KPrior = ((int)(ScancodePrior) | (1 << 30)); + + [NativeTypeName("#define SDLK_RETURN2 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RETURN2)")] + public const int KReturn2 = ((int)(ScancodeReturn2) | (1 << 30)); + + [NativeTypeName("#define SDLK_SEPARATOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SEPARATOR)")] + public const int KSeparator = ((int)(ScancodeSeparator) | (1 << 30)); + + [NativeTypeName("#define SDLK_OUT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OUT)")] + public const int KOut = ((int)(ScancodeOut) | (1 << 30)); + + [NativeTypeName("#define SDLK_OPER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_OPER)")] + public const int KOper = ((int)(ScancodeOper) | (1 << 30)); + + [NativeTypeName("#define SDLK_CLEARAGAIN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CLEARAGAIN)")] + public const int KClearagain = ((int)(ScancodeClearagain) | (1 << 30)); + + [NativeTypeName("#define SDLK_CRSEL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CRSEL)")] + public const int KCrsel = ((int)(ScancodeCrsel) | (1 << 30)); + + [NativeTypeName("#define SDLK_EXSEL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EXSEL)")] + public const int KExsel = ((int)(ScancodeExsel) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_00 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_00)")] + public const int KKp00 = ((int)(ScancodeKp00) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_000 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_000)")] + public const int KKp000 = ((int)(ScancodeKp000) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_THOUSANDSSEPARATOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_THOUSANDSSEPARATOR)" + )] + public const int KThousandsseparator = ((int)(ScancodeThousandsseparator) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_DECIMALSEPARATOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DECIMALSEPARATOR)" + )] + public const int KDecimalseparator = ((int)(ScancodeDecimalseparator) | (1 << 30)); + + [NativeTypeName("#define SDLK_CURRENCYUNIT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYUNIT)")] + public const int KCurrencyunit = ((int)(ScancodeCurrencyunit) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_CURRENCYSUBUNIT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CURRENCYSUBUNIT)" + )] + public const int KCurrencysubunit = ((int)(ScancodeCurrencysubunit) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_LEFTPAREN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTPAREN)")] + public const int KKpLeftparen = ((int)(ScancodeKpLeftparen) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_RIGHTPAREN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTPAREN)" + )] + public const int KKpRightparen = ((int)(ScancodeKpRightparen) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_LEFTBRACE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LEFTBRACE)")] + public const int KKpLeftbrace = ((int)(ScancodeKpLeftbrace) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_RIGHTBRACE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_RIGHTBRACE)" + )] + public const int KKpRightbrace = ((int)(ScancodeKpRightbrace) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_TAB SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_TAB)")] + public const int KKpTab = ((int)(ScancodeKpTab) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_BACKSPACE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BACKSPACE)")] + public const int KKpBackspace = ((int)(ScancodeKpBackspace) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_A SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_A)")] + public const int KKpA = ((int)(ScancodeKpA) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_B SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_B)")] + public const int KKpB = ((int)(ScancodeKpB) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_C SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_C)")] + public const int KKpC = ((int)(ScancodeKpC) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_D SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_D)")] + public const int KKpD = ((int)(ScancodeKpD) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_E SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_E)")] + public const int KKpE = ((int)(ScancodeKpE) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_F SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_F)")] + public const int KKpF = ((int)(ScancodeKpF) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_XOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_XOR)")] + public const int KKpXor = ((int)(ScancodeKpXor) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_POWER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_POWER)")] + public const int KKpPower = ((int)(ScancodeKpPower) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_PERCENT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PERCENT)")] + public const int KKpPercent = ((int)(ScancodeKpPercent) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_LESS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_LESS)")] + public const int KKpLess = ((int)(ScancodeKpLess) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_GREATER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_GREATER)")] + public const int KKpGreater = ((int)(ScancodeKpGreater) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_AMPERSAND SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AMPERSAND)")] + public const int KKpAmpersand = ((int)(ScancodeKpAmpersand) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_DBLAMPERSAND SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLAMPERSAND)" + )] + public const int KKpDblampersand = ((int)(ScancodeKpDblampersand) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_VERTICALBAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_VERTICALBAR)" + )] + public const int KKpVerticalbar = ((int)(ScancodeKpVerticalbar) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_DBLVERTICALBAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DBLVERTICALBAR)" + )] + public const int KKpDblverticalbar = ((int)(ScancodeKpDblverticalbar) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_COLON SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_COLON)")] + public const int KKpColon = ((int)(ScancodeKpColon) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_HASH SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HASH)")] + public const int KKpHash = ((int)(ScancodeKpHash) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_SPACE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_SPACE)")] + public const int KKpSpace = ((int)(ScancodeKpSpace) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_AT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_AT)")] + public const int KKpAt = ((int)(ScancodeKpAt) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_EXCLAM SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_EXCLAM)")] + public const int KKpExclam = ((int)(ScancodeKpExclam) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_MEMSTORE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSTORE)")] + public const int KKpMemstore = ((int)(ScancodeKpMemstore) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_MEMRECALL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMRECALL)")] + public const int KKpMemrecall = ((int)(ScancodeKpMemrecall) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_MEMCLEAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMCLEAR)")] + public const int KKpMemclear = ((int)(ScancodeKpMemclear) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_MEMADD SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMADD)")] + public const int KKpMemadd = ((int)(ScancodeKpMemadd) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_MEMSUBTRACT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMSUBTRACT)" + )] + public const int KKpMemsubtract = ((int)(ScancodeKpMemsubtract) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_MEMMULTIPLY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMMULTIPLY)" + )] + public const int KKpMemmultiply = ((int)(ScancodeKpMemmultiply) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_MEMDIVIDE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_MEMDIVIDE)")] + public const int KKpMemdivide = ((int)(ScancodeKpMemdivide) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_PLUSMINUS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_PLUSMINUS)")] + public const int KKpPlusminus = ((int)(ScancodeKpPlusminus) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_CLEAR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEAR)")] + public const int KKpClear = ((int)(ScancodeKpClear) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_CLEARENTRY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_CLEARENTRY)" + )] + public const int KKpClearentry = ((int)(ScancodeKpClearentry) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_BINARY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_BINARY)")] + public const int KKpBinary = ((int)(ScancodeKpBinary) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_OCTAL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_OCTAL)")] + public const int KKpOctal = ((int)(ScancodeKpOctal) | (1 << 30)); + + [NativeTypeName("#define SDLK_KP_DECIMAL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_DECIMAL)")] + public const int KKpDecimal = ((int)(ScancodeKpDecimal) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KP_HEXADECIMAL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KP_HEXADECIMAL)" + )] + public const int KKpHexadecimal = ((int)(ScancodeKpHexadecimal) | (1 << 30)); + + [NativeTypeName("#define SDLK_LCTRL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LCTRL)")] + public const int KLctrl = ((int)(ScancodeLctrl) | (1 << 30)); + + [NativeTypeName("#define SDLK_LSHIFT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LSHIFT)")] + public const int KLshift = ((int)(ScancodeLshift) | (1 << 30)); + + [NativeTypeName("#define SDLK_LALT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LALT)")] + public const int KLalt = ((int)(ScancodeLalt) | (1 << 30)); + + [NativeTypeName("#define SDLK_LGUI SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_LGUI)")] + public const int KLgui = ((int)(ScancodeLgui) | (1 << 30)); + + [NativeTypeName("#define SDLK_RCTRL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RCTRL)")] + public const int KRctrl = ((int)(ScancodeRctrl) | (1 << 30)); + + [NativeTypeName("#define SDLK_RSHIFT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RSHIFT)")] + public const int KRshift = ((int)(ScancodeRshift) | (1 << 30)); + + [NativeTypeName("#define SDLK_RALT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RALT)")] + public const int KRalt = ((int)(ScancodeRalt) | (1 << 30)); + + [NativeTypeName("#define SDLK_RGUI SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_RGUI)")] + public const int KRgui = ((int)(ScancodeRgui) | (1 << 30)); + + [NativeTypeName("#define SDLK_MODE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MODE)")] + public const int KMode = ((int)(ScancodeMode) | (1 << 30)); + + [NativeTypeName("#define SDLK_AUDIONEXT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIONEXT)")] + public const int KAudionext = ((int)(ScancodeAudionext) | (1 << 30)); + + [NativeTypeName("#define SDLK_AUDIOPREV SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPREV)")] + public const int KAudioprev = ((int)(ScancodeAudioprev) | (1 << 30)); + + [NativeTypeName("#define SDLK_AUDIOSTOP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOSTOP)")] + public const int KAudiostop = ((int)(ScancodeAudiostop) | (1 << 30)); + + [NativeTypeName("#define SDLK_AUDIOPLAY SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOPLAY)")] + public const int KAudioplay = ((int)(ScancodeAudioplay) | (1 << 30)); + + [NativeTypeName("#define SDLK_AUDIOMUTE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOMUTE)")] + public const int KAudiomute = ((int)(ScancodeAudiomute) | (1 << 30)); + + [NativeTypeName("#define SDLK_MEDIASELECT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MEDIASELECT)")] + public const int KMediaselect = ((int)(ScancodeMediaselect) | (1 << 30)); + + [NativeTypeName("#define SDLK_WWW SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_WWW)")] + public const int KWww = ((int)(ScancodeWww) | (1 << 30)); + + [NativeTypeName("#define SDLK_MAIL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_MAIL)")] + public const int KMail = ((int)(ScancodeMail) | (1 << 30)); + + [NativeTypeName("#define SDLK_CALCULATOR SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALCULATOR)")] + public const int KCalculator = ((int)(ScancodeCalculator) | (1 << 30)); + + [NativeTypeName("#define SDLK_COMPUTER SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_COMPUTER)")] + public const int KComputer = ((int)(ScancodeComputer) | (1 << 30)); + + [NativeTypeName("#define SDLK_AC_SEARCH SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_SEARCH)")] + public const int KAcSearch = ((int)(ScancodeAcSearch) | (1 << 30)); + + [NativeTypeName("#define SDLK_AC_HOME SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_HOME)")] + public const int KAcHome = ((int)(ScancodeAcHome) | (1 << 30)); + + [NativeTypeName("#define SDLK_AC_BACK SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BACK)")] + public const int KAcBack = ((int)(ScancodeAcBack) | (1 << 30)); + + [NativeTypeName("#define SDLK_AC_FORWARD SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_FORWARD)")] + public const int KAcForward = ((int)(ScancodeAcForward) | (1 << 30)); + + [NativeTypeName("#define SDLK_AC_STOP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_STOP)")] + public const int KAcStop = ((int)(ScancodeAcStop) | (1 << 30)); + + [NativeTypeName("#define SDLK_AC_REFRESH SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_REFRESH)")] + public const int KAcRefresh = ((int)(ScancodeAcRefresh) | (1 << 30)); + + [NativeTypeName("#define SDLK_AC_BOOKMARKS SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AC_BOOKMARKS)")] + public const int KAcBookmarks = ((int)(ScancodeAcBookmarks) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_BRIGHTNESSDOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSDOWN)" + )] + public const int KBrightnessdown = ((int)(ScancodeBrightnessdown) | (1 << 30)); + + [NativeTypeName("#define SDLK_BRIGHTNESSUP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_BRIGHTNESSUP)")] + public const int KBrightnessup = ((int)(ScancodeBrightnessup) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_DISPLAYSWITCH SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_DISPLAYSWITCH)" + )] + public const int KDisplayswitch = ((int)(ScancodeDisplayswitch) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_KBDILLUMTOGGLE SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMTOGGLE)" + )] + public const int KKbdillumtoggle = ((int)(ScancodeKbdillumtoggle) | (1 << 30)); + + [NativeTypeName("#define SDLK_KBDILLUMDOWN SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMDOWN)")] + public const int KKbdillumdown = ((int)(ScancodeKbdillumdown) | (1 << 30)); + + [NativeTypeName("#define SDLK_KBDILLUMUP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_KBDILLUMUP)")] + public const int KKbdillumup = ((int)(ScancodeKbdillumup) | (1 << 30)); + + [NativeTypeName("#define SDLK_EJECT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_EJECT)")] + public const int KEject = ((int)(ScancodeEject) | (1 << 30)); + + [NativeTypeName("#define SDLK_SLEEP SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SLEEP)")] + public const int KSleep = ((int)(ScancodeSleep) | (1 << 30)); + + [NativeTypeName("#define SDLK_APP1 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP1)")] + public const int KApp1 = ((int)(ScancodeApp1) | (1 << 30)); + + [NativeTypeName("#define SDLK_APP2 SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP2)")] + public const int KApp2 = ((int)(ScancodeApp2) | (1 << 30)); + + [NativeTypeName("#define SDLK_AUDIOREWIND SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOREWIND)")] + public const int KAudiorewind = ((int)(ScancodeAudiorewind) | (1 << 30)); + + [NativeTypeName( + "#define SDLK_AUDIOFASTFORWARD SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD)" + )] + public const int KAudiofastforward = ((int)(ScancodeAudiofastforward) | (1 << 30)); + + [NativeTypeName("#define SDLK_SOFTLEFT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SOFTLEFT)")] + public const int KSoftleft = ((int)(ScancodeSoftleft) | (1 << 30)); + + [NativeTypeName("#define SDLK_SOFTRIGHT SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SOFTRIGHT)")] + public const int KSoftright = ((int)(ScancodeSoftright) | (1 << 30)); + + [NativeTypeName("#define SDLK_CALL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALL)")] + public const int KCall = ((int)(ScancodeCall) | (1 << 30)); + + [NativeTypeName("#define SDLK_ENDCALL SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ENDCALL)")] + public const int KEndcall = ((int)(ScancodeEndcall) | (1 << 30)); + + [NativeTypeName("#define SDL_BUTTON_LEFT 1")] + public const int ButtonLeft = 1; + + [NativeTypeName("#define SDL_BUTTON_MIDDLE 2")] + public const int ButtonMiddle = 2; + + [NativeTypeName("#define SDL_BUTTON_RIGHT 3")] + public const int ButtonRight = 3; + + [NativeTypeName("#define SDL_BUTTON_X1 4")] + public const int ButtonX1 = 4; + + [NativeTypeName("#define SDL_BUTTON_X2 5")] + public const int ButtonX2 = 5; + + [NativeTypeName("#define SDL_BUTTON_LMASK SDL_BUTTON(SDL_BUTTON_LEFT)")] + public const int ButtonLmask = (1 << ((1) - 1)); + + [NativeTypeName("#define SDL_BUTTON_MMASK SDL_BUTTON(SDL_BUTTON_MIDDLE)")] + public const int ButtonMmask = (1 << ((2) - 1)); + + [NativeTypeName("#define SDL_BUTTON_RMASK SDL_BUTTON(SDL_BUTTON_RIGHT)")] + public const int ButtonRmask = (1 << ((3) - 1)); + + [NativeTypeName("#define SDL_BUTTON_X1MASK SDL_BUTTON(SDL_BUTTON_X1)")] + public const int ButtonX1Mask = (1 << ((4) - 1)); + + [NativeTypeName("#define SDL_BUTTON_X2MASK SDL_BUTTON(SDL_BUTTON_X2)")] + public const int ButtonX2Mask = (1 << ((5) - 1)); + + [NativeTypeName("#define SDL_PEN_INVALID ((SDL_PenID)0)")] + public const uint PenInvalid = ((uint)(0)); + + [NativeTypeName("#define SDL_PEN_MOUSEID ((SDL_MouseID)-2)")] + public const uint PenMouseid = unchecked((uint)(-2)); + + [NativeTypeName("#define SDL_PEN_INFO_UNKNOWN (-1)")] + public const int PenInfoUnknown = (-1); + + [NativeTypeName("#define SDL_PEN_FLAG_DOWN_BIT_INDEX 13")] + public const int PenFlagDownBitIndex = 13; + + [NativeTypeName("#define SDL_PEN_FLAG_INK_BIT_INDEX 14")] + public const int PenFlagInkBitIndex = 14; + + [NativeTypeName("#define SDL_PEN_FLAG_ERASER_BIT_INDEX 15")] + public const int PenFlagEraserBitIndex = 15; + + [NativeTypeName("#define SDL_PEN_FLAG_AXIS_BIT_OFFSET 16")] + public const int PenFlagAxisBitOffset = 16; + + [NativeTypeName("#define SDL_PEN_TIP_INK SDL_PEN_FLAG_INK_BIT_INDEX")] + public const int PenTipInk = 14; + + [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_PEN_ERASER_MASK SDL_PEN_CAPABILITY(SDL_PEN_FLAG_ERASER_BIT_INDEX)" + )] + public const nuint PenEraserMask = (1U << (15)); + + [NativeTypeName( + "#define SDL_PEN_AXIS_PRESSURE_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_PRESSURE)" + )] + public const nuint PenAxisPressureMask = (1U << ((int)(AxisPressure) + 16)); + + [NativeTypeName("#define SDL_PEN_AXIS_XTILT_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_XTILT)")] + public const nuint PenAxisXtiltMask = (1U << ((int)(AxisXtilt) + 16)); + + [NativeTypeName("#define SDL_PEN_AXIS_YTILT_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_YTILT)")] + public const nuint PenAxisYtiltMask = (1U << ((int)(AxisYtilt) + 16)); + + [NativeTypeName( + "#define SDL_PEN_AXIS_DISTANCE_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_DISTANCE)" + )] + public const nuint PenAxisDistanceMask = (1U << ((int)(AxisDistance) + 16)); + + [NativeTypeName( + "#define SDL_PEN_AXIS_ROTATION_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_ROTATION)" + )] + public const nuint PenAxisRotationMask = (1U << ((int)(AxisRotation) + 16)); + + [NativeTypeName( + "#define SDL_PEN_AXIS_SLIDER_MASK SDL_PEN_AXIS_CAPABILITY(SDL_PEN_AXIS_SLIDER)" + )] + public const nuint PenAxisSliderMask = (1U << ((int)(AxisSlider) + 16)); + + [NativeTypeName( + "#define SDL_PEN_AXIS_BIDIRECTIONAL_MASKS (SDL_PEN_AXIS_XTILT_MASK | SDL_PEN_AXIS_YTILT_MASK)" + )] + public const nuint PenAxisBidirectionalMasks = ( + (1U << ((int)(AxisXtilt) + 16)) | (1U << ((int)(AxisYtilt) + 16)) + ); + + [NativeTypeName("#define SDL_TOUCH_MOUSEID ((SDL_MouseID)-1)")] + public const uint TouchMouseid = unchecked((uint)(-1)); + + [NativeTypeName("#define SDL_MOUSE_TOUCHID ((SDL_TouchID)-1)")] + public const ulong MouseTouchid = unchecked((ulong)(-1)); + + [NativeTypeName("#define SDL_RELEASED 0")] + public const int Released = 0; + + [NativeTypeName("#define SDL_PRESSED 1")] + public const int Pressed = 1; + + [NativeTypeName("#define SDL_TEXTEDITINGEVENT_TEXT_SIZE 64")] + public const int TexteditingeventTextSize = 64; + + [NativeTypeName("#define SDL_DROPEVENT_DATA_SIZE 64")] + public const int DropeventDataSize = 64; + + [NativeTypeName("#define SDL_GLOB_CASEINSENSITIVE (1 << 0)")] + public const int GlobCaseinsensitive = (1 << 0); + + [NativeTypeName("#define SDL_HAPTIC_CONSTANT (1u<<0)")] + public const uint HapticConstant = (1U << 0); + + [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_TRIANGLE (1u<<3)")] + public const uint HapticTriangle = (1U << 3); + + [NativeTypeName("#define SDL_HAPTIC_SAWTOOTHUP (1u<<4)")] + public const uint HapticSawtoothup = (1U << 4); + + [NativeTypeName("#define SDL_HAPTIC_SAWTOOTHDOWN (1u<<5)")] + public const uint HapticSawtoothdown = (1U << 5); + + [NativeTypeName("#define SDL_HAPTIC_RAMP (1u<<6)")] + public const uint HapticRamp = (1U << 6); + + [NativeTypeName("#define SDL_HAPTIC_SPRING (1u<<7)")] + public const uint HapticSpring = (1U << 7); + + [NativeTypeName("#define SDL_HAPTIC_DAMPER (1u<<8)")] + public const uint HapticDamper = (1U << 8); + + [NativeTypeName("#define SDL_HAPTIC_INERTIA (1u<<9)")] + public const uint HapticInertia = (1U << 9); + + [NativeTypeName("#define SDL_HAPTIC_FRICTION (1u<<10)")] + public const uint HapticFriction = (1U << 10); + + [NativeTypeName("#define SDL_HAPTIC_LEFTRIGHT (1u<<11)")] + public const uint HapticLeftright = (1U << 11); + + [NativeTypeName("#define SDL_HAPTIC_RESERVED1 (1u<<12)")] + public const uint HapticReserved1 = (1U << 12); + + [NativeTypeName("#define SDL_HAPTIC_RESERVED2 (1u<<13)")] + public const uint HapticReserved2 = (1U << 13); + + [NativeTypeName("#define SDL_HAPTIC_RESERVED3 (1u<<14)")] + public const uint HapticReserved3 = (1U << 14); + + [NativeTypeName("#define SDL_HAPTIC_CUSTOM (1u<<15)")] + public const uint HapticCustom = (1U << 15); + + [NativeTypeName("#define SDL_HAPTIC_GAIN (1u<<16)")] + public const uint HapticGain = (1U << 16); + + [NativeTypeName("#define SDL_HAPTIC_AUTOCENTER (1u<<17)")] + public const uint HapticAutocenter = (1U << 17); + + [NativeTypeName("#define SDL_HAPTIC_STATUS (1u<<18)")] + public const uint HapticStatus = (1U << 18); + + [NativeTypeName("#define SDL_HAPTIC_PAUSE (1u<<19)")] + public const uint HapticPause = (1U << 19); + + [NativeTypeName("#define SDL_HAPTIC_POLAR 0")] + public const int HapticPolar = 0; + + [NativeTypeName("#define SDL_HAPTIC_CARTESIAN 1")] + public const int HapticCartesian = 1; + + [NativeTypeName("#define SDL_HAPTIC_SPHERICAL 2")] + public const int HapticSpherical = 2; + + [NativeTypeName("#define SDL_HAPTIC_STEERING_AXIS 3")] + public const int HapticSteeringAxis = 3; + + [NativeTypeName("#define SDL_HAPTIC_INFINITY 4294967295U")] + public const uint HapticInfinity = 4294967295U; + + [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; + + [NativeTypeName( + "#define SDL_HINT_ANDROID_ALLOW_RECREATE_ACTIVITY \"SDL_ANDROID_ALLOW_RECREATE_ACTIVITY\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO \"SDL_ANDROID_BLOCK_ON_PAUSE_PAUSEAUDIO\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_APP_ID \"SDL_APP_ID\"")] + public static ReadOnlySpan HintAppId => "SDL_APP_ID"u8; + + [NativeTypeName("#define SDL_HINT_APP_NAME \"SDL_APP_NAME\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION \"SDL_APPLE_TV_REMOTE_ALLOW_ROTATION\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_AUDIO_DEVICE_APP_NAME \"SDL_AUDIO_DEVICE_APP_NAME\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_AUDIO_DEVICE_STREAM_NAME \"SDL_AUDIO_DEVICE_STREAM_NAME\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_AUDIO_DRIVER \"SDL_AUDIO_DRIVER\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_AUTO_UPDATE_JOYSTICKS \"SDL_AUTO_UPDATE_JOYSTICKS\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_BMP_SAVE_LEGACY_FORMAT \"SDL_BMP_SAVE_LEGACY_FORMAT\"")] + public static ReadOnlySpan HintBmpSaveLegacyFormat => "SDL_BMP_SAVE_LEGACY_FORMAT"u8; + + [NativeTypeName("#define SDL_HINT_CAMERA_DRIVER \"SDL_CAMERA_DRIVER\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_DIRECTINPUT \"SDL_JOYSTICK_DIRECTINPUT\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_DISPLAY_USABLE_BOUNDS \"SDL_DISPLAY_USABLE_BOUNDS\"")] + public static ReadOnlySpan HintDisplayUsableBounds => "SDL_DISPLAY_USABLE_BOUNDS"u8; + + [NativeTypeName("#define SDL_HINT_EMSCRIPTEN_ASYNCIFY \"SDL_EMSCRIPTEN_ASYNCIFY\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT \"SDL_EMSCRIPTEN_KEYBOARD_ELEMENT\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_EVENT_LOGGING \"SDL_EVENT_LOGGING\"")] + public static ReadOnlySpan HintEventLogging => "SDL_EVENT_LOGGING"u8; + + [NativeTypeName("#define SDL_HINT_FORCE_RAISEWINDOW \"SDL_FORCE_RAISEWINDOW\"")] + public static ReadOnlySpan HintForceRaisewindow => "SDL_FORCE_RAISEWINDOW"u8; + + [NativeTypeName("#define SDL_HINT_FRAMEBUFFER_ACCELERATION \"SDL_FRAMEBUFFER_ACCELERATION\"")] + public static ReadOnlySpan HintFramebufferAcceleration => + "SDL_FRAMEBUFFER_ACCELERATION"u8; + + [NativeTypeName("#define SDL_HINT_GAMECONTROLLERCONFIG \"SDL_GAMECONTROLLERCONFIG\"")] + public static ReadOnlySpan HintGamecontrollerconfig => "SDL_GAMECONTROLLERCONFIG"u8; + + [NativeTypeName("#define SDL_HINT_GAMECONTROLLERCONFIG_FILE \"SDL_GAMECONTROLLERCONFIG_FILE\"")] + public static ReadOnlySpan HintGamecontrollerconfigFile => + "SDL_GAMECONTROLLERCONFIG_FILE"u8; + + [NativeTypeName("#define SDL_HINT_GAMECONTROLLERTYPE \"SDL_GAMECONTROLLERTYPE\"")] + public static ReadOnlySpan HintGamecontrollertype => "SDL_GAMECONTROLLERTYPE"u8; + + [NativeTypeName( + "#define SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES \"SDL_GAMECONTROLLER_IGNORE_DEVICES\"" + )] + public static ReadOnlySpan HintGamecontrollerIgnoreDevices => + "SDL_GAMECONTROLLER_IGNORE_DEVICES"u8; + + [NativeTypeName( + "#define SDL_HINT_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT \"SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_GDK_TEXTINPUT_DEFAULT_TEXT \"SDL_GDK_TEXTINPUT_DEFAULT_TEXT\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_GDK_TEXTINPUT_MAX_LENGTH \"SDL_GDK_TEXTINPUT_MAX_LENGTH\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_GDK_TEXTINPUT_TITLE \"SDL_GDK_TEXTINPUT_TITLE\"")] + public static ReadOnlySpan HintGdkTextinputTitle => "SDL_GDK_TEXTINPUT_TITLE"u8; + + [NativeTypeName( + "#define SDL_HINT_HIDAPI_ENUMERATE_ONLY_CONTROLLERS \"SDL_HIDAPI_ENUMERATE_ONLY_CONTROLLERS\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_IME_INTERNAL_EDITING \"SDL_IME_INTERNAL_EDITING\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_IOS_HIDE_HOME_INDICATOR \"SDL_IOS_HIDE_HOME_INDICATOR\"")] + public static ReadOnlySpan HintIosHideHomeIndicator => "SDL_IOS_HIDE_HOME_INDICATOR"u8; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS \"SDL_JOYSTICK_ALLOW_BACKGROUND_EVENTS\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED \"SDL_JOYSTICK_ARCADESTICK_DEVICES_EXCLUDED\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED \"SDL_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED\"" + )] + public static ReadOnlySpan HintJoystickBlacklistDevicesExcluded => + "SDL_JOYSTICK_BLACKLIST_DEVICES_EXCLUDED"u8; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_DEVICE \"SDL_JOYSTICK_DEVICE\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_FLIGHTSTICK_DEVICES_EXCLUDED \"SDL_JOYSTICK_FLIGHTSTICK_DEVICES_EXCLUDED\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED \"SDL_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED\"" + )] + public static ReadOnlySpan HintJoystickGamecubeDevicesExcluded => + "SDL_JOYSTICK_GAMECUBE_DEVICES_EXCLUDED"u8; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI \"SDL_JOYSTICK_HIDAPI\"")] + public static ReadOnlySpan HintJoystickHidapi => "SDL_JOYSTICK_HIDAPI"u8; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS \"SDL_JOYSTICK_HIDAPI_COMBINE_JOY_CONS\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_GAMECUBE_RUMBLE_BRAKE \"SDL_JOYSTICK_HIDAPI_GAMECUBE_RUMBLE_BRAKE\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED \"SDL_JOYSTICK_HIDAPI_JOYCON_HOME_LED\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC \"SDL_JOYSTICK_HIDAPI_NINTENDO_CLASSIC\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER \"SDL_JOYSTICK_HIDAPI_PS3_SIXAXIS_DRIVER\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE \"SDL_JOYSTICK_HIDAPI_PS4_RUMBLE\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_PS5_PLAYER_LED \"SDL_JOYSTICK_HIDAPI_PS5_PLAYER_LED\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_SHIELD \"SDL_JOYSTICK_HIDAPI_SHIELD\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_STEAM \"SDL_JOYSTICK_HIDAPI_STEAM\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH \"SDL_JOYSTICK_HIDAPI_SWITCH\"")] + public static ReadOnlySpan 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 => + "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 => + "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 => + "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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED \"SDL_JOYSTICK_HIDAPI_WII_PLAYER_LED\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 \"SDL_JOYSTICK_HIDAPI_XBOX_360\"")] + public static ReadOnlySpan 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 => + "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 => + "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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED \"SDL_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_LINUX_CLASSIC \"SDL_JOYSTICK_LINUX_CLASSIC\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_LINUX_DIGITAL_HATS \"SDL_JOYSTICK_LINUX_DIGITAL_HATS\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_MFI \"SDL_JOYSTICK_MFI\"")] + public static ReadOnlySpan HintJoystickMfi => "SDL_JOYSTICK_MFI"u8; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_RAWINPUT \"SDL_JOYSTICK_RAWINPUT\"")] + public static ReadOnlySpan HintJoystickRawinput => "SDL_JOYSTICK_RAWINPUT"u8; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT \"SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_THREAD \"SDL_JOYSTICK_THREAD\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_THROTTLE_DEVICES_EXCLUDED \"SDL_JOYSTICK_THROTTLE_DEVICES_EXCLUDED\"" + )] + public static ReadOnlySpan HintJoystickThrottleDevicesExcluded => + "SDL_JOYSTICK_THROTTLE_DEVICES_EXCLUDED"u8; + + [NativeTypeName("#define SDL_HINT_JOYSTICK_WGI \"SDL_JOYSTICK_WGI\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_WHEEL_DEVICES_EXCLUDED \"SDL_JOYSTICK_WHEEL_DEVICES_EXCLUDED\"" + )] + public static ReadOnlySpan HintJoystickWheelDevicesExcluded => + "SDL_JOYSTICK_WHEEL_DEVICES_EXCLUDED"u8; + + [NativeTypeName( + "#define SDL_HINT_JOYSTICK_ZERO_CENTERED_DEVICES \"SDL_JOYSTICK_ZERO_CENTERED_DEVICES\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_KMSDRM_REQUIRE_DRM_MASTER \"SDL_KMSDRM_REQUIRE_DRM_MASTER\"")] + public static ReadOnlySpan HintKmsdrmRequireDrmMaster => + "SDL_KMSDRM_REQUIRE_DRM_MASTER"u8; + + [NativeTypeName("#define SDL_HINT_LOGGING \"SDL_LOGGING\"")] + public static ReadOnlySpan HintLogging => "SDL_LOGGING"u8; + + [NativeTypeName("#define SDL_HINT_MAC_BACKGROUND_APP \"SDL_MAC_BACKGROUND_APP\"")] + public static ReadOnlySpan 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 => + "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; + + [NativeTypeName("#define SDL_HINT_MAIN_CALLBACK_RATE \"SDL_MAIN_CALLBACK_RATE\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS \"SDL_MOUSE_DOUBLE_CLICK_RADIUS\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH \"SDL_MOUSE_FOCUS_CLICKTHROUGH\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_MOUSE_RELATIVE_MODE_CENTER \"SDL_MOUSE_RELATIVE_MODE_CENTER\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE \"SDL_MOUSE_RELATIVE_SPEED_SCALE\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_MOUSE_RELATIVE_WARP_MOTION \"SDL_MOUSE_RELATIVE_WARP_MOTION\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_NO_SIGNAL_HANDLERS \"SDL_NO_SIGNAL_HANDLERS\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_ORIENTATIONS \"SDL_IOS_ORIENTATIONS\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_PEN_NOT_MOUSE \"SDL_PEN_NOT_MOUSE\"")] + public static ReadOnlySpan HintPenNotMouse => "SDL_PEN_NOT_MOUSE"u8; + + [NativeTypeName("#define SDL_HINT_POLL_SENTINEL \"SDL_POLL_SENTINEL\"")] + public static ReadOnlySpan HintPollSentinel => "SDL_POLL_SENTINEL"u8; + + [NativeTypeName("#define SDL_HINT_PREFERRED_LOCALES \"SDL_PREFERRED_LOCALES\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_RENDER_DIRECT3D_THREADSAFE \"SDL_RENDER_DIRECT3D_THREADSAFE\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_RENDER_VULKAN_DEBUG \"SDL_RENDER_VULKAN_DEBUG\"")] + public static ReadOnlySpan HintRenderVulkanDebug => "SDL_RENDER_VULKAN_DEBUG"u8; + + [NativeTypeName("#define SDL_HINT_RENDER_DRIVER \"SDL_RENDER_DRIVER\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_RENDER_METAL_PREFER_LOW_POWER_DEVICE \"SDL_RENDER_METAL_PREFER_LOW_POWER_DEVICE\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_RENDER_VSYNC \"SDL_RENDER_VSYNC\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_ROG_GAMEPAD_MICE \"SDL_ROG_GAMEPAD_MICE\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_RPI_VIDEO_LAYER \"SDL_RPI_VIDEO_LAYER\"")] + public static ReadOnlySpan HintRpiVideoLayer => "SDL_RPI_VIDEO_LAYER"u8; + + [NativeTypeName( + "#define SDL_HINT_SCREENSAVER_INHIBIT_ACTIVITY_NAME \"SDL_SCREENSAVER_INHIBIT_ACTIVITY_NAME\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_STORAGE_TITLE_DRIVER \"SDL_STORAGE_TITLE_DRIVER\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_THREAD_FORCE_REALTIME_TIME_CRITICAL \"SDL_THREAD_FORCE_REALTIME_TIME_CRITICAL\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_TIMER_RESOLUTION \"SDL_TIMER_RESOLUTION\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_TRACKPAD_IS_TOUCH_ONLY \"SDL_TRACKPAD_IS_TOUCH_ONLY\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_VIDEO_ALLOW_SCREENSAVER \"SDL_VIDEO_ALLOW_SCREENSAVER\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_VIDEO_DRIVER \"SDL_VIDEO_DRIVER\"")] + public static ReadOnlySpan HintVideoDriver => "SDL_VIDEO_DRIVER"u8; + + [NativeTypeName( + "#define SDL_HINT_VIDEO_EGL_ALLOW_GETDISPLAY_FALLBACK \"SDL_VIDEO_EGL_GETDISPLAY_FALLBACK\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES \"SDL_VIDEO_MAC_FULLSCREEN_SPACES\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_VIDEO_SYNC_WINDOW_OPERATIONS \"SDL_VIDEO_SYNC_WINDOW_OPERATIONS\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP \"SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_VIDEO_WAYLAND_MODE_SCALING \"SDL_VIDEO_WAYLAND_MODE_SCALING\"" + )] + public static ReadOnlySpan HintVideoWaylandModeScaling => + "SDL_VIDEO_WAYLAND_MODE_SCALING"u8; + + [NativeTypeName( + "#define SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR \"SDL_VIDEO_WAYLAND_PREFER_LIBDECOR\"" + )] + public static ReadOnlySpan 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 => + "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; + + [NativeTypeName( + "#define SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR \"SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_VIDEO_X11_SCALING_FACTOR \"SDL_VIDEO_X11_SCALING_FACTOR\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_VIDEO_X11_XRANDR \"SDL_VIDEO_X11_XRANDR\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_WAVE_FACT_CHUNK \"SDL_WAVE_FACT_CHUNK\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_WAVE_TRUNCATION \"SDL_WAVE_TRUNCATION\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_WINDOW_ACTIVATE_WHEN_SHOWN \"SDL_WINDOW_ACTIVATE_WHEN_SHOWN\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN \"SDL_WINDOW_FRAME_USABLE_WHILE_CURSOR_HIDDEN\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS \"SDL_WINDOWS_ENABLE_MENU_MNEMONICS\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_WINDOWS_RAW_KEYBOARD \"SDL_WINDOWS_RAW_KEYBOARD\"")] + public static ReadOnlySpan 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 => + "SDL_WINDOWS_FORCE_MUTEX_CRITICAL_SECTIONS"u8; + + [NativeTypeName( + "#define SDL_HINT_WINDOWS_FORCE_SEMAPHORE_KERNEL \"SDL_WINDOWS_FORCE_SEMAPHORE_KERNEL\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL \"SDL_WINDOWS_INTRESOURCE_ICON_SMALL\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_WINRT_HANDLE_BACK_BUTTON \"SDL_WINRT_HANDLE_BACK_BUTTON\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_WINRT_PRIVACY_POLICY_URL \"SDL_WINRT_PRIVACY_POLICY_URL\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_HINT_X11_WINDOW_TYPE \"SDL_X11_WINDOW_TYPE\"")] + public static ReadOnlySpan HintX11WindowType => "SDL_X11_WINDOW_TYPE"u8; + + [NativeTypeName("#define SDL_HINT_XINPUT_ENABLED \"SDL_XINPUT_ENABLED\"")] + public static ReadOnlySpan HintXinputEnabled => "SDL_XINPUT_ENABLED"u8; + + [NativeTypeName("#define SDL_SOFTWARE_RENDERER \"software\"")] + public static ReadOnlySpan SoftwareRenderer => "software"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_NAME_STRING \"name\"")] + public static ReadOnlySpan PropRendererCreateNameString => "name"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_WINDOW_POINTER \"window\"")] + public static ReadOnlySpan PropRendererCreateWindowPointer => "window"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_SURFACE_POINTER \"surface\"")] + public static ReadOnlySpan PropRendererCreateSurfacePointer => "surface"u8; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_CREATE_OUTPUT_COLORSPACE_NUMBER \"output_colorspace\"" + )] + public static ReadOnlySpan PropRendererCreateOutputColorspaceNumber => + "output_colorspace"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_PRESENT_VSYNC_BOOLEAN \"present_vsync\"")] + public static ReadOnlySpan PropRendererCreatePresentVsyncBoolean => "present_vsync"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_INSTANCE_POINTER \"vulkan.instance\"")] + public static ReadOnlySpan PropRendererCreateVulkanInstancePointer => "vulkan.instance"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_SURFACE_NUMBER \"vulkan.surface\"")] + public static ReadOnlySpan PropRendererCreateVulkanSurfaceNumber => "vulkan.surface"u8; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_CREATE_VULKAN_PHYSICAL_DEVICE_POINTER \"vulkan.physical_device\"" + )] + public static ReadOnlySpan PropRendererCreateVulkanPhysicalDevicePointer => + "vulkan.physical_device"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_CREATE_VULKAN_DEVICE_POINTER \"vulkan.device\"")] + public static ReadOnlySpan 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 => + "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 => + "vulkan.present_queue_family_index"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_NAME_STRING \"SDL.renderer.name\"")] + public static ReadOnlySpan PropRendererNameString => "SDL.renderer.name"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_WINDOW_POINTER \"SDL.renderer.window\"")] + public static ReadOnlySpan PropRendererWindowPointer => "SDL.renderer.window"u8; + + [NativeTypeName("#define SDL_PROP_RENDERER_SURFACE_POINTER \"SDL.renderer.surface\"")] + public static ReadOnlySpan PropRendererSurfacePointer => "SDL.renderer.surface"u8; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_OUTPUT_COLORSPACE_NUMBER \"SDL.renderer.output_colorspace\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_SDR_WHITE_POINT_FLOAT \"SDL.renderer.SDR_white_point\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_RENDERER_D3D9_DEVICE_POINTER \"SDL.renderer.d3d9.device\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_RENDERER_D3D12_DEVICE_POINTER \"SDL.renderer.d3d12.device\"")] + public static ReadOnlySpan PropRendererD3D12DevicePointer => + "SDL.renderer.d3d12.device"u8; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_D3D12_COMMAND_QUEUE_POINTER \"SDL.renderer.d3d12.command_queue\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_VULKAN_SURFACE_NUMBER \"SDL.renderer.vulkan.surface\"" + )] + public static ReadOnlySpan PropRendererVulkanSurfaceNumber => + "SDL.renderer.vulkan.surface"u8; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_VULKAN_PHYSICAL_DEVICE_POINTER \"SDL.renderer.vulkan.physical_device\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_RENDERER_VULKAN_GRAPHICS_QUEUE_FAMILY_INDEX_NUMBER \"SDL.renderer.vulkan.graphics_queue_family_index\"" + )] + public static ReadOnlySpan 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 => + "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 => + "SDL.renderer.vulkan.swapchain_image_count"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_COLORSPACE_NUMBER \"colorspace\"")] + public static ReadOnlySpan PropTextureCreateColorspaceNumber => "colorspace"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_FORMAT_NUMBER \"format\"")] + public static ReadOnlySpan PropTextureCreateFormatNumber => "format"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_ACCESS_NUMBER \"access\"")] + public static ReadOnlySpan PropTextureCreateAccessNumber => "access"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_WIDTH_NUMBER \"width\"")] + public static ReadOnlySpan PropTextureCreateWidthNumber => "width"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_HEIGHT_NUMBER \"height\"")] + public static ReadOnlySpan PropTextureCreateHeightNumber => "height"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_SDR_WHITE_POINT_FLOAT \"SDR_white_point\"")] + public static ReadOnlySpan PropTextureCreateSdrWhitePointFloat => "SDR_white_point"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_HDR_HEADROOM_FLOAT \"HDR_headroom\"")] + public static ReadOnlySpan PropTextureCreateHdrHeadroomFloat => "HDR_headroom"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_POINTER \"d3d11.texture\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D11_TEXTURE_V_POINTER \"d3d11.texture_v\"")] + public static ReadOnlySpan PropTextureCreateD3D11TextureVPointer => "d3d11.texture_v"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_POINTER \"d3d12.texture\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_D3D12_TEXTURE_V_POINTER \"d3d12.texture_v\"")] + public static ReadOnlySpan PropTextureCreateD3D12TextureVPointer => "d3d12.texture_v"u8; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_METAL_PIXELBUFFER_POINTER \"metal.pixelbuffer\"" + )] + public static ReadOnlySpan PropTextureCreateMetalPixelbufferPointer => + "metal.pixelbuffer"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_NUMBER \"opengl.texture\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_OPENGL_TEXTURE_U_NUMBER \"opengl.texture_u\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_NUMBER \"opengles2.texture\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_U_NUMBER \"opengles2.texture_u\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_TEXTURE_CREATE_VULKAN_TEXTURE_NUMBER \"vulkan.texture\"")] + public static ReadOnlySpan PropTextureCreateVulkanTextureNumber => "vulkan.texture"u8; + + [NativeTypeName("#define SDL_PROP_TEXTURE_COLORSPACE_NUMBER \"SDL.texture.colorspace\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_TEXTURE_HDR_HEADROOM_FLOAT \"SDL.texture.HDR_headroom\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_D3D11_TEXTURE_U_POINTER \"SDL.texture.d3d11.texture_u\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_TEXTURE_D3D12_TEXTURE_POINTER \"SDL.texture.d3d12.texture\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_D3D12_TEXTURE_V_POINTER \"SDL.texture.d3d12.texture_v\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_OPENGL_TEXTURE_UV_NUMBER \"SDL.texture.opengl.texture_uv\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_OPENGL_TEXTURE_V_NUMBER \"SDL.texture.opengl.texture_v\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_TEXTURE_OPENGL_TEX_W_FLOAT \"SDL.texture.opengl.tex_w\"")] + public static ReadOnlySpan 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; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_NUMBER \"SDL.texture.opengles2.texture\"" + )] + public static ReadOnlySpan PropTextureOpengles2TextureNumber => + "SDL.texture.opengles2.texture"u8; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_UV_NUMBER \"SDL.texture.opengles2.texture_uv\"" + )] + public static ReadOnlySpan 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 => + "SDL.texture.opengles2.texture_u"u8; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_V_NUMBER \"SDL.texture.opengles2.texture_v\"" + )] + public static ReadOnlySpan PropTextureOpengles2TextureVNumber => + "SDL.texture.opengles2.texture_v"u8; + + [NativeTypeName( + "#define SDL_PROP_TEXTURE_OPENGLES2_TEXTURE_TARGET_NUMBER \"SDL.texture.opengles2.target\"" + )] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_PROP_GLOBAL_SYSTEM_DATE_FORMAT_NUMBER \"SDL.time.date_format\"")] + public static ReadOnlySpan 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; + + [NativeTypeName("#define SDL_MS_PER_SECOND 1000")] + public const int MsPerSecond = 1000; + + [NativeTypeName("#define SDL_US_PER_SECOND 1000000")] + public const int UsPerSecond = 1000000; + + [NativeTypeName("#define SDL_NS_PER_SECOND 1000000000LL")] + public const long NsPerSecond = 1000000000L; + + [NativeTypeName("#define SDL_NS_PER_MS 1000000")] + public const int NsPerMs = 1000000; + + [NativeTypeName("#define SDL_NS_PER_US 1000")] + public const int NsPerUs = 1000; + + [NativeTypeName("#define SDL_MAJOR_VERSION 3")] + public const int MajorVersion = 3; + + [NativeTypeName("#define SDL_MINOR_VERSION 1")] + public const int MinorVersion = 1; + + [NativeTypeName("#define SDL_PATCHLEVEL 2")] + public const int Patchlevel = 2; + + [NativeTypeName( + "#define SDL_COMPILEDVERSION SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)" + )] + public const int Compiledversion = ((3) << 24 | (1) << 8 | (2) << 0); + + [return: NativeTypeName("SDL_bool")] + public static int PointInRect( + [NativeTypeName("const SDL_Point *")] Point* p, + [NativeTypeName("const SDL_Rect *")] Rect* r + ) + { + return ( + (p) != null + && (r) != null + && (p->X >= r->X) + && (p->X < (r->X + r->W)) + && (p->Y >= r->Y) + && (p->Y < (r->Y + r->H)) + ) + ? 1 + : 0; + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool PointInRect( + [NativeTypeName("const SDL_Point *")] Ref p, + [NativeTypeName("const SDL_Rect *")] Ref r + ) + { + fixed (Rect* __dsl_r = r) + fixed (Point* __dsl_p = p) + { + return (MaybeBool)(int)PointInRect(__dsl_p, __dsl_r); + } + } + + [return: NativeTypeName("SDL_bool")] + public static int PointInRectFloat( + [NativeTypeName("const SDL_FPoint *")] FPoint* p, + [NativeTypeName("const SDL_FRect *")] FRect* r + ) + { + return ( + (p) != null + && (r) != null + && (p->X >= r->X) + && (p->X < (r->X + r->W)) + && (p->Y >= r->Y) + && (p->Y < (r->Y + r->H)) + ) + ? 1 + : 0; + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool PointInRectFloat( + [NativeTypeName("const SDL_FPoint *")] Ref p, + [NativeTypeName("const SDL_FRect *")] Ref r + ) + { + fixed (FRect* __dsl_r = r) + fixed (FPoint* __dsl_p = p) + { + return (MaybeBool)(int)PointInRectFloat(__dsl_p, __dsl_r); + } + } + + [return: NativeTypeName("SDL_bool")] + public static int RectEmpty([NativeTypeName("const SDL_Rect *")] Rect* r) + { + return ((r == null) || (r->W <= 0) || (r->H <= 0)) ? 1 : 0; + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RectEmpty([NativeTypeName("const SDL_Rect *")] Ref r) + { + fixed (Rect* __dsl_r = r) + { + return (MaybeBool)(int)RectEmpty(__dsl_r); + } + } + + [return: NativeTypeName("SDL_bool")] + public static int RectEmptyFloat([NativeTypeName("const SDL_FRect *")] FRect* r) + { + return ((r == null) || (r->W <= 0.0f) || (r->H <= 0.0f)) ? 1 : 0; + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RectEmptyFloat([NativeTypeName("const SDL_FRect *")] Ref r) + { + fixed (FRect* __dsl_r = r) + { + return (MaybeBool)(int)RectEmptyFloat(__dsl_r); + } + } + + [return: NativeTypeName("SDL_bool")] + public static int RectsEqual( + [NativeTypeName("const SDL_Rect *")] Rect* a, + [NativeTypeName("const SDL_Rect *")] Rect* b + ) + { + return ( + (a) != null + && (b) != null + && (a->X == b->X) + && (a->Y == b->Y) + && (a->W == b->W) + && (a->H == b->H) + ) + ? 1 + : 0; + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RectsEqual( + [NativeTypeName("const SDL_Rect *")] Ref a, + [NativeTypeName("const SDL_Rect *")] Ref b + ) + { + fixed (Rect* __dsl_b = b) + fixed (Rect* __dsl_a = a) + { + return (MaybeBool)(int)RectsEqual(__dsl_a, __dsl_b); + } + } + + [return: NativeTypeName("SDL_bool")] + public static int RectsEqualEpsilon( + [NativeTypeName("const SDL_FRect *")] FRect* a, + [NativeTypeName("const SDL_FRect *")] FRect* b, + [NativeTypeName("const float")] float epsilon + ) + { + return ( + (a) != null + && (b) != null + && ( + (a == b) + || ( + (float.Abs(a->X - b->X) <= epsilon) + && (float.Abs(a->Y - b->Y) <= epsilon) + && (float.Abs(a->W - b->W) <= epsilon) + && (float.Abs(a->H - b->H) <= epsilon) + ) + ) + ) + ? 1 + : 0; + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RectsEqualEpsilon( + [NativeTypeName("const SDL_FRect *")] Ref a, + [NativeTypeName("const SDL_FRect *")] Ref b, + [NativeTypeName("const float")] float epsilon + ) + { + fixed (FRect* __dsl_b = b) + fixed (FRect* __dsl_a = a) + { + return (MaybeBool)(int)RectsEqualEpsilon(__dsl_a, __dsl_b, epsilon); + } + } + + [return: NativeTypeName("SDL_bool")] + public static int RectsEqualFloat( + [NativeTypeName("const SDL_FRect *")] FRect* a, + [NativeTypeName("const SDL_FRect *")] FRect* b + ) + { + return RectsEqualEpsilon(a, b, 1.1920928955078125e-07F); + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RectsEqualFloat( + [NativeTypeName("const SDL_FRect *")] Ref a, + [NativeTypeName("const SDL_FRect *")] Ref b + ) + { + fixed (FRect* __dsl_b = b) + fixed (FRect* __dsl_a = a) + { + return (MaybeBool)(int)RectsEqualFloat(__dsl_a, __dsl_b); + } + } + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.AcquireCameraFrame( + SDL_Camera* camera, + [NativeTypeName("Uint64 *")] ulong* timestampNS + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AcquireCameraFrame", "SDL3") + )(camera, timestampNS); + + [NativeFunction("SDL3", EntryPoint = "AcquireCameraFrame")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* AcquireCameraFrame( + SDL_Camera* camera, + [NativeTypeName("Uint64 *")] ulong* timestampNS + ) => DllImport.AcquireCameraFrame(camera, timestampNS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.AcquireCameraFrame( + Ref camera, + [NativeTypeName("Uint64 *")] Ref timestampNS + ) + { + fixed (ulong* __dsl_timestampNS = timestampNS) + fixed (SDL_Camera* __dsl_camera = camera) + { + return (Surface*)((ISdl)this).AcquireCameraFrame(__dsl_camera, __dsl_timestampNS); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AcquireCameraFrame")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr AcquireCameraFrame( + Ref camera, + [NativeTypeName("Uint64 *")] Ref timestampNS + ) => DllImport.AcquireCameraFrame(camera, timestampNS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => + ( + (delegate* unmanaged, void*, int>) + nativeContext.LoadFunction("AddEventWatch", "SDL3") + )(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "AddEventWatch")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => DllImport.AddEventWatch(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (int)((ISdl)this).AddEventWatch(filter, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddEventWatch")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) => DllImport.AddEventWatch(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping) => + ((delegate* unmanaged)nativeContext.LoadFunction("AddGamepadMapping", "SDL3"))( + mapping + ); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMapping")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddGamepadMapping([NativeTypeName("const char *")] sbyte* mapping) => + DllImport.AddGamepadMapping(mapping); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddGamepadMapping([NativeTypeName("const char *")] Ref mapping) + { + fixed (sbyte* __dsl_mapping = mapping) + { + return (int)((ISdl)this).AddGamepadMapping(__dsl_mapping); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMapping")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddGamepadMapping([NativeTypeName("const char *")] Ref mapping) => + DllImport.AddGamepadMapping(mapping); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddGamepadMappingsFromFile([NativeTypeName("const char *")] sbyte* file) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AddGamepadMappingsFromFile", "SDL3") + )(file); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddGamepadMappingsFromFile([NativeTypeName("const char *")] sbyte* file) => + DllImport.AddGamepadMappingsFromFile(file); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddGamepadMappingsFromFile([NativeTypeName("const char *")] Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (int)((ISdl)this).AddGamepadMappingsFromFile(__dsl_file); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddGamepadMappingsFromFile( + [NativeTypeName("const char *")] Ref file + ) => DllImport.AddGamepadMappingsFromFile(file); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddGamepadMappingsFromIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AddGamepadMappingsFromIO", "SDL3") + )(src, closeio); + + [NativeFunction("SDL3", EntryPoint = "AddGamepadMappingsFromIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddGamepadMappingsFromIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio + ) => DllImport.AddGamepadMappingsFromIO(src, closeio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddGamepadMappingsFromIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (SDL_IOStream* __dsl_src = src) + { + return (int)((ISdl)this).AddGamepadMappingsFromIO(__dsl_src, (int)closeio); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddGamepadMappingsFromIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddGamepadMappingsFromIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) => DllImport.AddGamepadMappingsFromIO(src, closeio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged< + sbyte*, + delegate* unmanaged, + void*, + int>) + nativeContext.LoadFunction("AddHintCallback", "SDL3") + )(name, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "AddHintCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.AddHintCallback(name, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_name = name) + { + return (int)((ISdl)this).AddHintCallback(__dsl_name, callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddHintCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.AddHintCallback(name, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + void* param2 + ) => + ( + (delegate* unmanaged, void*, uint>) + nativeContext.LoadFunction("AddTimer", "SDL3") + )(interval, callback, param2); + + [return: NativeTypeName("SDL_TimerID")] + [NativeFunction("SDL3", EntryPoint = "AddTimer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + void* param2 + ) => DllImport.AddTimer(interval, callback, param2); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + Ref param2 + ) + { + fixed (void* __dsl_param2 = param2) + { + return (uint)((ISdl)this).AddTimer(interval, callback, __dsl_param2); + } + } + + [return: NativeTypeName("SDL_TimerID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddTimer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint AddTimer( + [NativeTypeName("Uint32")] uint interval, + [NativeTypeName("SDL_TimerCallback")] delegate* unmanaged callback, + Ref param2 + ) => DllImport.AddTimer(interval, callback, param2); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddVulkanRenderSemaphores( + SDL_Renderer* renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AddVulkanRenderSemaphores", "SDL3") + )(renderer, wait_stage_mask, wait_semaphore, signal_semaphore); + + [NativeFunction("SDL3", EntryPoint = "AddVulkanRenderSemaphores")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddVulkanRenderSemaphores( + SDL_Renderer* renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + DllImport.AddVulkanRenderSemaphores( + renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AddVulkanRenderSemaphores( + Ref renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).AddVulkanRenderSemaphores( + __dsl_renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AddVulkanRenderSemaphores")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AddVulkanRenderSemaphores( + Ref renderer, + [NativeTypeName("Uint32")] uint wait_stage_mask, + [NativeTypeName("Sint64")] long wait_semaphore, + [NativeTypeName("Sint64")] long signal_semaphore + ) => + DllImport.AddVulkanRenderSemaphores( + renderer, + wait_stage_mask, + wait_semaphore, + signal_semaphore + ); + + [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) + 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) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AtomicAdd", "SDL3") + )(a, v); + + [NativeFunction("SDL3", EntryPoint = "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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicAdd")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AtomicAdd(Ref a, int v) => DllImport.AtomicAdd(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AtomicCompareAndSwap", "SDL3") + )(a, oldval, newval); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "AtomicCompareAndSwap")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AtomicCompareAndSwap(AtomicInt* a, int oldval, int newval) => + DllImport.AtomicCompareAndSwap(a, oldval, newval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.AtomicCompareAndSwap(Ref a, int oldval, int newval) + { + fixed (AtomicInt* __dsl_a = a) + { + return (MaybeBool)(int)((ISdl)this).AtomicCompareAndSwap(__dsl_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) => + DllImport.AtomicCompareAndSwap(a, oldval, newval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AtomicCompareAndSwapPointer", "SDL3") + )(a, oldval, newval); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "AtomicCompareAndSwapPointer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AtomicCompareAndSwapPointer(void** a, void* oldval, void* newval) => + DllImport.AtomicCompareAndSwapPointer(a, oldval, newval); + + [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); + } + } + + [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) => + DllImport.AtomicCompareAndSwapPointer(a, oldval, newval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AtomicGet(AtomicInt* a) => + ((delegate* unmanaged)nativeContext.LoadFunction("AtomicGet", "SDL3"))(a); + + [NativeFunction("SDL3", EntryPoint = "AtomicGet")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AtomicGet(AtomicInt* a) => DllImport.AtomicGet(a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AtomicGet(Ref a) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)((ISdl)this).AtomicGet(__dsl_a); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGet")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AtomicGet(Ref a) => DllImport.AtomicGet(a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.AtomicGetPtr(void** a) => + ((delegate* unmanaged)nativeContext.LoadFunction("AtomicGetPtr", "SDL3"))(a); + + [NativeFunction("SDL3", EntryPoint = "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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicGetPtr")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr AtomicGetPtr(Ref2D a) => DllImport.AtomicGetPtr(a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AtomicSet(AtomicInt* a, int v) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AtomicSet", "SDL3") + )(a, v); + + [NativeFunction("SDL3", EntryPoint = "AtomicSet")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AtomicSet(AtomicInt* a, int v) => DllImport.AtomicSet(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.AtomicSet(Ref a, int v) + { + fixed (AtomicInt* __dsl_a = a) + { + return (int)((ISdl)this).AtomicSet(__dsl_a, v); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSet")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int AtomicSet(Ref a, int v) => DllImport.AtomicSet(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.AtomicSetPtr(void** a, void* v) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AtomicSetPtr", "SDL3") + )(a, v); + + [NativeFunction("SDL3", EntryPoint = "AtomicSetPtr")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* AtomicSetPtr(void** a, void* v) => DllImport.AtomicSetPtr(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.AtomicSetPtr(Ref2D a, Ref v) + { + fixed (void* __dsl_v = v) + fixed (void** __dsl_a = a) + { + return (void*)((ISdl)this).AtomicSetPtr(__dsl_a, __dsl_v); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_AtomicSetPtr")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr AtomicSetPtr(Ref2D a, Ref v) => DllImport.AtomicSetPtr(a, v); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.AttachVirtualJoystick(JoystickType type, int naxes, int nbuttons, int nhats) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AttachVirtualJoystick", "SDL3") + )(type, naxes, nbuttons, nhats); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "AttachVirtualJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint AttachVirtualJoystick( + JoystickType type, + int naxes, + int nbuttons, + int nhats + ) => DllImport.AttachVirtualJoystick(type, naxes, nbuttons, nhats); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.AttachVirtualJoystickEx( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("AttachVirtualJoystickEx", "SDL3") + )(desc); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "AttachVirtualJoystickEx")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint AttachVirtualJoystickEx( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] VirtualJoystickDesc* desc + ) => DllImport.AttachVirtualJoystickEx(desc); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.AttachVirtualJoystickEx( + [NativeTypeName("const SDL_VirtualJoystickDesc *")] Ref desc + ) + { + fixed (VirtualJoystickDesc* __dsl_desc = desc) + { + return (uint)((ISdl)this).AttachVirtualJoystickEx(__dsl_desc); + } + } + + [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")] + [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) + nativeContext.LoadFunction("SDL_AudioDevicePaused", "SDL3") + )(dev); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_AudioDevicePaused")] + [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, + SDL_AudioStream* stream + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("BindAudioStream", "SDL3") + )(devid, stream); + + [NativeFunction("SDL3", EntryPoint = "BindAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream* stream + ) => DllImport.BindAudioStream(devid, stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref stream + ) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).BindAudioStream(devid, __dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BindAudioStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref stream + ) => DllImport.BindAudioStream(devid, stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream** streams, + int num_streams + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("BindAudioStreams", "SDL3") + )(devid, streams, num_streams); + + [NativeFunction("SDL3", EntryPoint = "BindAudioStreams")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + SDL_AudioStream** streams, + int num_streams + ) => DllImport.BindAudioStreams(devid, streams, num_streams); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref2D streams, + int num_streams + ) + { + fixed (SDL_AudioStream** __dsl_streams = streams) + { + return (int)((ISdl)this).BindAudioStreams(devid, __dsl_streams, num_streams); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BindAudioStreams")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BindAudioStreams( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref2D streams, + int num_streams + ) => DllImport.BindAudioStreams(devid, streams, num_streams); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BlitSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("BlitSurface", "SDL3") + )(src, srcrect, dst, dstrect); + + [NativeFunction("SDL3", EntryPoint = "BlitSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BlitSurface( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect + ) => DllImport.BlitSurface(src, srcrect, dst, dstrect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect + ) + { + fixed (Rect* __dsl_dstrect = dstrect) + fixed (Surface* __dsl_dst = dst) + fixed (Rect* __dsl_srcrect = srcrect) + fixed (Surface* __dsl_src = src) + { + return (int) + ((ISdl)this).BlitSurface(__dsl_src, __dsl_srcrect, __dsl_dst, __dsl_dstrect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BlitSurface( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect + ) => DllImport.BlitSurface(src, srcrect, dst, dstrect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BlitSurfaceScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect, + ScaleMode scaleMode + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("BlitSurfaceScaled", "SDL3") + )(src, srcrect, dst, dstrect, scaleMode); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceScaled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BlitSurfaceScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + Rect* dstrect, + ScaleMode scaleMode + ) => DllImport.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BlitSurfaceScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + 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).BlitSurfaceScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceScaled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BlitSurfaceScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + Ref dstrect, + ScaleMode scaleMode + ) => DllImport.BlitSurfaceScaled(src, srcrect, dst, dstrect, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BlitSurfaceUnchecked( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("BlitSurfaceUnchecked", "SDL3") + )(src, srcrect, dst, dstrect); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUnchecked")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BlitSurfaceUnchecked( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect + ) => DllImport.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BlitSurfaceUnchecked( + 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 (int) + ((ISdl)this).BlitSurfaceUnchecked( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUnchecked")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BlitSurfaceUnchecked( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect + ) => DllImport.BlitSurfaceUnchecked(src, srcrect, dst, dstrect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BlitSurfaceUncheckedScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("BlitSurfaceUncheckedScaled", "SDL3") + )(src, srcrect, dst, dstrect, scaleMode); + + [NativeFunction("SDL3", EntryPoint = "BlitSurfaceUncheckedScaled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BlitSurfaceUncheckedScaled( + Surface* src, + [NativeTypeName("const SDL_Rect *")] Rect* srcrect, + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* dstrect, + ScaleMode scaleMode + ) => DllImport.BlitSurfaceUncheckedScaled(src, srcrect, dst, dstrect, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BlitSurfaceUncheckedScaled( + 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).BlitSurfaceUncheckedScaled( + __dsl_src, + __dsl_srcrect, + __dsl_dst, + __dsl_dstrect, + scaleMode + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BlitSurfaceUncheckedScaled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BlitSurfaceUncheckedScaled( + Ref src, + [NativeTypeName("const SDL_Rect *")] Ref srcrect, + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref dstrect, + ScaleMode scaleMode + ) => DllImport.BlitSurfaceUncheckedScaled(src, srcrect, dst, dstrect, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BroadcastCondition(SDL_Condition* cond) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("BroadcastCondition", "SDL3") + )(cond); + + [NativeFunction("SDL3", EntryPoint = "BroadcastCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BroadcastCondition(SDL_Condition* cond) => DllImport.BroadcastCondition(cond); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.BroadcastCondition(Ref cond) + { + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)((ISdl)this).BroadcastCondition(__dsl_cond); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_BroadcastCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int BroadcastCondition(Ref cond) => + DllImport.BroadcastCondition(cond); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CaptureMouse([NativeTypeName("SDL_bool")] int enabled) => + ((delegate* unmanaged)nativeContext.LoadFunction("CaptureMouse", "SDL3"))( + enabled + ); + + [NativeFunction("SDL3", EntryPoint = "CaptureMouse")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CaptureMouse([NativeTypeName("SDL_bool")] int enabled) => + DllImport.CaptureMouse(enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => + (int)((ISdl)this).CaptureMouse((int)enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CaptureMouse")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CaptureMouse([NativeTypeName("SDL_bool")] MaybeBool enabled) => + DllImport.CaptureMouse(enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CleanupTLS() => + ((delegate* unmanaged)nativeContext.LoadFunction("CleanupTLS", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "CleanupTLS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CleanupTLS() => DllImport.CleanupTLS(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ClearAudioStream(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ClearAudioStream", "SDL3") + )(stream); + + [NativeFunction("SDL3", EntryPoint = "ClearAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ClearAudioStream(SDL_AudioStream* stream) => + DllImport.ClearAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ClearAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).ClearAudioStream(__dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ClearAudioStream(Ref stream) => + DllImport.ClearAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ClearClipboardData() => + ((delegate* unmanaged)nativeContext.LoadFunction("ClearClipboardData", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "ClearClipboardData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ClearClipboardData() => DllImport.ClearClipboardData(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ClearComposition() => + ((delegate* unmanaged)nativeContext.LoadFunction("ClearComposition", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "ClearComposition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ClearComposition() => DllImport.ClearComposition(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ClearError() => + ((delegate* unmanaged)nativeContext.LoadFunction("ClearError", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "ClearError")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ClearError() => DllImport.ClearError(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ClearProperty", "SDL3") + )(props, name); + + [NativeFunction("SDL3", EntryPoint = "ClearProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => DllImport.ClearProperty(props, name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int 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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ClearProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ClearProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) => DllImport.ClearProperty(props, name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + ((delegate* unmanaged)nativeContext.LoadFunction("CloseAudioDevice", "SDL3"))( + devid + ); + + [NativeFunction("SDL3", EntryPoint = "CloseAudioDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + DllImport.CloseAudioDevice(devid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseCamera(SDL_Camera* camera) => + ((delegate* unmanaged)nativeContext.LoadFunction("CloseCamera", "SDL3"))( + camera + ); + + [NativeFunction("SDL3", EntryPoint = "CloseCamera")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseCamera(SDL_Camera* camera) => DllImport.CloseCamera(camera); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseCamera(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + ((ISdl)this).CloseCamera(__dsl_camera); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseCamera")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseCamera(Ref camera) => DllImport.CloseCamera(camera); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseGamepad(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CloseGamepad", "SDL3") + )(gamepad); + + [NativeFunction("SDL3", EntryPoint = "CloseGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseGamepad(SDL_Gamepad* gamepad) => DllImport.CloseGamepad(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseGamepad(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + ((ISdl)this).CloseGamepad(__dsl_gamepad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseGamepad(Ref gamepad) => DllImport.CloseGamepad(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseHaptic(SDL_Haptic* haptic) => + ((delegate* unmanaged)nativeContext.LoadFunction("CloseHaptic", "SDL3"))( + haptic + ); + + [NativeFunction("SDL3", EntryPoint = "CloseHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseHaptic(SDL_Haptic* haptic) => DllImport.CloseHaptic(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseHaptic(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + ((ISdl)this).CloseHaptic(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseHaptic(Ref haptic) => DllImport.CloseHaptic(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CloseIO(SDL_IOStream* context) => + ((delegate* unmanaged)nativeContext.LoadFunction("CloseIO", "SDL3"))( + context + ); + + [NativeFunction("SDL3", EntryPoint = "CloseIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CloseIO(SDL_IOStream* context) => DllImport.CloseIO(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CloseIO(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (int)((ISdl)this).CloseIO(__dsl_context); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CloseIO(Ref context) => DllImport.CloseIO(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseJoystick(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CloseJoystick", "SDL3") + )(joystick); + + [NativeFunction("SDL3", EntryPoint = "CloseJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseJoystick(SDL_Joystick* joystick) => DllImport.CloseJoystick(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseJoystick(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + ((ISdl)this).CloseJoystick(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseJoystick(Ref joystick) => + DllImport.CloseJoystick(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseSensor(SDL_Sensor* sensor) => + ((delegate* unmanaged)nativeContext.LoadFunction("CloseSensor", "SDL3"))( + sensor + ); + + [NativeFunction("SDL3", EntryPoint = "CloseSensor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseSensor(SDL_Sensor* sensor) => DllImport.CloseSensor(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.CloseSensor(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + ((ISdl)this).CloseSensor(__dsl_sensor); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseSensor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void CloseSensor(Ref sensor) => DllImport.CloseSensor(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CloseStorage(SDL_Storage* storage) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CloseStorage", "SDL3") + )(storage); + + [NativeFunction("SDL3", EntryPoint = "CloseStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CloseStorage(SDL_Storage* storage) => DllImport.CloseStorage(storage); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CloseStorage(Ref storage) + { + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)((ISdl)this).CloseStorage(__dsl_storage); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CloseStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CloseStorage(Ref storage) => DllImport.CloseStorage(storage); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + BlendMode ISdl.ComposeCustomBlendMode( + BlendFactor srcColorFactor, + BlendFactor dstColorFactor, + BlendOperation colorOperation, + BlendFactor srcAlphaFactor, + BlendFactor dstAlphaFactor, + BlendOperation alphaOperation + ) => + ( + (delegate* unmanaged< + BlendFactor, + BlendFactor, + BlendOperation, + BlendFactor, + BlendFactor, + BlendOperation, + BlendMode>) + nativeContext.LoadFunction("ComposeCustomBlendMode", "SDL3") + )( + srcColorFactor, + dstColorFactor, + colorOperation, + srcAlphaFactor, + dstAlphaFactor, + alphaOperation + ); + + [NativeFunction("SDL3", EntryPoint = "ComposeCustomBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static BlendMode ComposeCustomBlendMode( + BlendFactor srcColorFactor, + BlendFactor dstColorFactor, + BlendOperation colorOperation, + BlendFactor srcAlphaFactor, + BlendFactor dstAlphaFactor, + BlendOperation alphaOperation + ) => + DllImport.ComposeCustomBlendMode( + srcColorFactor, + dstColorFactor, + colorOperation, + srcAlphaFactor, + dstAlphaFactor, + alphaOperation + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const Uint8 *")] byte* src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec, + [NativeTypeName("Uint8 **")] byte** dst_data, + int* dst_len + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ConvertAudioSamples", "SDL3") + )(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); + + [NativeFunction("SDL3", EntryPoint = "ConvertAudioSamples")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const Uint8 *")] byte* src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec, + [NativeTypeName("Uint8 **")] byte** dst_data, + int* dst_len + ) => DllImport.ConvertAudioSamples(src_spec, src_data, src_len, dst_spec, dst_data, dst_len); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const Uint8 *")] Ref src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec, + [NativeTypeName("Uint8 **")] Ref2D dst_data, + Ref dst_len + ) + { + fixed (int* __dsl_dst_len = dst_len) + fixed (byte** __dsl_dst_data = dst_data) + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + 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 + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertAudioSamples")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ConvertAudioSamples( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const Uint8 *")] Ref src_data, + int src_len, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec, + [NativeTypeName("Uint8 **")] Ref2D dst_data, + 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(SDL_Renderer* renderer, Event* @event) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ConvertEventToRenderCoordinates", "SDL3") + )(renderer, @event); + + [NativeFunction("SDL3", EntryPoint = "ConvertEventToRenderCoordinates")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ConvertEventToRenderCoordinates(SDL_Renderer* renderer, Event* @event) => + DllImport.ConvertEventToRenderCoordinates(renderer, @event); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ConvertEventToRenderCoordinates(Ref renderer, Ref @event) + { + fixed (Event* __dsl_event = @event) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).ConvertEventToRenderCoordinates(__dsl_renderer, __dsl_event); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertEventToRenderCoordinates")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ConvertEventToRenderCoordinates( + Ref renderer, + Ref @event + ) => DllImport.ConvertEventToRenderCoordinates(renderer, @event); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ) => + ( + (delegate* unmanaged< + int, + int, + PixelFormatEnum, + void*, + int, + PixelFormatEnum, + void*, + int, + int>) + nativeContext.LoadFunction("ConvertPixels", "SDL3") + )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); + + [NativeFunction("SDL3", EntryPoint = "ConvertPixels")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ) => + DllImport.ConvertPixels( + width, + height, + src_format, + src, + src_pitch, + dst_format, + dst, + dst_pitch + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + 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 + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixels")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ConvertPixels( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ) => + DllImport.ConvertPixels( + width, + height, + src_format, + src, + src_pitch, + dst_format, + dst, + dst_pitch + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + void* dst, + int dst_pitch + ) => + ( + (delegate* unmanaged< + int, + int, + PixelFormatEnum, + Colorspace, + uint, + void*, + int, + PixelFormatEnum, + Colorspace, + uint, + void*, + int, + int>) + nativeContext.LoadFunction("ConvertPixelsAndColorspace", "SDL3") + )( + width, + height, + src_format, + src_colorspace, + src_properties, + src, + src_pitch, + dst_format, + dst_colorspace, + dst_properties, + dst, + dst_pitch + ); + + [NativeFunction("SDL3", EntryPoint = "ConvertPixelsAndColorspace")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + void* dst, + int dst_pitch + ) => + DllImport.ConvertPixelsAndColorspace( + width, + height, + src_format, + src_colorspace, + src_properties, + src, + src_pitch, + dst_format, + dst_colorspace, + dst_properties, + dst, + dst_pitch + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + Ref dst, + 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 + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertPixelsAndColorspace")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ConvertPixelsAndColorspace( + int width, + int height, + PixelFormatEnum src_format, + Colorspace src_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint src_properties, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Colorspace dst_colorspace, + [NativeTypeName("SDL_PropertiesID")] uint dst_properties, + Ref dst, + int dst_pitch + ) => + DllImport.ConvertPixelsAndColorspace( + width, + height, + src_format, + src_colorspace, + src_properties, + src, + src_pitch, + dst_format, + dst_colorspace, + dst_properties, + dst, + dst_pitch + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.ConvertSurface( + Surface* surface, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ConvertSurface", "SDL3") + )(surface, format); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* ConvertSurface( + Surface* surface, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format + ) => DllImport.ConvertSurface(surface, format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.ConvertSurface( + Ref surface, + [NativeTypeName("const SDL_PixelFormat *")] Ref format + ) + { + fixed (PixelFormat* __dsl_format = format) + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)((ISdl)this).ConvertSurface(__dsl_surface, __dsl_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) + nativeContext.LoadFunction("ConvertSurfaceFormat", "SDL3") + )(surface, pixel_format); + + [NativeFunction("SDL3", EntryPoint = "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); + } + } + + [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* surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ConvertSurfaceFormatAndColorspace", "SDL3") + )(surface, pixel_format, colorspace, props); + + [NativeFunction("SDL3", EntryPoint = "ConvertSurfaceFormatAndColorspace")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* ConvertSurfaceFormatAndColorspace( + Surface* surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.ConvertSurfaceFormatAndColorspace(surface, pixel_format, colorspace, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.ConvertSurfaceFormatAndColorspace( + Ref surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*) + ((ISdl)this).ConvertSurfaceFormatAndColorspace( + __dsl_surface, + pixel_format, + colorspace, + props + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ConvertSurfaceFormatAndColorspace")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr ConvertSurfaceFormatAndColorspace( + Ref surface, + PixelFormatEnum pixel_format, + Colorspace colorspace, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.ConvertSurfaceFormatAndColorspace(surface, pixel_format, colorspace, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CopyProperties", "SDL3") + )(src, dst); + + [NativeFunction("SDL3", EntryPoint = "CopyProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CopyProperties( + [NativeTypeName("SDL_PropertiesID")] uint src, + [NativeTypeName("SDL_PropertiesID")] uint dst + ) => DllImport.CopyProperties(src, dst); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_AudioStream* ISdl.CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateAudioStream", "SDL3") + )(src_spec, dst_spec); + + [NativeFunction("SDL3", EntryPoint = "CreateAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_AudioStream* CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ) => DllImport.CreateAudioStream(src_spec, dst_spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ) + { + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + fixed (AudioSpec* __dsl_src_spec = src_spec) + { + return (SDL_AudioStream*)((ISdl)this).CreateAudioStream(__dsl_src_spec, __dsl_dst_spec); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateAudioStream( + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ) => DllImport.CreateAudioStream(src_spec, dst_spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Cursor* ISdl.CreateColorCursor(Surface* surface, int hot_x, int hot_y) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateColorCursor", "SDL3") + )(surface, hot_x, hot_y); + + [NativeFunction("SDL3", EntryPoint = "CreateColorCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Cursor* CreateColorCursor(Surface* surface, int hot_x, int hot_y) => + DllImport.CreateColorCursor(surface, hot_x, hot_y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateColorCursor(Ref surface, int hot_x, int hot_y) + { + fixed (Surface* __dsl_surface = surface) + { + return (SDL_Cursor*)((ISdl)this).CreateColorCursor(__dsl_surface, hot_x, hot_y); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateColorCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateColorCursor(Ref surface, int hot_x, int hot_y) => + DllImport.CreateColorCursor(surface, hot_x, hot_y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateCondition() => (SDL_Condition*)((ISdl)this).CreateConditionRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateCondition() => DllImport.CreateCondition(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Condition* ISdl.CreateConditionRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_CreateCondition", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Condition* CreateConditionRaw() => DllImport.CreateConditionRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Cursor* ISdl.CreateCursor( + [NativeTypeName("const Uint8 *")] byte* data, + [NativeTypeName("const Uint8 *")] byte* mask, + int w, + int h, + int hot_x, + int hot_y + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateCursor", "SDL3") + )(data, mask, w, h, hot_x, hot_y); + + [NativeFunction("SDL3", EntryPoint = "CreateCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Cursor* CreateCursor( + [NativeTypeName("const Uint8 *")] byte* data, + [NativeTypeName("const Uint8 *")] byte* mask, + int w, + int h, + int hot_x, + int hot_y + ) => DllImport.CreateCursor(data, mask, w, h, hot_x, hot_y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateCursor( + [NativeTypeName("const Uint8 *")] Ref data, + [NativeTypeName("const Uint8 *")] Ref mask, + int w, + int h, + int hot_x, + int hot_y + ) + { + fixed (byte* __dsl_mask = mask) + fixed (byte* __dsl_data = data) + { + return (SDL_Cursor*) + ((ISdl)this).CreateCursor(__dsl_data, __dsl_mask, w, h, hot_x, hot_y); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateCursor( + [NativeTypeName("const Uint8 *")] Ref data, + [NativeTypeName("const Uint8 *")] Ref mask, + int w, + int h, + int hot_x, + 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) => + ((delegate* unmanaged)nativeContext.LoadFunction("CreateDirectory", "SDL3"))( + path + ); + + [NativeFunction("SDL3", EntryPoint = "CreateDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CreateDirectory([NativeTypeName("const char *")] sbyte* path) => + DllImport.CreateDirectory(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CreateDirectory([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (int)((ISdl)this).CreateDirectory(__dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CreateDirectory([NativeTypeName("const char *")] Ref path) => + DllImport.CreateDirectory(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CreateHapticEffect( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateHapticEffect", "SDL3") + )(haptic, effect); + + [NativeFunction("SDL3", EntryPoint = "CreateHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CreateHapticEffect( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ) => DllImport.CreateHapticEffect(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CreateHapticEffect( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) + { + fixed (HapticEffect* __dsl_effect = effect) + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).CreateHapticEffect(__dsl_haptic, __dsl_effect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CreateHapticEffect( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) => DllImport.CreateHapticEffect(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateMutex() => (SDL_Mutex*)((ISdl)this).CreateMutexRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateMutex() => DllImport.CreateMutex(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Mutex* ISdl.CreateMutexRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_CreateMutex", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Mutex* CreateMutexRaw() => DllImport.CreateMutexRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreatePalette(int ncolors) => + (Palette*)((ISdl)this).CreatePaletteRaw(ncolors); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreatePalette(int ncolors) => DllImport.CreatePalette(ncolors); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Palette* ISdl.CreatePaletteRaw(int ncolors) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_CreatePalette", "SDL3") + )(ncolors); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePalette")] + [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) + 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)] + SDL_Window* ISdl.CreatePopupWindow( + SDL_Window* parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreatePopupWindow", "SDL3") + )(parent, offset_x, offset_y, w, h, flags); + + [NativeFunction("SDL3", EntryPoint = "CreatePopupWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* CreatePopupWindow( + SDL_Window* parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => DllImport.CreatePopupWindow(parent, offset_x, offset_y, w, h, flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreatePopupWindow( + Ref parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) + { + fixed (SDL_Window* __dsl_parent = parent) + { + return (SDL_Window*) + ((ISdl)this).CreatePopupWindow(__dsl_parent, offset_x, offset_y, w, h, flags); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreatePopupWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreatePopupWindow( + Ref parent, + int offset_x, + int offset_y, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => DllImport.CreatePopupWindow(parent, offset_x, offset_y, w, h, flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.CreateProperties() => + ((delegate* unmanaged)nativeContext.LoadFunction("CreateProperties", "SDL3"))(); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "CreateProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint CreateProperties() => DllImport.CreateProperties(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Renderer* ISdl.CreateRenderer( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Uint32")] uint flags + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateRenderer", "SDL3") + )(window, name, flags); + + [NativeFunction("SDL3", EntryPoint = "CreateRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Renderer* CreateRenderer( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Uint32")] uint flags + ) => DllImport.CreateRenderer(window, name, flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateRenderer( + Ref window, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Uint32")] uint flags + ) + { + fixed (sbyte* __dsl_name = name) + fixed (SDL_Window* __dsl_window = window) + { + return (SDL_Renderer*)((ISdl)this).CreateRenderer(__dsl_window, __dsl_name, flags); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateRenderer( + Ref window, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Uint32")] uint flags + ) => DllImport.CreateRenderer(window, name, flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateRendererWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => (SDL_Renderer*)((ISdl)this).CreateRendererWithPropertiesRaw(props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateRendererWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.CreateRendererWithProperties(props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Renderer* ISdl.CreateRendererWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_CreateRendererWithProperties", "SDL3") + )(props); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRendererWithProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Renderer* CreateRendererWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.CreateRendererWithPropertiesRaw(props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateRWLock() => (SDL_RWLock*)((ISdl)this).CreateRWLockRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateRWLock() => DllImport.CreateRWLock(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_RWLock* ISdl.CreateRWLockRaw() => + ( + (delegate* unmanaged)nativeContext.LoadFunction("SDL_CreateRWLock", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateRWLock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_RWLock* CreateRWLockRaw() => DllImport.CreateRWLockRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateSemaphore([NativeTypeName("Uint32")] uint initial_value) => + (SDL_Semaphore*)((ISdl)this).CreateSemaphoreRaw(initial_value); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateSemaphore( + [NativeTypeName("Uint32")] uint initial_value + ) => DllImport.CreateSemaphore(initial_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Semaphore* ISdl.CreateSemaphoreRaw([NativeTypeName("Uint32")] uint initial_value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_CreateSemaphore", "SDL3") + )(initial_value); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Semaphore* CreateSemaphoreRaw( + [NativeTypeName("Uint32")] uint initial_value + ) => DllImport.CreateSemaphoreRaw(initial_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Renderer* ISdl.CreateSoftwareRenderer(Surface* surface) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateSoftwareRenderer", "SDL3") + )(surface); + + [NativeFunction("SDL3", EntryPoint = "CreateSoftwareRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Renderer* CreateSoftwareRenderer(Surface* surface) => + DllImport.CreateSoftwareRenderer(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateSoftwareRenderer(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (SDL_Renderer*)((ISdl)this).CreateSoftwareRenderer(__dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSoftwareRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateSoftwareRenderer(Ref surface) => + DllImport.CreateSoftwareRenderer(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CreateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateStorageDirectory", "SDL3") + )(storage, path); + + [NativeFunction("SDL3", EntryPoint = "CreateStorageDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CreateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ) => DllImport.CreateStorageDirectory(storage, path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CreateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)((ISdl)this).CreateStorageDirectory(__dsl_storage, __dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateStorageDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CreateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path + ) => DllImport.CreateStorageDirectory(storage, path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateSurface(int width, int height, PixelFormatEnum 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) => + DllImport.CreateSurface(width, height, format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.CreateSurfaceFrom( + void* pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateSurfaceFrom", "SDL3") + )(pixels, width, height, pitch, format); + + [NativeFunction("SDL3", EntryPoint = "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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateSurfaceFrom( + Ref pixels, + int width, + int height, + int pitch, + PixelFormatEnum format + ) + { + fixed (void* __dsl_pixels = pixels) + { + return (Surface*) + ((ISdl)this).CreateSurfaceFrom(__dsl_pixels, width, height, pitch, format); + } + } + + [Transformed] + [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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.CreateSurfaceRaw(int width, int height, PixelFormatEnum format) => + ( + (delegate* unmanaged) + 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) => + DllImport.CreateSurfaceRaw(width, height, format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateSystemCursor(SystemCursor id) => + (SDL_Cursor*)((ISdl)this).CreateSystemCursorRaw(id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateSystemCursor(SystemCursor id) => + DllImport.CreateSystemCursor(id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Cursor* ISdl.CreateSystemCursorRaw(SystemCursor id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_CreateSystemCursor", "SDL3") + )(id); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateSystemCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Cursor* CreateSystemCursorRaw(SystemCursor id) => + DllImport.CreateSystemCursorRaw(id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Texture* ISdl.CreateTexture( + SDL_Renderer* renderer, + PixelFormatEnum format, + int access, + int w, + int h + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateTexture", "SDL3") + )(renderer, format, access, w, h); + + [NativeFunction("SDL3", EntryPoint = "CreateTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Texture* CreateTexture( + SDL_Renderer* renderer, + PixelFormatEnum format, + int access, + int w, + int h + ) => DllImport.CreateTexture(renderer, format, access, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateTexture( + Ref renderer, + PixelFormatEnum format, + int access, + int w, + int h + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)((ISdl)this).CreateTexture(__dsl_renderer, format, access, w, h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateTexture( + Ref renderer, + PixelFormatEnum format, + int access, + int w, + int h + ) => DllImport.CreateTexture(renderer, format, access, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Texture* ISdl.CreateTextureFromSurface(SDL_Renderer* renderer, Surface* surface) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateTextureFromSurface", "SDL3") + )(renderer, surface); + + [NativeFunction("SDL3", EntryPoint = "CreateTextureFromSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Texture* CreateTextureFromSurface(SDL_Renderer* renderer, Surface* surface) => + DllImport.CreateTextureFromSurface(renderer, surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateTextureFromSurface(Ref renderer, Ref surface) + { + fixed (Surface* __dsl_surface = surface) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*) + ((ISdl)this).CreateTextureFromSurface(__dsl_renderer, __dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureFromSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateTextureFromSurface( + Ref renderer, + Ref surface + ) => DllImport.CreateTextureFromSurface(renderer, surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Texture* ISdl.CreateTextureWithProperties( + SDL_Renderer* renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateTextureWithProperties", "SDL3") + )(renderer, props); + + [NativeFunction("SDL3", EntryPoint = "CreateTextureWithProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Texture* CreateTextureWithProperties( + SDL_Renderer* renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.CreateTextureWithProperties(renderer, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateTextureWithProperties( + Ref renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)((ISdl)this).CreateTextureWithProperties(__dsl_renderer, props); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateTextureWithProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateTextureWithProperties( + Ref renderer, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.CreateTextureWithProperties(renderer, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Thread* ISdl.CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + void* data + ) => + ( + (delegate* unmanaged, sbyte*, void*, SDL_Thread*>) + nativeContext.LoadFunction("CreateThread", "SDL3") + )(fn, name, data); + + [NativeFunction("SDL3", EntryPoint = "CreateThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Thread* CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + void* data + ) => DllImport.CreateThread(fn, name, data); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + Ref data + ) + { + fixed (void* __dsl_data = data) + fixed (sbyte* __dsl_name = name) + { + return (SDL_Thread*)((ISdl)this).CreateThread(fn, __dsl_name, __dsl_data); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateThread( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + Ref data + ) => DllImport.CreateThread(fn, name, data); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Thread* ISdl.CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const size_t")] nuint stacksize, + void* data + ) => + ( + (delegate* unmanaged< + delegate* unmanaged, + sbyte*, + nuint, + void*, + SDL_Thread*>) + nativeContext.LoadFunction("CreateThreadWithStackSize", "SDL3") + )(fn, name, stacksize, data); + + [NativeFunction("SDL3", EntryPoint = "CreateThreadWithStackSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Thread* CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const size_t")] nuint stacksize, + void* data + ) => DllImport.CreateThreadWithStackSize(fn, name, stacksize, data); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const size_t")] nuint stacksize, + Ref data + ) + { + fixed (void* __dsl_data = data) + fixed (sbyte* __dsl_name = name) + { + return (SDL_Thread*) + ((ISdl)this).CreateThreadWithStackSize(fn, __dsl_name, stacksize, __dsl_data); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateThreadWithStackSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateThreadWithStackSize( + [NativeTypeName("SDL_ThreadFunction")] delegate* unmanaged fn, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const size_t")] nuint stacksize, + Ref data + ) => DllImport.CreateThreadWithStackSize(fn, name, stacksize, data); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.CreateTLS() => + ((delegate* unmanaged)nativeContext.LoadFunction("CreateTLS", "SDL3"))(); + + [return: NativeTypeName("SDL_TLSID")] + [NativeFunction("SDL3", EntryPoint = "CreateTLS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint CreateTLS() => DllImport.CreateTLS(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Window* ISdl.CreateWindow( + [NativeTypeName("const char *")] sbyte* title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateWindow", "SDL3") + )(title, w, h, flags); + + [NativeFunction("SDL3", EntryPoint = "CreateWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* CreateWindow( + [NativeTypeName("const char *")] sbyte* title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => DllImport.CreateWindow(title, w, h, flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateWindow( + [NativeTypeName("const char *")] Ref title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) + { + fixed (sbyte* __dsl_title = title) + { + return (SDL_Window*)((ISdl)this).CreateWindow(__dsl_title, w, h, flags); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateWindow( + [NativeTypeName("const char *")] Ref title, + int w, + int h, + [NativeTypeName("SDL_WindowFlags")] uint flags + ) => DllImport.CreateWindow(title, w, h, flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CreateWindowAndRenderer( + [NativeTypeName("const char *")] sbyte* title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + SDL_Window** window, + SDL_Renderer** renderer + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("CreateWindowAndRenderer", "SDL3") + )(title, width, height, window_flags, window, renderer); + + [NativeFunction("SDL3", EntryPoint = "CreateWindowAndRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CreateWindowAndRenderer( + [NativeTypeName("const char *")] sbyte* title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + SDL_Window** window, + SDL_Renderer** renderer + ) => DllImport.CreateWindowAndRenderer(title, width, height, window_flags, window, renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CreateWindowAndRenderer( + [NativeTypeName("const char *")] Ref title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + Ref2D window, + Ref2D renderer + ) + { + fixed (SDL_Renderer** __dsl_renderer = renderer) + fixed (SDL_Window** __dsl_window = window) + fixed (sbyte* __dsl_title = title) + { + return (int) + ((ISdl)this).CreateWindowAndRenderer( + __dsl_title, + width, + height, + window_flags, + __dsl_window, + __dsl_renderer + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowAndRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CreateWindowAndRenderer( + [NativeTypeName("const char *")] Ref title, + int width, + int height, + [NativeTypeName("SDL_WindowFlags")] uint window_flags, + Ref2D window, + Ref2D renderer + ) => DllImport.CreateWindowAndRenderer(title, width, height, window_flags, window, renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.CreateWindowWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => (SDL_Window*)((ISdl)this).CreateWindowWithPropertiesRaw(props); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr CreateWindowWithProperties( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.CreateWindowWithProperties(props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Window* ISdl.CreateWindowWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_CreateWindowWithProperties", "SDL3") + )(props); + + [NativeFunction("SDL3", EntryPoint = "SDL_CreateWindowWithProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* CreateWindowWithPropertiesRaw( + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.CreateWindowWithPropertiesRaw(props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.CursorVisible() => (MaybeBool)(int)((ISdl)this).CursorVisibleRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool CursorVisible() => DllImport.CursorVisible(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.CursorVisibleRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_CursorVisible", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_CursorVisible")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int CursorVisibleRaw() => DllImport.CursorVisibleRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] DateTime* dt, + [NativeTypeName("SDL_Time *")] long* ticks + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DateTimeToTime", "SDL3") + )(dt, ticks); + + [NativeFunction("SDL3", EntryPoint = "DateTimeToTime")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] DateTime* dt, + [NativeTypeName("SDL_Time *")] long* ticks + ) => DllImport.DateTimeToTime(dt, ticks); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] Ref dt, + [NativeTypeName("SDL_Time *")] Ref ticks + ) + { + fixed (long* __dsl_ticks = ticks) + fixed (DateTime* __dsl_dt = dt) + { + return (int)((ISdl)this).DateTimeToTime(__dsl_dt, __dsl_ticks); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DateTimeToTime")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int DateTimeToTime( + [NativeTypeName("const SDL_DateTime *")] Ref dt, + [NativeTypeName("SDL_Time *")] Ref ticks + ) => DllImport.DateTimeToTime(dt, ticks); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.Delay([NativeTypeName("Uint32")] uint ms) => + ((delegate* unmanaged)nativeContext.LoadFunction("Delay", "SDL3"))(ms); + + [NativeFunction("SDL3", EntryPoint = "Delay")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Delay([NativeTypeName("Uint32")] uint ms) => DllImport.Delay(ms); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DelayNS([NativeTypeName("Uint64")] ulong ns) => + ((delegate* unmanaged)nativeContext.LoadFunction("DelayNS", "SDL3"))(ns); + + [NativeFunction("SDL3", EntryPoint = "DelayNS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DelayNS([NativeTypeName("Uint64")] ulong ns) => DllImport.DelayNS(ns); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => + ( + (delegate* unmanaged, void*, void>) + nativeContext.LoadFunction("DelEventWatch", "SDL3") + )(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "DelEventWatch")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => DllImport.DelEventWatch(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DelEventWatch( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged 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")] delegate* unmanaged filter, + Ref userdata + ) => DllImport.DelEventWatch(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DelHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged< + sbyte*, + delegate* unmanaged, + void*, + void>) + nativeContext.LoadFunction("DelHintCallback", "SDL3") + )(name, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "DelHintCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DelHintCallback( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.DelHintCallback(name, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DelHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_name = name) + { + ((ISdl)this).DelHintCallback(__dsl_name, callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DelHintCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DelHintCallback( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_HintCallback")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.DelHintCallback(name, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyAudioStream(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroyAudioStream", "SDL3") + )(stream); + + [NativeFunction("SDL3", EntryPoint = "DestroyAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyAudioStream(SDL_AudioStream* stream) => + DllImport.DestroyAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + ((ISdl)this).DestroyAudioStream(__dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyAudioStream(Ref stream) => + DllImport.DestroyAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyCondition(SDL_Condition* cond) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroyCondition", "SDL3") + )(cond); + + [NativeFunction("SDL3", EntryPoint = "DestroyCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyCondition(SDL_Condition* cond) => DllImport.DestroyCondition(cond); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyCondition(Ref cond) + { + fixed (SDL_Condition* __dsl_cond = cond) + { + ((ISdl)this).DestroyCondition(__dsl_cond); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyCondition(Ref cond) => + DllImport.DestroyCondition(cond); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyCursor(SDL_Cursor* cursor) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroyCursor", "SDL3") + )(cursor); + + [NativeFunction("SDL3", EntryPoint = "DestroyCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyCursor(SDL_Cursor* cursor) => DllImport.DestroyCursor(cursor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyCursor(Ref cursor) + { + fixed (SDL_Cursor* __dsl_cursor = cursor) + { + ((ISdl)this).DestroyCursor(__dsl_cursor); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyCursor(Ref cursor) => DllImport.DestroyCursor(cursor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyHapticEffect(SDL_Haptic* haptic, int effect) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroyHapticEffect", "SDL3") + )(haptic, effect); + + [NativeFunction("SDL3", EntryPoint = "DestroyHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyHapticEffect(SDL_Haptic* haptic, int effect) => + DllImport.DestroyHapticEffect(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyHapticEffect(Ref haptic, int effect) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + ((ISdl)this).DestroyHapticEffect(__dsl_haptic, effect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyHapticEffect(Ref haptic, int effect) => + DllImport.DestroyHapticEffect(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyMutex(SDL_Mutex* mutex) => + ((delegate* unmanaged)nativeContext.LoadFunction("DestroyMutex", "SDL3"))( + mutex + ); + + [NativeFunction("SDL3", EntryPoint = "DestroyMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyMutex(SDL_Mutex* mutex) => DllImport.DestroyMutex(mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + ((ISdl)this).DestroyMutex(__dsl_mutex); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyMutex(Ref mutex) => DllImport.DestroyMutex(mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyPalette(Palette* palette) => + ((delegate* unmanaged)nativeContext.LoadFunction("DestroyPalette", "SDL3"))( + palette + ); + + [NativeFunction("SDL3", EntryPoint = "DestroyPalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyPalette(Palette* palette) => DllImport.DestroyPalette(palette); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyPalette(Ref palette) + { + fixed (Palette* __dsl_palette = palette) + { + ((ISdl)this).DestroyPalette(__dsl_palette); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyPalette")] + [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) + nativeContext.LoadFunction("DestroyPixelFormat", "SDL3") + )(format); + + [NativeFunction("SDL3", EntryPoint = "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)nativeContext.LoadFunction("DestroyProperties", "SDL3"))( + props + ); + + [NativeFunction("SDL3", EntryPoint = "DestroyProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + DllImport.DestroyProperties(props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyRenderer(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroyRenderer", "SDL3") + )(renderer); + + [NativeFunction("SDL3", EntryPoint = "DestroyRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyRenderer(SDL_Renderer* renderer) => + DllImport.DestroyRenderer(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyRenderer(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + ((ISdl)this).DestroyRenderer(__dsl_renderer); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyRenderer(Ref renderer) => + DllImport.DestroyRenderer(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyRWLock(SDL_RWLock* rwlock) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroyRWLock", "SDL3") + )(rwlock); + + [NativeFunction("SDL3", EntryPoint = "DestroyRWLock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyRWLock(SDL_RWLock* rwlock) => DllImport.DestroyRWLock(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyRWLock(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + ((ISdl)this).DestroyRWLock(__dsl_rwlock); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyRWLock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyRWLock(Ref rwlock) => DllImport.DestroyRWLock(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroySemaphore(SDL_Semaphore* sem) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroySemaphore", "SDL3") + )(sem); + + [NativeFunction("SDL3", EntryPoint = "DestroySemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroySemaphore(SDL_Semaphore* sem) => DllImport.DestroySemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroySemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + ((ISdl)this).DestroySemaphore(__dsl_sem); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroySemaphore(Ref sem) => DllImport.DestroySemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroySurface(Surface* surface) => + ((delegate* unmanaged)nativeContext.LoadFunction("DestroySurface", "SDL3"))( + surface + ); + + [NativeFunction("SDL3", EntryPoint = "DestroySurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroySurface(Surface* surface) => DllImport.DestroySurface(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroySurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + ((ISdl)this).DestroySurface(__dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroySurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroySurface(Ref surface) => DllImport.DestroySurface(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyTexture(SDL_Texture* texture) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroyTexture", "SDL3") + )(texture); + + [NativeFunction("SDL3", EntryPoint = "DestroyTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyTexture(SDL_Texture* texture) => DllImport.DestroyTexture(texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyTexture(Ref texture) + { + fixed (SDL_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(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroyWindow", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "DestroyWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyWindow(SDL_Window* window) => DllImport.DestroyWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DestroyWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + ((ISdl)this).DestroyWindow(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DestroyWindow(Ref window) => DllImport.DestroyWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.DestroyWindowSurface(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DestroyWindowSurface", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "DestroyWindowSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int DestroyWindowSurface(SDL_Window* window) => + DllImport.DestroyWindowSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.DestroyWindowSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).DestroyWindowSurface(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DestroyWindowSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int DestroyWindowSurface(Ref window) => + DllImport.DestroyWindowSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DetachThread(SDL_Thread* thread) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DetachThread", "SDL3") + )(thread); + + [NativeFunction("SDL3", EntryPoint = "DetachThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DetachThread(SDL_Thread* thread) => DllImport.DetachThread(thread); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.DetachThread(Ref thread) + { + fixed (SDL_Thread* __dsl_thread = thread) + { + ((ISdl)this).DetachThread(__dsl_thread); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DetachThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void DetachThread(Ref thread) => DllImport.DetachThread(thread); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DetachVirtualJoystick", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "DetachVirtualJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int DetachVirtualJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => + DllImport.DetachVirtualJoystick(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.DisableScreenSaver() => + ((delegate* unmanaged)nativeContext.LoadFunction("DisableScreenSaver", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "DisableScreenSaver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int DisableScreenSaver() => DllImport.DisableScreenSaver(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.DuplicateSurface(Surface* surface) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("DuplicateSurface", "SDL3") + )(surface); + + [NativeFunction("SDL3", EntryPoint = "DuplicateSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* DuplicateSurface(Surface* surface) => + DllImport.DuplicateSurface(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.DuplicateSurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (Surface*)((ISdl)this).DuplicateSurface(__dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_DuplicateSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr DuplicateSurface(Ref surface) => + DllImport.DuplicateSurface(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.EGLGetCurrentEGLConfig() => (void*)((ISdl)this).EGLGetCurrentEGLConfigRaw(); + + [return: NativeTypeName("SDL_EGLConfig")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr EGLGetCurrentEGLConfig() => DllImport.EGLGetCurrentEGLConfig(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.EGLGetCurrentEGLConfigRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_EGL_GetCurrentEGLConfig", "SDL3") + )(); + + [return: NativeTypeName("SDL_EGLConfig")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLConfig")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* EGLGetCurrentEGLConfigRaw() => DllImport.EGLGetCurrentEGLConfigRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.EGLGetCurrentEGLDisplay() => (void*)((ISdl)this).EGLGetCurrentEGLDisplayRaw(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr EGLGetCurrentEGLDisplay() => DllImport.EGLGetCurrentEGLDisplay(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.EGLGetCurrentEGLDisplayRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_EGL_GetCurrentEGLDisplay", "SDL3") + )(); + + [return: NativeTypeName("SDL_EGLDisplay")] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetCurrentEGLDisplay")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* EGLGetCurrentEGLDisplayRaw() => DllImport.EGLGetCurrentEGLDisplayRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + delegate* unmanaged ISdl.EGLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ) => + ( + (delegate* unmanaged>) + nativeContext.LoadFunction("EGLGetProcAddress", "SDL3") + )(proc); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "EGLGetProcAddress")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ) => DllImport.EGLGetProcAddress(proc); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + delegate* unmanaged ISdl.EGLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) + { + fixed (sbyte* __dsl_proc = proc) + { + return (delegate* unmanaged)((ISdl)this).EGLGetProcAddress(__dsl_proc); + } + } + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetProcAddress")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static delegate* unmanaged EGLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) => DllImport.EGLGetProcAddress(proc); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.EGLGetWindowEGLSurface(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("EGLGetWindowEGLSurface", "SDL3") + )(window); + + [return: NativeTypeName("SDL_EGLSurface")] + [NativeFunction("SDL3", EntryPoint = "EGLGetWindowEGLSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* EGLGetWindowEGLSurface(SDL_Window* window) => + DllImport.EGLGetWindowEGLSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.EGLGetWindowEGLSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (void*)((ISdl)this).EGLGetWindowEGLSurface(__dsl_window); + } + } + + [return: NativeTypeName("SDL_EGLSurface")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EGL_GetWindowEGLSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr EGLGetWindowEGLSurface(Ref window) => + DllImport.EGLGetWindowEGLSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.EGLSetEGLAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + delegate* unmanaged platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] delegate* unmanaged surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] delegate* unmanaged contextAttribCallback + ) => + ( + (delegate* unmanaged< + delegate* unmanaged, + delegate* unmanaged, + delegate* unmanaged, + void>) + nativeContext.LoadFunction("EGLSetEGLAttributeCallbacks", "SDL3") + )(platformAttribCallback, surfaceAttribCallback, contextAttribCallback); + + [NativeFunction("SDL3", EntryPoint = "EGLSetEGLAttributeCallbacks")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void EGLSetEGLAttributeCallbacks( + [NativeTypeName("SDL_EGLAttribArrayCallback")] + delegate* unmanaged platformAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] delegate* unmanaged surfaceAttribCallback, + [NativeTypeName("SDL_EGLIntArrayCallback")] delegate* unmanaged contextAttribCallback + ) => + DllImport.EGLSetEGLAttributeCallbacks( + platformAttribCallback, + surfaceAttribCallback, + contextAttribCallback + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.EnableScreenSaver() => + ((delegate* unmanaged)nativeContext.LoadFunction("EnableScreenSaver", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "EnableScreenSaver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int EnableScreenSaver() => DllImport.EnableScreenSaver(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.EnumerateDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged< + sbyte*, + delegate* unmanaged, + void*, + int>) + nativeContext.LoadFunction("EnumerateDirectory", "SDL3") + )(path, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "EnumerateDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int EnumerateDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.EnumerateDirectory(path, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.EnumerateDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_path = path) + { + return (int)((ISdl)this).EnumerateDirectory(__dsl_path, callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int EnumerateDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.EnumerateDirectory(path, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged, void*, int>) + nativeContext.LoadFunction("EnumerateProperties", "SDL3") + )(props, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "EnumerateProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.EnumerateProperties(props, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (int)((ISdl)this).EnumerateProperties(props, callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int EnumerateProperties( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("SDL_EnumeratePropertiesCallback")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.EnumerateProperties(props, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.EnumerateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged< + SDL_Storage*, + sbyte*, + delegate* unmanaged, + void*, + int>) + nativeContext.LoadFunction("EnumerateStorageDirectory", "SDL3") + )(storage, path, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "EnumerateStorageDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int EnumerateStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.EnumerateStorageDirectory(storage, path, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.EnumerateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int) + ((ISdl)this).EnumerateStorageDirectory( + __dsl_storage, + __dsl_path, + callback, + __dsl_userdata + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EnumerateStorageDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int EnumerateStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("SDL_EnumerateDirectoryCallback")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.EnumerateStorageDirectory(storage, path, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.Error(Errorcode code) => + ((delegate* unmanaged)nativeContext.LoadFunction("Error", "SDL3"))(code); + + [NativeFunction("SDL3", EntryPoint = "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); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool EventEnabled([NativeTypeName("Uint32")] uint type) => + DllImport.EventEnabled(type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.EventEnabledRaw([NativeTypeName("Uint32")] uint type) => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_EventEnabled", "SDL3"))( + type + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_EventEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int EventEnabledRaw([NativeTypeName("Uint32")] uint type) => + DllImport.EventEnabledRaw(type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FillSurfaceRect( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("Uint32")] uint color + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("FillSurfaceRect", "SDL3") + )(dst, rect, color); + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("Uint32")] uint color + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (Surface* __dsl_dst = dst) + { + return (int)((ISdl)this).FillSurfaceRect(__dsl_dst, __dsl_rect, color); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int count, + [NativeTypeName("Uint32")] uint color + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("FillSurfaceRects", "SDL3") + )(dst, rects, count, color); + + [NativeFunction("SDL3", EntryPoint = "FillSurfaceRects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FillSurfaceRects( + Surface* dst, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int count, + [NativeTypeName("Uint32")] uint color + ) => DllImport.FillSurfaceRects(dst, rects, count, color); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FillSurfaceRects( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int count, + [NativeTypeName("Uint32")] uint color + ) + { + fixed (Rect* __dsl_rects = rects) + fixed (Surface* __dsl_dst = dst) + { + return (int)((ISdl)this).FillSurfaceRects(__dsl_dst, __dsl_rects, count, color); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FillSurfaceRects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FillSurfaceRects( + Ref dst, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int count, + [NativeTypeName("Uint32")] uint color + ) => DllImport.FillSurfaceRects(dst, rects, count, color); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => + ( + (delegate* unmanaged, void*, void>) + nativeContext.LoadFunction("FilterEvents", "SDL3") + )(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "FilterEvents")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => DllImport.FilterEvents(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).FilterEvents(filter, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FilterEvents")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FilterEvents( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) => DllImport.FilterEvents(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FlashWindow(SDL_Window* window, FlashOperation operation) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("FlashWindow", "SDL3") + )(window, operation); + + [NativeFunction("SDL3", EntryPoint = "FlashWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FlashWindow(SDL_Window* window, FlashOperation operation) => + DllImport.FlashWindow(window, operation); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FlashWindow(Ref window, FlashOperation operation) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).FlashWindow(__dsl_window, operation); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlashWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FlashWindow(Ref window, FlashOperation operation) => + DllImport.FlashWindow(window, operation); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FlipSurface(Surface* surface, FlipMode flip) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("FlipSurface", "SDL3") + )(surface, flip); + + [NativeFunction("SDL3", EntryPoint = "FlipSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FlipSurface(Surface* surface, FlipMode flip) => + DllImport.FlipSurface(surface, flip); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FlipSurface(Ref surface, FlipMode flip) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).FlipSurface(__dsl_surface, flip); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlipSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FlipSurface(Ref surface, FlipMode flip) => + DllImport.FlipSurface(surface, flip); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FlushAudioStream(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("FlushAudioStream", "SDL3") + )(stream); + + [NativeFunction("SDL3", EntryPoint = "FlushAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FlushAudioStream(SDL_AudioStream* stream) => + DllImport.FlushAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FlushAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).FlushAudioStream(__dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FlushAudioStream(Ref stream) => + DllImport.FlushAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.FlushEvent([NativeTypeName("Uint32")] uint type) => + ((delegate* unmanaged)nativeContext.LoadFunction("FlushEvent", "SDL3"))(type); + + [NativeFunction("SDL3", EntryPoint = "FlushEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FlushEvent([NativeTypeName("Uint32")] uint type) => + DllImport.FlushEvent(type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.FlushEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => + ((delegate* unmanaged)nativeContext.LoadFunction("FlushEvents", "SDL3"))( + minType, + maxType + ); + + [NativeFunction("SDL3", EntryPoint = "FlushEvents")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void FlushEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => DllImport.FlushEvents(minType, maxType); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FlushRenderer(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("FlushRenderer", "SDL3") + )(renderer); + + [NativeFunction("SDL3", EntryPoint = "FlushRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FlushRenderer(SDL_Renderer* renderer) => DllImport.FlushRenderer(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.FlushRenderer(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).FlushRenderer(__dsl_renderer); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_FlushRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int FlushRenderer(Ref renderer) => + DllImport.FlushRenderer(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GamepadConnected(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GamepadConnected", "SDL3") + )(gamepad); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadConnected")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GamepadConnected(SDL_Gamepad* gamepad) => DllImport.GamepadConnected(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GamepadConnected(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)((ISdl)this).GamepadConnected(__dsl_gamepad); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadConnected")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GamepadConnected(Ref gamepad) => + DllImport.GamepadConnected(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GamepadEventsEnabled() => + (MaybeBool)(int)((ISdl)this).GamepadEventsEnabledRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GamepadEventsEnabled() => DllImport.GamepadEventsEnabled(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GamepadEventsEnabledRaw() => + ( + (delegate* unmanaged)nativeContext.LoadFunction("SDL_GamepadEventsEnabled", "SDL3") + )(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadEventsEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GamepadEventsEnabledRaw() => DllImport.GamepadEventsEnabledRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GamepadHasAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GamepadHasAxis", "SDL3") + )(gamepad, axis); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GamepadHasAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + DllImport.GamepadHasAxis(gamepad, axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GamepadHasAxis(Ref gamepad, GamepadAxis axis) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)((ISdl)this).GamepadHasAxis(__dsl_gamepad, axis); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GamepadHasAxis(Ref gamepad, GamepadAxis axis) => + DllImport.GamepadHasAxis(gamepad, axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GamepadHasButton(SDL_Gamepad* gamepad, GamepadButton button) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GamepadHasButton", "SDL3") + )(gamepad, button); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GamepadHasButton(SDL_Gamepad* gamepad, GamepadButton button) => + DllImport.GamepadHasButton(gamepad, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GamepadHasButton(Ref gamepad, GamepadButton button) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)((ISdl)this).GamepadHasButton(__dsl_gamepad, button); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GamepadHasButton(Ref gamepad, GamepadButton button) => + DllImport.GamepadHasButton(gamepad, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GamepadHasSensor(SDL_Gamepad* gamepad, SensorType type) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GamepadHasSensor", "SDL3") + )(gamepad, type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadHasSensor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GamepadHasSensor(SDL_Gamepad* gamepad, SensorType type) => + DllImport.GamepadHasSensor(gamepad, type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GamepadHasSensor(Ref gamepad, SensorType type) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)((ISdl)this).GamepadHasSensor(__dsl_gamepad, type); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadHasSensor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GamepadHasSensor(Ref gamepad, SensorType type) => + DllImport.GamepadHasSensor(gamepad, type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GamepadSensorEnabled(SDL_Gamepad* gamepad, SensorType type) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GamepadSensorEnabled", "SDL3") + )(gamepad, type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GamepadSensorEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GamepadSensorEnabled(SDL_Gamepad* gamepad, SensorType type) => + DllImport.GamepadSensorEnabled(gamepad, type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GamepadSensorEnabled(Ref gamepad, SensorType type) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (MaybeBool)(int)((ISdl)this).GamepadSensorEnabled(__dsl_gamepad, type); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GamepadSensorEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GamepadSensorEnabled(Ref gamepad, SensorType type) => + DllImport.GamepadSensorEnabled(gamepad, type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + delegate* unmanaged ISdl.GetAssertionHandler( + void** puserdata + ) => + ( + (delegate* unmanaged>) + nativeContext.LoadFunction("GetAssertionHandler", "SDL3") + )(puserdata); + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetAssertionHandler")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static delegate* unmanaged GetAssertionHandler( + void** puserdata + ) => DllImport.GetAssertionHandler(puserdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + delegate* unmanaged ISdl.GetAssertionHandler(Ref2D puserdata) + { + fixed (void** __dsl_puserdata = puserdata) + { + return (delegate* unmanaged) + ((ISdl)this).GetAssertionHandler(__dsl_puserdata); + } + } + + [return: NativeTypeName("SDL_AssertionHandler")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionHandler")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static delegate* unmanaged GetAssertionHandler( + Ref2D puserdata + ) => DllImport.GetAssertionHandler(puserdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAssertionReport() => (AssertData*)((ISdl)this).GetAssertionReportRaw(); + + [return: NativeTypeName("const SDL_AssertData *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAssertionReport() => DllImport.GetAssertionReport(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + AssertData* ISdl.GetAssertionReportRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetAssertionReport", "SDL3") + )(); + + [return: NativeTypeName("const SDL_AssertData *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAssertionReport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static AssertData* GetAssertionReportRaw() => DllImport.GetAssertionReportRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetAudioCaptureDevices(int* count) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioCaptureDevices", "SDL3") + )(count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioCaptureDevices")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetAudioCaptureDevices(int* count) => + DllImport.GetAudioCaptureDevices(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAudioCaptureDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetAudioCaptureDevices(__dsl_count); + } + } + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioCaptureDevices")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAudioCaptureDevices(Ref count) => + DllImport.GetAudioCaptureDevices(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + AudioSpec* spec, + int* sample_frames + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioDeviceFormat", "SDL3") + )(devid, spec, sample_frames); + + [NativeFunction("SDL3", EntryPoint = "GetAudioDeviceFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref spec, + 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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAudioDeviceFormat( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + Ref spec, + Ref sample_frames + ) => DllImport.GetAudioDeviceFormat(devid, spec, sample_frames); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + (sbyte*)((ISdl)this).GetAudioDeviceNameRaw(devid); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAudioDeviceName([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + DllImport.GetAudioDeviceName(devid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetAudioDeviceNameRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetAudioDeviceName", "SDL3") + )(devid); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDeviceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetAudioDeviceNameRaw([NativeTypeName("SDL_AudioDeviceID")] uint devid) => + DllImport.GetAudioDeviceNameRaw(devid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAudioDriver(int index) => (sbyte*)((ISdl)this).GetAudioDriverRaw(index); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAudioDriver(int index) => DllImport.GetAudioDriver(index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetAudioDriverRaw(int index) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetAudioDriver", "SDL3") + )(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetAudioDriverRaw(int index) => DllImport.GetAudioDriverRaw(index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetAudioOutputDevices(int* count) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioOutputDevices", "SDL3") + )(count); + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "GetAudioOutputDevices")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetAudioOutputDevices(int* count) => DllImport.GetAudioOutputDevices(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetAudioOutputDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetAudioOutputDevices(__dsl_count); + } + } + + [return: NativeTypeName("SDL_AudioDeviceID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioOutputDevices")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetAudioOutputDevices(Ref count) => + DllImport.GetAudioOutputDevices(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAudioStreamAvailable(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioStreamAvailable", "SDL3") + )(stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamAvailable")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAudioStreamAvailable(SDL_AudioStream* stream) => + DllImport.GetAudioStreamAvailable(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAudioStreamAvailable(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).GetAudioStreamAvailable(__dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamAvailable")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAudioStreamAvailable(Ref stream) => + DllImport.GetAudioStreamAvailable(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAudioStreamData(SDL_AudioStream* stream, void* buf, int len) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioStreamData", "SDL3") + )(stream, buf, len); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAudioStreamData(SDL_AudioStream* stream, void* buf, int len) => + DllImport.GetAudioStreamData(stream, buf, len); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAudioStreamData(Ref stream, Ref buf, int len) + { + fixed (void* __dsl_buf = buf) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).GetAudioStreamData(__dsl_stream, __dsl_buf, len); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAudioStreamData(Ref stream, Ref buf, int len) => + DllImport.GetAudioStreamData(stream, buf, len); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetAudioStreamDevice(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioStreamDevice", "SDL3") + )(stream); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetAudioStreamDevice(SDL_AudioStream* stream) => + DllImport.GetAudioStreamDevice(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetAudioStreamDevice(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (uint)((ISdl)this).GetAudioStreamDevice(__dsl_stream); + } + } + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetAudioStreamDevice(Ref stream) => + DllImport.GetAudioStreamDevice(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAudioStreamFormat( + SDL_AudioStream* stream, + AudioSpec* src_spec, + AudioSpec* dst_spec + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioStreamFormat", "SDL3") + )(stream, src_spec, dst_spec); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAudioStreamFormat( + SDL_AudioStream* stream, + AudioSpec* src_spec, + AudioSpec* dst_spec + ) => DllImport.GetAudioStreamFormat(stream, src_spec, dst_spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAudioStreamFormat( + Ref stream, + Ref src_spec, + Ref dst_spec + ) + { + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + fixed (AudioSpec* __dsl_src_spec = src_spec) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int) + ((ISdl)this).GetAudioStreamFormat(__dsl_stream, __dsl_src_spec, __dsl_dst_spec); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAudioStreamFormat( + Ref stream, + Ref src_spec, + Ref dst_spec + ) => DllImport.GetAudioStreamFormat(stream, src_spec, dst_spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetAudioStreamFrequencyRatio(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioStreamFrequencyRatio", "SDL3") + )(stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamFrequencyRatio")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetAudioStreamFrequencyRatio(SDL_AudioStream* stream) => + DllImport.GetAudioStreamFrequencyRatio(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetAudioStreamFrequencyRatio(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (float)((ISdl)this).GetAudioStreamFrequencyRatio(__dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamFrequencyRatio")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetAudioStreamFrequencyRatio(Ref stream) => + DllImport.GetAudioStreamFrequencyRatio(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetAudioStreamProperties(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioStreamProperties", "SDL3") + )(stream); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetAudioStreamProperties(SDL_AudioStream* stream) => + DllImport.GetAudioStreamProperties(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetAudioStreamProperties(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (uint)((ISdl)this).GetAudioStreamProperties(__dsl_stream); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetAudioStreamProperties(Ref stream) => + DllImport.GetAudioStreamProperties(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAudioStreamQueued(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetAudioStreamQueued", "SDL3") + )(stream); + + [NativeFunction("SDL3", EntryPoint = "GetAudioStreamQueued")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAudioStreamQueued(SDL_AudioStream* stream) => + DllImport.GetAudioStreamQueued(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetAudioStreamQueued(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).GetAudioStreamQueued(__dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetAudioStreamQueued")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetAudioStreamQueued(Ref stream) => + DllImport.GetAudioStreamQueued(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetBasePath() => (sbyte*)((ISdl)this).GetBasePathRaw(); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBasePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetBasePath() => DllImport.GetBasePath(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetBasePathRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetBasePath", "SDL3"))(); + + [return: NativeTypeName("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( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetBooleanProperty", "SDL3") + )(props, name, default_value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetBooleanProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ) => DllImport.GetBooleanProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool) + (int)((ISdl)this).GetBooleanProperty(props, __dsl_name, (int)default_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetBooleanProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_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) + 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) + nativeContext.LoadFunction("GetCameraDevicePosition", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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)nativeContext.LoadFunction("GetCameraDevices", "SDL3"))( + count + ); + + [return: NativeTypeName("SDL_CameraDeviceID *")] + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GetCameraDeviceSupportedFormats", "SDL3") + )(devid, count); + + [NativeFunction("SDL3", EntryPoint = "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); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetCameraDriver(int index) => DllImport.GetCameraDriver(index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetCameraDriverRaw(int index) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetCameraDriver", "SDL3") + )(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetCameraDriverRaw(int index) => DllImport.GetCameraDriverRaw(index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCameraFormat(SDL_Camera* camera, CameraSpec* spec) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetCameraFormat", "SDL3") + )(camera, spec); + + [NativeFunction("SDL3", EntryPoint = "GetCameraFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCameraFormat(SDL_Camera* camera, CameraSpec* spec) => + DllImport.GetCameraFormat(camera, spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCameraFormat(Ref camera, Ref spec) + { + fixed (CameraSpec* __dsl_spec = spec) + fixed (SDL_Camera* __dsl_camera = camera) + { + return (int)((ISdl)this).GetCameraFormat(__dsl_camera, __dsl_spec); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCameraFormat(Ref camera, Ref spec) => + DllImport.GetCameraFormat(camera, spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetCameraInstanceID(SDL_Camera* camera) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetCameraInstanceID", "SDL3") + )(camera); + + [return: NativeTypeName("SDL_CameraDeviceID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetCameraInstanceID(SDL_Camera* camera) => + DllImport.GetCameraInstanceID(camera); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetCameraInstanceID(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + return (uint)((ISdl)this).GetCameraInstanceID(__dsl_camera); + } + } + + [return: NativeTypeName("SDL_CameraDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetCameraInstanceID(Ref camera) => + DllImport.GetCameraInstanceID(camera); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCameraPermissionState(SDL_Camera* camera) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetCameraPermissionState", "SDL3") + )(camera); + + [NativeFunction("SDL3", EntryPoint = "GetCameraPermissionState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCameraPermissionState(SDL_Camera* camera) => + DllImport.GetCameraPermissionState(camera); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCameraPermissionState(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + return (int)((ISdl)this).GetCameraPermissionState(__dsl_camera); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraPermissionState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCameraPermissionState(Ref camera) => + DllImport.GetCameraPermissionState(camera); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetCameraProperties(SDL_Camera* camera) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetCameraProperties", "SDL3") + )(camera); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetCameraProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetCameraProperties(SDL_Camera* camera) => + DllImport.GetCameraProperties(camera); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetCameraProperties(Ref camera) + { + fixed (SDL_Camera* __dsl_camera = camera) + { + return (uint)((ISdl)this).GetCameraProperties(__dsl_camera); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCameraProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetCameraProperties(Ref camera) => + DllImport.GetCameraProperties(camera); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.GetClipboardData( + [NativeTypeName("const char *")] sbyte* mime_type, + [NativeTypeName("size_t *")] nuint* size + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetClipboardData", "SDL3") + )(mime_type, size); + + [NativeFunction("SDL3", EntryPoint = "GetClipboardData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* GetClipboardData( + [NativeTypeName("const char *")] sbyte* mime_type, + [NativeTypeName("size_t *")] nuint* size + ) => DllImport.GetClipboardData(mime_type, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetClipboardData( + [NativeTypeName("const char *")] Ref mime_type, + [NativeTypeName("size_t *")] Ref size + ) + { + fixed (nuint* __dsl_size = size) + fixed (sbyte* __dsl_mime_type = mime_type) + { + return (void*)((ISdl)this).GetClipboardData(__dsl_mime_type, __dsl_size); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetClipboardData( + [NativeTypeName("const char *")] Ref mime_type, + [NativeTypeName("size_t *")] Ref size + ) => DllImport.GetClipboardData(mime_type, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetClipboardText() => (sbyte*)((ISdl)this).GetClipboardTextRaw(); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetClipboardText() => DllImport.GetClipboardText(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetClipboardTextRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetClipboardText", "SDL3"))(); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClipboardText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetClipboardTextRaw() => DllImport.GetClipboardTextRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + DisplayMode* ISdl.GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] int include_high_density_modes + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetClosestFullscreenDisplayMode", "SDL3") + )(displayID, w, h, refresh_rate, include_high_density_modes); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetClosestFullscreenDisplayMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static DisplayMode* GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] int include_high_density_modes + ) => + DllImport.GetClosestFullscreenDisplayMode( + displayID, + w, + h, + refresh_rate, + include_high_density_modes + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr 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 + ); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetClosestFullscreenDisplayMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetClosestFullscreenDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int w, + int h, + float refresh_rate, + [NativeTypeName("SDL_bool")] MaybeBool include_high_density_modes + ) => + DllImport.GetClosestFullscreenDisplayMode( + displayID, + w, + h, + refresh_rate, + include_high_density_modes + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCPUCacheLineSize() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetCPUCacheLineSize", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCacheLineSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCPUCacheLineSize() => DllImport.GetCPUCacheLineSize(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCPUCount() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetCPUCount", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GetCPUCount")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCPUCount() => DllImport.GetCPUCount(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetCurrentAudioDriver() => (sbyte*)((ISdl)this).GetCurrentAudioDriverRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetCurrentAudioDriver() => DllImport.GetCurrentAudioDriver(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetCurrentAudioDriverRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetCurrentAudioDriver", "SDL3") + )(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentAudioDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetCurrentAudioDriverRaw() => DllImport.GetCurrentAudioDriverRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetCurrentCameraDriver() => (sbyte*)((ISdl)this).GetCurrentCameraDriverRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetCurrentCameraDriver() => DllImport.GetCurrentCameraDriver(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetCurrentCameraDriverRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetCurrentCameraDriver", "SDL3") + )(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentCameraDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetCurrentCameraDriverRaw() => DllImport.GetCurrentCameraDriverRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetCurrentDisplayMode([NativeTypeName("SDL_DisplayID")] uint displayID) => + (DisplayMode*)((ISdl)this).GetCurrentDisplayModeRaw(displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetCurrentDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => DllImport.GetCurrentDisplayMode(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + DisplayMode* ISdl.GetCurrentDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetCurrentDisplayMode", "SDL3") + )(displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentDisplayMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static DisplayMode* GetCurrentDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => DllImport.GetCurrentDisplayModeRaw(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + DisplayOrientation ISdl.GetCurrentDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetCurrentDisplayOrientation", "SDL3") + )(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentDisplayOrientation")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static DisplayOrientation GetCurrentDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => DllImport.GetCurrentDisplayOrientation(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCurrentRenderOutputSize(SDL_Renderer* renderer, int* w, int* h) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetCurrentRenderOutputSize", "SDL3") + )(renderer, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentRenderOutputSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCurrentRenderOutputSize(SDL_Renderer* renderer, int* w, int* h) => + DllImport.GetCurrentRenderOutputSize(renderer, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCurrentRenderOutputSize(Ref renderer, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).GetCurrentRenderOutputSize(__dsl_renderer, __dsl_w, __dsl_h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentRenderOutputSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCurrentRenderOutputSize( + Ref renderer, + Ref w, + Ref h + ) => DllImport.GetCurrentRenderOutputSize(renderer, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetCurrentThreadID() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetCurrentThreadID", "SDL3"))(); + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetCurrentThreadID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetCurrentThreadID() => DllImport.GetCurrentThreadID(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetCurrentTime", "SDL3"))( + ticks + ); + + [NativeFunction("SDL3", EntryPoint = "GetCurrentTime")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCurrentTime([NativeTypeName("SDL_Time *")] long* ticks) => + DllImport.GetCurrentTime(ticks); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) + { + fixed (long* __dsl_ticks = ticks) + { + return (int)((ISdl)this).GetCurrentTime(__dsl_ticks); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentTime")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetCurrentTime([NativeTypeName("SDL_Time *")] Ref ticks) => + DllImport.GetCurrentTime(ticks); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetCurrentVideoDriver() => (sbyte*)((ISdl)this).GetCurrentVideoDriverRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetCurrentVideoDriver() => DllImport.GetCurrentVideoDriver(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetCurrentVideoDriverRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetCurrentVideoDriver", "SDL3") + )(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCurrentVideoDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetCurrentVideoDriverRaw() => DllImport.GetCurrentVideoDriverRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetCursor() => (SDL_Cursor*)((ISdl)this).GetCursorRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetCursor() => DllImport.GetCursor(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Cursor* ISdl.GetCursorRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetCursor", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Cursor* GetCursorRaw() => DllImport.GetCursorRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetDayOfWeek(int year, int month, int day) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetDayOfWeek", "SDL3") + )(year, month, day); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfWeek")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetDayOfWeek(int year, int month, int day) => + DllImport.GetDayOfWeek(year, month, day); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetDayOfYear(int year, int month, int day) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetDayOfYear", "SDL3") + )(year, month, day); + + [NativeFunction("SDL3", EntryPoint = "GetDayOfYear")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetDayOfYear(int year, int month, int day) => + DllImport.GetDayOfYear(year, month, day); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetDaysInMonth(int year, int month) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetDaysInMonth", "SDL3"))( + year, + month + ); + + [NativeFunction("SDL3", EntryPoint = "GetDaysInMonth")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetDaysInMonth(int year, int month) => DllImport.GetDaysInMonth(year, month); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + delegate* unmanaged ISdl.GetDefaultAssertionHandler() => + ( + (delegate* unmanaged>) + nativeContext.LoadFunction("GetDefaultAssertionHandler", "SDL3") + )(); + + [return: NativeTypeName("SDL_AssertionHandler")] + [NativeFunction("SDL3", EntryPoint = "GetDefaultAssertionHandler")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static delegate* unmanaged< + AssertData*, + void*, + AssertState> GetDefaultAssertionHandler() => DllImport.GetDefaultAssertionHandler(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetDefaultCursor() => (SDL_Cursor*)((ISdl)this).GetDefaultCursorRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetDefaultCursor() => DllImport.GetDefaultCursor(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Cursor* ISdl.GetDefaultCursorRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetDefaultCursor", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetDefaultCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Cursor* GetDefaultCursorRaw() => DllImport.GetDefaultCursorRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetDesktopDisplayMode([NativeTypeName("SDL_DisplayID")] uint displayID) => + (DisplayMode*)((ISdl)this).GetDesktopDisplayModeRaw(displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetDesktopDisplayMode( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => DllImport.GetDesktopDisplayMode(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + DisplayMode* ISdl.GetDesktopDisplayModeRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetDesktopDisplayMode", "SDL3") + )(displayID); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDesktopDisplayMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static DisplayMode* GetDesktopDisplayModeRaw( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => DllImport.GetDesktopDisplayModeRaw(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetDisplayBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetDisplayBounds", "SDL3") + )(displayID, rect); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayBounds")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + { + fixed (Rect* __dsl_rect = rect) + { + return (int)((ISdl)this).GetDisplayBounds(displayID, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayBounds")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetDisplayBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) => DllImport.GetDisplayBounds(displayID, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uint displayID) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetDisplayContentScale", "SDL3") + )(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayContentScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetDisplayContentScale([NativeTypeName("SDL_DisplayID")] uint displayID) => + DllImport.GetDisplayContentScale(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Point* point) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetDisplayForPoint", "SDL3") + )(point); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForPoint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Point* point) => + DllImport.GetDisplayForPoint(point); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Ref point) + { + fixed (Point* __dsl_point = point) + { + return (uint)((ISdl)this).GetDisplayForPoint(__dsl_point); + } + } + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForPoint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetDisplayForPoint([NativeTypeName("const SDL_Point *")] Ref point) => + DllImport.GetDisplayForPoint(point); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetDisplayForRect", "SDL3"))( + rect + ); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => + DllImport.GetDisplayForRect(rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (uint)((ISdl)this).GetDisplayForRect(__dsl_rect); + } + } + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetDisplayForRect([NativeTypeName("const SDL_Rect *")] Ref rect) => + DllImport.GetDisplayForRect(rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetDisplayForWindow(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetDisplayForWindow", "SDL3") + )(window); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayForWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetDisplayForWindow(SDL_Window* window) => + DllImport.GetDisplayForWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetDisplayForWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)((ISdl)this).GetDisplayForWindow(__dsl_window); + } + } + + [return: NativeTypeName("SDL_DisplayID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayForWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetDisplayForWindow(Ref window) => + DllImport.GetDisplayForWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetDisplayName([NativeTypeName("SDL_DisplayID")] uint displayID) => + (sbyte*)((ISdl)this).GetDisplayNameRaw(displayID); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetDisplayName([NativeTypeName("SDL_DisplayID")] uint displayID) => + DllImport.GetDisplayName(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetDisplayNameRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetDisplayName", "SDL3") + )(displayID); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetDisplayNameRaw([NativeTypeName("SDL_DisplayID")] uint displayID) => + DllImport.GetDisplayNameRaw(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayID) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetDisplayProperties", "SDL3") + )(displayID); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetDisplayProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetDisplayProperties([NativeTypeName("SDL_DisplayID")] uint displayID) => + DllImport.GetDisplayProperties(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetDisplays(int* count) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetDisplays", "SDL3"))( + count + ); + + [return: NativeTypeName("SDL_DisplayID *")] + [NativeFunction("SDL3", EntryPoint = "GetDisplays")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetDisplays(int* count) => DllImport.GetDisplays(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetDisplays(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetDisplays(__dsl_count); + } + } + + [return: NativeTypeName("SDL_DisplayID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplays")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetDisplays(Ref count) => DllImport.GetDisplays(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetDisplayUsableBounds([NativeTypeName("SDL_DisplayID")] uint displayID, Rect* rect) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetDisplayUsableBounds", "SDL3") + )(displayID, rect); + + [NativeFunction("SDL3", EntryPoint = "GetDisplayUsableBounds")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Rect* rect + ) => DllImport.GetDisplayUsableBounds(displayID, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + { + return (int)((ISdl)this).GetDisplayUsableBounds(displayID, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetDisplayUsableBounds")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetDisplayUsableBounds( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref rect + ) => DllImport.GetDisplayUsableBounds(displayID, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetError() => (sbyte*)((ISdl)this).GetErrorRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetError() => DllImport.GetError(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetErrorRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetError", "SDL3"))(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetError")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetErrorRaw() => DllImport.GetErrorRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + void** userdata + ) => + ( + (delegate* unmanaged*, void**, int>) + nativeContext.LoadFunction("GetEventFilter", "SDL3") + )(filter, userdata); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetEventFilter")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + void** userdata + ) => DllImport.GetEventFilter(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + Ref2D userdata + ) + { + fixed (void** __dsl_userdata = userdata) + { + return (MaybeBool)(int)((ISdl)this).GetEventFilter(filter, __dsl_userdata); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetEventFilter")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetEventFilter( + [NativeTypeName("SDL_EventFilter *")] delegate* unmanaged* filter, + Ref2D userdata + ) => DllImport.GetEventFilter(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float default_value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetFloatProperty", "SDL3") + )(props, name, default_value); + + [NativeFunction("SDL3", EntryPoint = "GetFloatProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float default_value + ) => DllImport.GetFloatProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (float)((ISdl)this).GetFloatProperty(props, __dsl_name, default_value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFloatProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float default_value + ) => DllImport.GetFloatProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + DisplayMode** ISdl.GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int* count + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetFullscreenDisplayModes", "SDL3") + )(displayID, count); + + [return: NativeTypeName("const SDL_DisplayMode **")] + [NativeFunction("SDL3", EntryPoint = "GetFullscreenDisplayModes")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static DisplayMode** GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + int* count + ) => DllImport.GetFullscreenDisplayModes(displayID, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (DisplayMode**)((ISdl)this).GetFullscreenDisplayModes(displayID, __dsl_count); + } + } + + [return: NativeTypeName("const SDL_DisplayMode **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetFullscreenDisplayModes")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GetFullscreenDisplayModes( + [NativeTypeName("SDL_DisplayID")] uint displayID, + Ref count + ) => DllImport.GetFullscreenDisplayModes(displayID, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadAppleSFSymbolsNameForAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadAppleSFSymbolsNameForAxis", "SDL3") + )(gamepad, axis); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadAppleSFSymbolsNameForAxis( + SDL_Gamepad* gamepad, + GamepadAxis axis + ) => DllImport.GetGamepadAppleSFSymbolsNameForAxis(gamepad, axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadAppleSFSymbolsNameForAxis(Ref gamepad, GamepadAxis axis) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)((ISdl)this).GetGamepadAppleSFSymbolsNameForAxis(__dsl_gamepad, axis); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadAppleSFSymbolsNameForAxis( + Ref gamepad, + GamepadAxis axis + ) => DllImport.GetGamepadAppleSFSymbolsNameForAxis(gamepad, axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadAppleSFSymbolsNameForButton(SDL_Gamepad* gamepad, GamepadButton button) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadAppleSFSymbolsNameForButton", "SDL3") + )(gamepad, button); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAppleSFSymbolsNameForButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadAppleSFSymbolsNameForButton( + SDL_Gamepad* gamepad, + GamepadButton button + ) => DllImport.GetGamepadAppleSFSymbolsNameForButton(gamepad, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadAppleSFSymbolsNameForButton( + Ref gamepad, + GamepadButton button + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*) + ((ISdl)this).GetGamepadAppleSFSymbolsNameForButton(__dsl_gamepad, button); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAppleSFSymbolsNameForButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadAppleSFSymbolsNameForButton( + Ref gamepad, + GamepadButton button + ) => DllImport.GetGamepadAppleSFSymbolsNameForButton(gamepad, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + short ISdl.GetGamepadAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadAxis", "SDL3") + )(gamepad, axis); + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static short GetGamepadAxis(SDL_Gamepad* gamepad, GamepadAxis axis) => + DllImport.GetGamepadAxis(gamepad, axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + short ISdl.GetGamepadAxis(Ref gamepad, GamepadAxis axis) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (short)((ISdl)this).GetGamepadAxis(__dsl_gamepad, axis); + } + } + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static short GetGamepadAxis(Ref gamepad, GamepadAxis axis) => + DllImport.GetGamepadAxis(gamepad, axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadAxis ISdl.GetGamepadAxisFromString([NativeTypeName("const char *")] sbyte* str) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadAxisFromString", "SDL3") + )(str); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadAxisFromString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadAxis GetGamepadAxisFromString( + [NativeTypeName("const char *")] sbyte* str + ) => DllImport.GetGamepadAxisFromString(str); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadAxis ISdl.GetGamepadAxisFromString([NativeTypeName("const char *")] Ref str) + { + fixed (sbyte* __dsl_str = str) + { + return (GamepadAxis)((ISdl)this).GetGamepadAxisFromString(__dsl_str); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadAxisFromString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadAxis GetGamepadAxisFromString( + [NativeTypeName("const char *")] Ref str + ) => DllImport.GetGamepadAxisFromString(str); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadBinding** ISdl.GetGamepadBindings(SDL_Gamepad* gamepad, int* count) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadBindings", "SDL3") + )(gamepad, count); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadBindings")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadBinding** GetGamepadBindings(SDL_Gamepad* gamepad, int* count) => + DllImport.GetGamepadBindings(gamepad, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GetGamepadBindings(Ref gamepad, Ref count) + { + fixed (int* __dsl_count = count) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadBinding**)((ISdl)this).GetGamepadBindings(__dsl_gamepad, __dsl_count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadBindings")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GetGamepadBindings( + Ref gamepad, + Ref count + ) => DllImport.GetGamepadBindings(gamepad, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetGamepadButton(SDL_Gamepad* gamepad, GamepadButton button) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadButton", "SDL3") + )(gamepad, button); + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetGamepadButton(SDL_Gamepad* gamepad, GamepadButton button) => + DllImport.GetGamepadButton(gamepad, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetGamepadButton(Ref gamepad, GamepadButton button) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (byte)((ISdl)this).GetGamepadButton(__dsl_gamepad, button); + } + } + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetGamepadButton(Ref gamepad, GamepadButton button) => + DllImport.GetGamepadButton(gamepad, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadButton ISdl.GetGamepadButtonFromString([NativeTypeName("const char *")] sbyte* str) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadButtonFromString", "SDL3") + )(str); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonFromString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] sbyte* str + ) => DllImport.GetGamepadButtonFromString(str); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadButton ISdl.GetGamepadButtonFromString([NativeTypeName("const char *")] Ref str) + { + fixed (sbyte* __dsl_str = str) + { + return (GamepadButton)((ISdl)this).GetGamepadButtonFromString(__dsl_str); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonFromString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadButton GetGamepadButtonFromString( + [NativeTypeName("const char *")] Ref str + ) => DllImport.GetGamepadButtonFromString(str); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadButtonLabel ISdl.GetGamepadButtonLabel(SDL_Gamepad* gamepad, GamepadButton button) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadButtonLabel", "SDL3") + )(gamepad, button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabel")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadButtonLabel GetGamepadButtonLabel( + SDL_Gamepad* gamepad, + GamepadButton button + ) => DllImport.GetGamepadButtonLabel(gamepad, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadButtonLabel ISdl.GetGamepadButtonLabel(Ref gamepad, GamepadButton button) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadButtonLabel)((ISdl)this).GetGamepadButtonLabel(__dsl_gamepad, button); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadButtonLabel")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadButtonLabel GetGamepadButtonLabel( + Ref gamepad, + GamepadButton button + ) => DllImport.GetGamepadButtonLabel(gamepad, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadButtonLabel ISdl.GetGamepadButtonLabelForType(GamepadType type, GamepadButton button) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadButtonLabelForType", "SDL3") + )(type, button); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadButtonLabelForType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadButtonLabel GetGamepadButtonLabelForType( + GamepadType type, + GamepadButton button + ) => DllImport.GetGamepadButtonLabelForType(type, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + JoystickConnectionState ISdl.GetGamepadConnectionState(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadConnectionState", "SDL3") + )(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadConnectionState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static JoystickConnectionState GetGamepadConnectionState(SDL_Gamepad* gamepad) => + DllImport.GetGamepadConnectionState(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + JoystickConnectionState ISdl.GetGamepadConnectionState(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (JoystickConnectionState)((ISdl)this).GetGamepadConnectionState(__dsl_gamepad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadConnectionState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static JoystickConnectionState GetGamepadConnectionState(Ref gamepad) => + DllImport.GetGamepadConnectionState(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadFirmwareVersion(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadFirmwareVersion", "SDL3") + )(gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadFirmwareVersion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadFirmwareVersion(SDL_Gamepad* gamepad) => + DllImport.GetGamepadFirmwareVersion(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadFirmwareVersion(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)((ISdl)this).GetGamepadFirmwareVersion(__dsl_gamepad); + } + } + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFirmwareVersion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadFirmwareVersion(Ref gamepad) => + DllImport.GetGamepadFirmwareVersion(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (SDL_Gamepad*)((ISdl)this).GetGamepadFromInstanceIDRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadFromInstanceID(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Gamepad* ISdl.GetGamepadFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetGamepadFromInstanceID", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Gamepad* GetGamepadFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadFromInstanceIDRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadFromPlayerIndex(int player_index) => + (SDL_Gamepad*)((ISdl)this).GetGamepadFromPlayerIndexRaw(player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadFromPlayerIndex(int player_index) => + DllImport.GetGamepadFromPlayerIndex(player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Gamepad* ISdl.GetGamepadFromPlayerIndexRaw(int player_index) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetGamepadFromPlayerIndex", "SDL3") + )(player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadFromPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Gamepad* GetGamepadFromPlayerIndexRaw(int player_index) => + DllImport.GetGamepadFromPlayerIndexRaw(player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Guid ISdl.GetGamepadInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadInstanceGuid", "SDL3") + )(instance_id); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceGuid")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Guid GetGamepadInstanceGuid( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadInstanceGuid(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetGamepadInstanceID(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadInstanceID", "SDL3") + )(gamepad); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetGamepadInstanceID(SDL_Gamepad* gamepad) => + DllImport.GetGamepadInstanceID(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetGamepadInstanceID(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (uint)((ISdl)this).GetGamepadInstanceID(__dsl_gamepad); + } + } + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetGamepadInstanceID(Ref 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) + 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) + 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) + 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) + nativeContext.LoadFunction("GetGamepadInstancePlayerIndex", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GetGamepadInstanceProduct", "SDL3") + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GetGamepadInstanceProductVersion", "SDL3") + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GetGamepadInstanceType", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GetGamepadInstanceVendor", "SDL3") + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadInstanceVendor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadInstanceVendor( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetGamepadInstanceVendor(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Joystick* ISdl.GetGamepadJoystick(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadJoystick", "SDL3") + )(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Joystick* GetGamepadJoystick(SDL_Gamepad* gamepad) => + DllImport.GetGamepadJoystick(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadJoystick(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (SDL_Joystick*)((ISdl)this).GetGamepadJoystick(__dsl_gamepad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadJoystick(Ref gamepad) => + DllImport.GetGamepadJoystick(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadMapping(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadMapping", "SDL3") + )(gamepad); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMapping")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadMapping(SDL_Gamepad* gamepad) => + DllImport.GetGamepadMapping(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadMapping(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)((ISdl)this).GetGamepadMapping(__dsl_gamepad); + } + } + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMapping")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadMapping(Ref gamepad) => + DllImport.GetGamepadMapping(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadMappingForGuid([NativeTypeName("SDL_JoystickGUID")] 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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadMappingForGuidRaw([NativeTypeName("SDL_JoystickGUID")] Guid guid) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetGamepadMappingForGUID", "SDL3") + )(guid); + + [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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte** ISdl.GetGamepadMappings(int* count) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadMappings", "SDL3") + )(count); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadMappings")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte** GetGamepadMappings(int* count) => DllImport.GetGamepadMappings(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GetGamepadMappings(Ref count) + { + fixed (int* __dsl_count = count) + { + return (sbyte**)((ISdl)this).GetGamepadMappings(__dsl_count); + } + } + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadMappings")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GetGamepadMappings(Ref count) => + DllImport.GetGamepadMappings(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadName(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadName", "SDL3") + )(gamepad); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadName(SDL_Gamepad* gamepad) => DllImport.GetGamepadName(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadName(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)((ISdl)this).GetGamepadName(__dsl_gamepad); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadName(Ref gamepad) => + DllImport.GetGamepadName(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadPath(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadPath", "SDL3") + )(gamepad); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadPath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadPath(SDL_Gamepad* gamepad) => DllImport.GetGamepadPath(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadPath(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)((ISdl)this).GetGamepadPath(__dsl_gamepad); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadPath(Ref gamepad) => + DllImport.GetGamepadPath(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetGamepadPlayerIndex(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadPlayerIndex", "SDL3") + )(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetGamepadPlayerIndex(SDL_Gamepad* gamepad) => + DllImport.GetGamepadPlayerIndex(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetGamepadPlayerIndex(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)((ISdl)this).GetGamepadPlayerIndex(__dsl_gamepad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetGamepadPlayerIndex(Ref gamepad) => + DllImport.GetGamepadPlayerIndex(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PowerState ISdl.GetGamepadPowerInfo(SDL_Gamepad* gamepad, int* percent) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadPowerInfo", "SDL3") + )(gamepad, percent); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadPowerInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PowerState GetGamepadPowerInfo(SDL_Gamepad* gamepad, int* percent) => + DllImport.GetGamepadPowerInfo(gamepad, percent); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PowerState ISdl.GetGamepadPowerInfo(Ref gamepad, Ref percent) + { + fixed (int* __dsl_percent = percent) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (PowerState)((ISdl)this).GetGamepadPowerInfo(__dsl_gamepad, __dsl_percent); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadPowerInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PowerState GetGamepadPowerInfo(Ref gamepad, Ref percent) => + DllImport.GetGamepadPowerInfo(gamepad, percent); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadProduct(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadProduct", "SDL3") + )(gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProduct")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadProduct(SDL_Gamepad* gamepad) => + DllImport.GetGamepadProduct(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadProduct(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)((ISdl)this).GetGamepadProduct(__dsl_gamepad); + } + } + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProduct")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadProduct(Ref gamepad) => + DllImport.GetGamepadProduct(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadProductVersion(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadProductVersion", "SDL3") + )(gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProductVersion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadProductVersion(SDL_Gamepad* gamepad) => + DllImport.GetGamepadProductVersion(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadProductVersion(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)((ISdl)this).GetGamepadProductVersion(__dsl_gamepad); + } + } + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProductVersion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadProductVersion(Ref gamepad) => + DllImport.GetGamepadProductVersion(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetGamepadProperties(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadProperties", "SDL3") + )(gamepad); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetGamepadProperties(SDL_Gamepad* gamepad) => + DllImport.GetGamepadProperties(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetGamepadProperties(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (uint)((ISdl)this).GetGamepadProperties(__dsl_gamepad); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetGamepadProperties(Ref gamepad) => + DllImport.GetGamepadProperties(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetGamepads(int* count) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetGamepads", "SDL3"))( + count + ); + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepads")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetGamepads(int* count) => DllImport.GetGamepads(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepads(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetGamepads(__dsl_count); + } + } + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepads")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepads(Ref count) => DllImport.GetGamepads(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetGamepadSensorData( + SDL_Gamepad* gamepad, + SensorType type, + float* data, + int num_values + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadSensorData", "SDL3") + )(gamepad, type, data, num_values); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetGamepadSensorData( + SDL_Gamepad* gamepad, + SensorType type, + float* data, + int num_values + ) => DllImport.GetGamepadSensorData(gamepad, type, data, num_values); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetGamepadSensorData( + Ref gamepad, + SensorType type, + Ref data, + int num_values + ) + { + fixed (float* __dsl_data = data) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int) + ((ISdl)this).GetGamepadSensorData(__dsl_gamepad, type, __dsl_data, num_values); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetGamepadSensorData( + Ref gamepad, + SensorType type, + Ref data, + int num_values + ) => DllImport.GetGamepadSensorData(gamepad, type, data, num_values); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetGamepadSensorDataRate(SDL_Gamepad* gamepad, SensorType type) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadSensorDataRate", "SDL3") + )(gamepad, type); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadSensorDataRate")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetGamepadSensorDataRate(SDL_Gamepad* gamepad, SensorType type) => + DllImport.GetGamepadSensorDataRate(gamepad, type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetGamepadSensorDataRate(Ref gamepad, SensorType type) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (float)((ISdl)this).GetGamepadSensorDataRate(__dsl_gamepad, type); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSensorDataRate")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetGamepadSensorDataRate(Ref gamepad, SensorType type) => + DllImport.GetGamepadSensorDataRate(gamepad, type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadSerial(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadSerial", "SDL3") + )(gamepad); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSerial")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadSerial(SDL_Gamepad* gamepad) => + DllImport.GetGamepadSerial(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadSerial(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (sbyte*)((ISdl)this).GetGamepadSerial(__dsl_gamepad); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSerial")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadSerial(Ref gamepad) => + DllImport.GetGamepadSerial(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetGamepadSteamHandle(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadSteamHandle", "SDL3") + )(gamepad); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadSteamHandle")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetGamepadSteamHandle(SDL_Gamepad* gamepad) => + DllImport.GetGamepadSteamHandle(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetGamepadSteamHandle(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ulong)((ISdl)this).GetGamepadSteamHandle(__dsl_gamepad); + } + } + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadSteamHandle")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetGamepadSteamHandle(Ref gamepad) => + DllImport.GetGamepadSteamHandle(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadStringForAxis(GamepadAxis axis) => + (sbyte*)((ISdl)this).GetGamepadStringForAxisRaw(axis); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadStringForAxis(GamepadAxis axis) => + DllImport.GetGamepadStringForAxis(axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadStringForAxisRaw(GamepadAxis axis) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetGamepadStringForAxis", "SDL3") + )(axis); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadStringForAxisRaw(GamepadAxis axis) => + DllImport.GetGamepadStringForAxisRaw(axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadStringForButton(GamepadButton button) => + (sbyte*)((ISdl)this).GetGamepadStringForButtonRaw(button); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadStringForButton(GamepadButton button) => + DllImport.GetGamepadStringForButton(button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadStringForButtonRaw(GamepadButton button) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetGamepadStringForButton", "SDL3") + )(button); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadStringForButtonRaw(GamepadButton button) => + DllImport.GetGamepadStringForButtonRaw(button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGamepadStringForType(GamepadType type) => + (sbyte*)((ISdl)this).GetGamepadStringForTypeRaw(type); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGamepadStringForType(GamepadType type) => + DllImport.GetGamepadStringForType(type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetGamepadStringForTypeRaw(GamepadType type) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetGamepadStringForType", "SDL3") + )(type); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadStringForType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetGamepadStringForTypeRaw(GamepadType type) => + DllImport.GetGamepadStringForTypeRaw(type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetGamepadTouchpadFinger( + SDL_Gamepad* gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] byte* state, + float* x, + float* y, + float* pressure + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadTouchpadFinger", "SDL3") + )(gamepad, touchpad, finger, state, x, y, pressure); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTouchpadFinger")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetGamepadTouchpadFinger( + SDL_Gamepad* gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] byte* state, + float* x, + float* y, + float* pressure + ) => DllImport.GetGamepadTouchpadFinger(gamepad, touchpad, finger, state, x, y, pressure); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetGamepadTouchpadFinger( + Ref gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] Ref state, + Ref x, + Ref y, + Ref pressure + ) + { + fixed (float* __dsl_pressure = pressure) + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + fixed (byte* __dsl_state = state) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int) + ((ISdl)this).GetGamepadTouchpadFinger( + __dsl_gamepad, + touchpad, + finger, + __dsl_state, + __dsl_x, + __dsl_y, + __dsl_pressure + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTouchpadFinger")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetGamepadTouchpadFinger( + Ref gamepad, + int touchpad, + int finger, + [NativeTypeName("Uint8 *")] Ref state, + Ref x, + Ref y, + Ref pressure + ) => DllImport.GetGamepadTouchpadFinger(gamepad, touchpad, finger, state, x, y, pressure); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadType ISdl.GetGamepadType(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadType", "SDL3") + )(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadType GetGamepadType(SDL_Gamepad* gamepad) => + DllImport.GetGamepadType(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadType ISdl.GetGamepadType(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadType)((ISdl)this).GetGamepadType(__dsl_gamepad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadType GetGamepadType(Ref gamepad) => + DllImport.GetGamepadType(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadType ISdl.GetGamepadTypeFromString([NativeTypeName("const char *")] sbyte* str) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadTypeFromString", "SDL3") + )(str); + + [NativeFunction("SDL3", EntryPoint = "GetGamepadTypeFromString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadType GetGamepadTypeFromString( + [NativeTypeName("const char *")] sbyte* str + ) => DllImport.GetGamepadTypeFromString(str); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadType ISdl.GetGamepadTypeFromString([NativeTypeName("const char *")] Ref str) + { + fixed (sbyte* __dsl_str = str) + { + return (GamepadType)((ISdl)this).GetGamepadTypeFromString(__dsl_str); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadTypeFromString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadType GetGamepadTypeFromString( + [NativeTypeName("const char *")] Ref str + ) => DllImport.GetGamepadTypeFromString(str); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadVendor(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGamepadVendor", "SDL3") + )(gamepad); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetGamepadVendor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadVendor(SDL_Gamepad* gamepad) => + DllImport.GetGamepadVendor(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetGamepadVendor(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (ushort)((ISdl)this).GetGamepadVendor(__dsl_gamepad); + } + } + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGamepadVendor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetGamepadVendor(Ref gamepad) => + DllImport.GetGamepadVendor(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetGlobalMouseState(float* x, float* y) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetGlobalMouseState", "SDL3") + )(x, y); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalMouseState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetGlobalMouseState(float* x, float* y) => + DllImport.GetGlobalMouseState(x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetGlobalMouseState(Ref x, Ref y) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + { + return (uint)((ISdl)this).GetGlobalMouseState(__dsl_x, __dsl_y); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGlobalMouseState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetGlobalMouseState(Ref x, Ref y) => + DllImport.GetGlobalMouseState(x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetGlobalProperties() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetGlobalProperties", "SDL3"))(); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetGlobalProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetGlobalProperties() => DllImport.GetGlobalProperties(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetGrabbedWindow() => (SDL_Window*)((ISdl)this).GetGrabbedWindowRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetGrabbedWindow() => DllImport.GetGrabbedWindow(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Window* ISdl.GetGrabbedWindowRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetGrabbedWindow", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetGrabbedWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* GetGrabbedWindowRaw() => DllImport.GetGrabbedWindowRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetHapticEffectStatus(SDL_Haptic* haptic, int effect) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetHapticEffectStatus", "SDL3") + )(haptic, effect); + + [NativeFunction("SDL3", EntryPoint = "GetHapticEffectStatus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetHapticEffectStatus(SDL_Haptic* haptic, int effect) => + DllImport.GetHapticEffectStatus(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetHapticEffectStatus(Ref haptic, int effect) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).GetHapticEffectStatus(__dsl_haptic, effect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticEffectStatus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetHapticEffectStatus(Ref haptic, int effect) => + DllImport.GetHapticEffectStatus(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetHapticFeatures(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetHapticFeatures", "SDL3") + )(haptic); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetHapticFeatures")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetHapticFeatures(SDL_Haptic* haptic) => DllImport.GetHapticFeatures(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetHapticFeatures(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (uint)((ISdl)this).GetHapticFeatures(__dsl_haptic); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFeatures")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetHapticFeatures(Ref haptic) => + DllImport.GetHapticFeatures(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetHapticFromInstanceID( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => (SDL_Haptic*)((ISdl)this).GetHapticFromInstanceIDRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetHapticFromInstanceID( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => DllImport.GetHapticFromInstanceID(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Haptic* ISdl.GetHapticFromInstanceIDRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetHapticFromInstanceID", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticFromInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Haptic* GetHapticFromInstanceIDRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => DllImport.GetHapticFromInstanceIDRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetHapticInstanceID(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetHapticInstanceID", "SDL3") + )(haptic); + + [return: NativeTypeName("SDL_HapticID")] + [NativeFunction("SDL3", EntryPoint = "GetHapticInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetHapticInstanceID(SDL_Haptic* haptic) => + DllImport.GetHapticInstanceID(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetHapticInstanceID(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (uint)((ISdl)this).GetHapticInstanceID(__dsl_haptic); + } + } + + [return: NativeTypeName("SDL_HapticID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetHapticInstanceID(Ref haptic) => + DllImport.GetHapticInstanceID(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetHapticInstanceName([NativeTypeName("SDL_HapticID")] uint instance_id) => + (sbyte*)((ISdl)this).GetHapticInstanceNameRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetHapticInstanceName( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => DllImport.GetHapticInstanceName(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetHapticInstanceNameRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetHapticInstanceName", "SDL3") + )(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticInstanceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetHapticInstanceNameRaw( + [NativeTypeName("SDL_HapticID")] uint instance_id + ) => DllImport.GetHapticInstanceNameRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetHapticName(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetHapticName", "SDL3") + )(haptic); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHapticName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetHapticName(SDL_Haptic* haptic) => DllImport.GetHapticName(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetHapticName(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (sbyte*)((ISdl)this).GetHapticName(__dsl_haptic); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHapticName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetHapticName(Ref haptic) => + DllImport.GetHapticName(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetHaptics(int* count) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetHaptics", "SDL3"))(count); + + [return: NativeTypeName("SDL_HapticID *")] + [NativeFunction("SDL3", EntryPoint = "GetHaptics")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetHaptics(int* count) => DllImport.GetHaptics(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetHaptics(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetHaptics(__dsl_count); + } + } + + [return: NativeTypeName("SDL_HapticID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHaptics")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetHaptics(Ref count) => DllImport.GetHaptics(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetHint([NativeTypeName("const char *")] sbyte* name) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetHint", "SDL3"))(name); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetHint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetHint([NativeTypeName("const char *")] sbyte* name) => + DllImport.GetHint(name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetHint([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (sbyte*)((ISdl)this).GetHint(__dsl_name); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetHint([NativeTypeName("const char *")] Ref name) => + DllImport.GetHint(name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetHintBoolean( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetHintBoolean", "SDL3") + )(name, default_value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetHintBoolean")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetHintBoolean( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int default_value + ) => DllImport.GetHintBoolean(name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetHintBoolean( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)((ISdl)this).GetHintBoolean(__dsl_name, (int)default_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetHintBoolean")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetHintBoolean( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool default_value + ) => DllImport.GetHintBoolean(name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetIOProperties(SDL_IOStream* context) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetIOProperties", "SDL3") + )(context); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetIOProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetIOProperties(SDL_IOStream* context) => DllImport.GetIOProperties(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetIOProperties(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (uint)((ISdl)this).GetIOProperties(__dsl_context); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetIOProperties(Ref context) => + DllImport.GetIOProperties(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + long ISdl.GetIOSize(SDL_IOStream* context) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetIOSize", "SDL3"))( + context + ); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetIOSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static long GetIOSize(SDL_IOStream* context) => DllImport.GetIOSize(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + long ISdl.GetIOSize(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (long)((ISdl)this).GetIOSize(__dsl_context); + } + } + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static long GetIOSize(Ref context) => DllImport.GetIOSize(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + IOStatus ISdl.GetIOStatus(SDL_IOStream* context) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetIOStatus", "SDL3") + )(context); + + [NativeFunction("SDL3", EntryPoint = "GetIOStatus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static IOStatus GetIOStatus(SDL_IOStream* context) => DllImport.GetIOStatus(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + IOStatus ISdl.GetIOStatus(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (IOStatus)((ISdl)this).GetIOStatus(__dsl_context); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetIOStatus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static IOStatus GetIOStatus(Ref context) => DllImport.GetIOStatus(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + short ISdl.GetJoystickAxis(SDL_Joystick* joystick, int axis) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickAxis", "SDL3") + )(joystick, axis); + + [return: NativeTypeName("Sint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static short GetJoystickAxis(SDL_Joystick* joystick, int axis) => + DllImport.GetJoystickAxis(joystick, axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + short ISdl.GetJoystickAxis(Ref joystick, int axis) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (short)((ISdl)this).GetJoystickAxis(__dsl_joystick, axis); + } + } + + [return: NativeTypeName("Sint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static short GetJoystickAxis(Ref joystick, int axis) => + DllImport.GetJoystickAxis(joystick, axis); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetJoystickAxisInitialState( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16 *")] short* state + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickAxisInitialState", "SDL3") + )(joystick, axis, state); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickAxisInitialState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetJoystickAxisInitialState( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16 *")] short* state + ) => DllImport.GetJoystickAxisInitialState(joystick, axis, state); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetJoystickAxisInitialState( + Ref joystick, + int axis, + [NativeTypeName("Sint16 *")] Ref state + ) + { + fixed (short* __dsl_state = state) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (MaybeBool) + (int)((ISdl)this).GetJoystickAxisInitialState(__dsl_joystick, axis, __dsl_state); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickAxisInitialState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetJoystickAxisInitialState( + Ref joystick, + int axis, + [NativeTypeName("Sint16 *")] Ref state + ) => DllImport.GetJoystickAxisInitialState(joystick, axis, state); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetJoystickBall(SDL_Joystick* joystick, int ball, int* dx, int* dy) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickBall", "SDL3") + )(joystick, ball, dx, dy); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickBall")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetJoystickBall(SDL_Joystick* joystick, int ball, int* dx, int* dy) => + DllImport.GetJoystickBall(joystick, ball, dx, dy); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetJoystickBall(Ref joystick, int ball, Ref dx, Ref dy) + { + fixed (int* __dsl_dy = dy) + fixed (int* __dsl_dx = dx) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).GetJoystickBall(__dsl_joystick, ball, __dsl_dx, __dsl_dy); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickBall")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetJoystickBall( + Ref joystick, + int ball, + Ref dx, + Ref dy + ) => DllImport.GetJoystickBall(joystick, ball, dx, dy); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetJoystickButton(SDL_Joystick* joystick, int button) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickButton", "SDL3") + )(joystick, button); + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetJoystickButton(SDL_Joystick* joystick, int button) => + DllImport.GetJoystickButton(joystick, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetJoystickButton(Ref joystick, int button) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (byte)((ISdl)this).GetJoystickButton(__dsl_joystick, button); + } + } + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetJoystickButton(Ref joystick, int button) => + DllImport.GetJoystickButton(joystick, button); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + JoystickConnectionState ISdl.GetJoystickConnectionState(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickConnectionState", "SDL3") + )(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickConnectionState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static JoystickConnectionState GetJoystickConnectionState(SDL_Joystick* joystick) => + DllImport.GetJoystickConnectionState(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + JoystickConnectionState ISdl.GetJoystickConnectionState(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (JoystickConnectionState)((ISdl)this).GetJoystickConnectionState(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickConnectionState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static JoystickConnectionState GetJoystickConnectionState(Ref joystick) => + DllImport.GetJoystickConnectionState(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickFirmwareVersion(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickFirmwareVersion", "SDL3") + )(joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickFirmwareVersion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickFirmwareVersion(SDL_Joystick* joystick) => + DllImport.GetJoystickFirmwareVersion(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickFirmwareVersion(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)((ISdl)this).GetJoystickFirmwareVersion(__dsl_joystick); + } + } + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFirmwareVersion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickFirmwareVersion(Ref joystick) => + DllImport.GetJoystickFirmwareVersion(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetJoystickFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => (SDL_Joystick*)((ISdl)this).GetJoystickFromInstanceIDRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetJoystickFromInstanceID( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickFromInstanceID(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Joystick* ISdl.GetJoystickFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetJoystickFromInstanceID", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Joystick* GetJoystickFromInstanceIDRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickFromInstanceIDRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetJoystickFromPlayerIndex(int player_index) => + (SDL_Joystick*)((ISdl)this).GetJoystickFromPlayerIndexRaw(player_index); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetJoystickFromPlayerIndex(int player_index) => + DllImport.GetJoystickFromPlayerIndex(player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Joystick* ISdl.GetJoystickFromPlayerIndexRaw(int player_index) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetJoystickFromPlayerIndex", "SDL3") + )(player_index); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickFromPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Joystick* GetJoystickFromPlayerIndexRaw(int player_index) => + DllImport.GetJoystickFromPlayerIndexRaw(player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Guid ISdl.GetJoystickGuid(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickGuid", "SDL3") + )(joystick); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickGuid")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Guid GetJoystickGuid(SDL_Joystick* joystick) => + DllImport.GetJoystickGuid(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Guid ISdl.GetJoystickGuid(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (Guid)((ISdl)this).GetJoystickGuid(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_JoystickGUID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Guid GetJoystickGuid(Ref joystick) => + DllImport.GetJoystickGuid(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Guid ISdl.GetJoystickGuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickGuidFromString", "SDL3") + )(pchGUID); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "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); + } + } + + [return: NativeTypeName("SDL_JoystickGUID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDFromString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Guid GetJoystickGuidFromString( + [NativeTypeName("const char *")] Ref pchGUID + ) => DllImport.GetJoystickGuidFromString(pchGUID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] ushort* vendor, + [NativeTypeName("Uint16 *")] ushort* product, + [NativeTypeName("Uint16 *")] ushort* version, + [NativeTypeName("Uint16 *")] ushort* crc16 + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickGuidInfo", "SDL3") + )(guid, vendor, product, version, crc16); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickGuidInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] ushort* vendor, + [NativeTypeName("Uint16 *")] ushort* product, + [NativeTypeName("Uint16 *")] ushort* version, + [NativeTypeName("Uint16 *")] ushort* crc16 + ) => DllImport.GetJoystickGuidInfo(guid, vendor, product, version, crc16); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] Guid guid, + [NativeTypeName("Uint16 *")] Ref vendor, + [NativeTypeName("Uint16 *")] Ref product, + [NativeTypeName("Uint16 *")] Ref version, + [NativeTypeName("Uint16 *")] Ref crc16 + ) + { + fixed (ushort* __dsl_crc16 = crc16) + fixed (ushort* __dsl_version = version) + fixed (ushort* __dsl_product = product) + fixed (ushort* __dsl_vendor = vendor) + { + ((ISdl)this).GetJoystickGuidInfo( + guid, + __dsl_vendor, + __dsl_product, + __dsl_version, + __dsl_crc16 + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickGUIDInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetJoystickGuidInfo( + [NativeTypeName("SDL_JoystickGUID")] 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) + nativeContext.LoadFunction("GetJoystickGuidString", "SDL3") + )(guid, pszGUID, cbGUID); + + [NativeFunction("SDL3", EntryPoint = "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(SDL_Joystick* joystick, int hat) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickHat", "SDL3") + )(joystick, hat); + + [return: NativeTypeName("Uint8")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickHat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetJoystickHat(SDL_Joystick* joystick, int hat) => + DllImport.GetJoystickHat(joystick, hat); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte ISdl.GetJoystickHat(Ref joystick, int hat) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (byte)((ISdl)this).GetJoystickHat(__dsl_joystick, hat); + } + } + + [return: NativeTypeName("Uint8")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickHat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte GetJoystickHat(Ref joystick, int hat) => + DllImport.GetJoystickHat(joystick, hat); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Guid ISdl.GetJoystickInstanceGuid([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickInstanceGuid", "SDL3") + )(instance_id); + + [return: NativeTypeName("SDL_JoystickGUID")] + [NativeFunction("SDL3", EntryPoint = "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(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickInstanceID", "SDL3") + )(joystick); + + [return: NativeTypeName("SDL_JoystickID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetJoystickInstanceID(SDL_Joystick* joystick) => + DllImport.GetJoystickInstanceID(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetJoystickInstanceID(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (uint)((ISdl)this).GetJoystickInstanceID(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_JoystickID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetJoystickInstanceID(Ref joystick) => + DllImport.GetJoystickInstanceID(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetJoystickInstanceName([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (sbyte*)((ISdl)this).GetJoystickInstanceNameRaw(instance_id); + + [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) + nativeContext.LoadFunction("SDL_GetJoystickInstanceName", "SDL3") + )(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstanceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetJoystickInstanceNameRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickInstanceNameRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetJoystickInstancePath([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (sbyte*)((ISdl)this).GetJoystickInstancePathRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickInstancePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetJoystickInstancePath( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetJoystickInstancePath(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetJoystickInstancePathRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetJoystickInstancePath", "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) + nativeContext.LoadFunction("GetJoystickInstancePlayerIndex", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GetJoystickInstanceProduct", "SDL3") + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickInstanceProduct")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickInstanceProduct( + [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) + nativeContext.LoadFunction("GetJoystickInstanceProductVersion", "SDL3") + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GetJoystickInstanceType", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GetJoystickInstanceVendor", "SDL3") + )(instance_id); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "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)] + sbyte* ISdl.GetJoystickName(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickName", "SDL3") + )(joystick); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetJoystickName(SDL_Joystick* joystick) => + DllImport.GetJoystickName(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetJoystickName(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (sbyte*)((ISdl)this).GetJoystickName(__dsl_joystick); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetJoystickName(Ref joystick) => + DllImport.GetJoystickName(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetJoystickPath(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickPath", "SDL3") + )(joystick); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickPath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetJoystickPath(SDL_Joystick* joystick) => + DllImport.GetJoystickPath(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetJoystickPath(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (sbyte*)((ISdl)this).GetJoystickPath(__dsl_joystick); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetJoystickPath(Ref joystick) => + DllImport.GetJoystickPath(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetJoystickPlayerIndex(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickPlayerIndex", "SDL3") + )(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetJoystickPlayerIndex(SDL_Joystick* joystick) => + DllImport.GetJoystickPlayerIndex(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetJoystickPlayerIndex(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).GetJoystickPlayerIndex(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetJoystickPlayerIndex(Ref joystick) => + DllImport.GetJoystickPlayerIndex(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PowerState ISdl.GetJoystickPowerInfo(SDL_Joystick* joystick, int* percent) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickPowerInfo", "SDL3") + )(joystick, percent); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickPowerInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PowerState GetJoystickPowerInfo(SDL_Joystick* joystick, int* percent) => + DllImport.GetJoystickPowerInfo(joystick, percent); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PowerState ISdl.GetJoystickPowerInfo(Ref joystick, Ref percent) + { + fixed (int* __dsl_percent = percent) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (PowerState)((ISdl)this).GetJoystickPowerInfo(__dsl_joystick, __dsl_percent); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickPowerInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PowerState GetJoystickPowerInfo(Ref joystick, Ref percent) => + DllImport.GetJoystickPowerInfo(joystick, percent); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickProduct(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickProduct", "SDL3") + )(joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProduct")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickProduct(SDL_Joystick* joystick) => + DllImport.GetJoystickProduct(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickProduct(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)((ISdl)this).GetJoystickProduct(__dsl_joystick); + } + } + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProduct")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickProduct(Ref joystick) => + DllImport.GetJoystickProduct(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickProductVersion(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickProductVersion", "SDL3") + )(joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProductVersion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickProductVersion(SDL_Joystick* joystick) => + DllImport.GetJoystickProductVersion(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickProductVersion(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)((ISdl)this).GetJoystickProductVersion(__dsl_joystick); + } + } + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProductVersion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickProductVersion(Ref joystick) => + DllImport.GetJoystickProductVersion(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetJoystickProperties(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickProperties", "SDL3") + )(joystick); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetJoystickProperties(SDL_Joystick* joystick) => + DllImport.GetJoystickProperties(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetJoystickProperties(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (uint)((ISdl)this).GetJoystickProperties(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetJoystickProperties(Ref joystick) => + DllImport.GetJoystickProperties(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetJoysticks(int* count) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetJoysticks", "SDL3"))( + count + ); + + [return: NativeTypeName("SDL_JoystickID *")] + [NativeFunction("SDL3", EntryPoint = "GetJoysticks")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetJoysticks(int* count) => DllImport.GetJoysticks(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetJoysticks(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetJoysticks(__dsl_count); + } + } + + [return: NativeTypeName("SDL_JoystickID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoysticks")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetJoysticks(Ref count) => DllImport.GetJoysticks(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetJoystickSerial(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickSerial", "SDL3") + )(joystick); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickSerial")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetJoystickSerial(SDL_Joystick* joystick) => + DllImport.GetJoystickSerial(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetJoystickSerial(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (sbyte*)((ISdl)this).GetJoystickSerial(__dsl_joystick); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickSerial")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetJoystickSerial(Ref joystick) => + DllImport.GetJoystickSerial(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + JoystickType ISdl.GetJoystickType(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickType", "SDL3") + )(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetJoystickType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static JoystickType GetJoystickType(SDL_Joystick* joystick) => + DllImport.GetJoystickType(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + JoystickType ISdl.GetJoystickType(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (JoystickType)((ISdl)this).GetJoystickType(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static JoystickType GetJoystickType(Ref joystick) => + DllImport.GetJoystickType(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickVendor(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetJoystickVendor", "SDL3") + )(joystick); + + [return: NativeTypeName("Uint16")] + [NativeFunction("SDL3", EntryPoint = "GetJoystickVendor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickVendor(SDL_Joystick* joystick) => + DllImport.GetJoystickVendor(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ushort ISdl.GetJoystickVendor(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (ushort)((ISdl)this).GetJoystickVendor(__dsl_joystick); + } + } + + [return: NativeTypeName("Uint16")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetJoystickVendor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ushort GetJoystickVendor(Ref joystick) => + DllImport.GetJoystickVendor(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetKeyboardFocus() => (SDL_Window*)((ISdl)this).GetKeyboardFocusRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetKeyboardFocus() => DllImport.GetKeyboardFocus(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Window* ISdl.GetKeyboardFocusRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetKeyboardFocus", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardFocus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* GetKeyboardFocusRaw() => DllImport.GetKeyboardFocusRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetKeyboardInstanceName([NativeTypeName("SDL_KeyboardID")] uint instance_id) => + (sbyte*)((ISdl)this).GetKeyboardInstanceNameRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetKeyboardInstanceName( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ) => DllImport.GetKeyboardInstanceName(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetKeyboardInstanceNameRaw([NativeTypeName("SDL_KeyboardID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetKeyboardInstanceName", "SDL3") + )(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardInstanceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetKeyboardInstanceNameRaw( + [NativeTypeName("SDL_KeyboardID")] uint instance_id + ) => DllImport.GetKeyboardInstanceNameRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetKeyboards(int* count) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetKeyboards", "SDL3"))( + count + ); + + [return: NativeTypeName("SDL_KeyboardID *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboards")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetKeyboards(int* count) => DllImport.GetKeyboards(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetKeyboards(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetKeyboards(__dsl_count); + } + } + + [return: NativeTypeName("SDL_KeyboardID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboards")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetKeyboards(Ref count) => DllImport.GetKeyboards(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + byte* ISdl.GetKeyboardState(int* numkeys) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetKeyboardState", "SDL3"))( + numkeys + ); + + [return: NativeTypeName("const Uint8 *")] + [NativeFunction("SDL3", EntryPoint = "GetKeyboardState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static byte* GetKeyboardState(int* numkeys) => DllImport.GetKeyboardState(numkeys); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetKeyboardState(Ref numkeys) + { + fixed (int* __dsl_numkeys = numkeys) + { + return (byte*)((ISdl)this).GetKeyboardState(__dsl_numkeys); + } + } + + [return: NativeTypeName("const Uint8 *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyboardState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetKeyboardState(Ref numkeys) => + DllImport.GetKeyboardState(numkeys); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetKeyFromName", "SDL3"))( + name + ); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetKeyFromName([NativeTypeName("const char *")] sbyte* name) => + DllImport.GetKeyFromName(name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetKeyFromName([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (int)((ISdl)this).GetKeyFromName(__dsl_name); + } + } + + [return: NativeTypeName("SDL_Keycode")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetKeyFromName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetKeyFromName([NativeTypeName("const char *")] Ref name) => + DllImport.GetKeyFromName(name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetKeyFromScancode(Scancode scancode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetKeyFromScancode", "SDL3") + )(scancode); + + [return: NativeTypeName("SDL_Keycode")] + [NativeFunction("SDL3", EntryPoint = "GetKeyFromScancode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetKeyFromScancode(Scancode scancode) => + DllImport.GetKeyFromScancode(scancode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetKeyName([NativeTypeName("SDL_Keycode")] int 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) => + DllImport.GetKeyName(key); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetKeyNameRaw([NativeTypeName("SDL_Keycode")] int key) => + ((delegate* unmanaged)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) => + DllImport.GetKeyNameRaw(key); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + void** userdata + ) => + ( + (delegate* unmanaged< + delegate* unmanaged*, + void**, + void>) + nativeContext.LoadFunction("GetLogOutputFunction", "SDL3") + )(callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "GetLogOutputFunction")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + void** userdata + ) => DllImport.GetLogOutputFunction(callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + Ref2D userdata + ) + { + fixed (void** __dsl_userdata = userdata) + { + ((ISdl)this).GetLogOutputFunction(callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetLogOutputFunction")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction *")] + delegate* unmanaged* callback, + Ref2D userdata + ) => DllImport.GetLogOutputFunction(callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetMasksForPixelFormatEnum( + PixelFormatEnum format, + int* bpp, + [NativeTypeName("Uint32 *")] uint* Rmask, + [NativeTypeName("Uint32 *")] uint* Gmask, + [NativeTypeName("Uint32 *")] uint* Bmask, + [NativeTypeName("Uint32 *")] uint* Amask + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetMasksForPixelFormatEnum", "SDL3") + )(format, bpp, Rmask, Gmask, Bmask, Amask); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetMasksForPixelFormatEnum")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetMasksForPixelFormatEnum( + PixelFormatEnum 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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetMasksForPixelFormatEnum( + PixelFormatEnum format, + Ref bpp, + [NativeTypeName("Uint32 *")] Ref Rmask, + [NativeTypeName("Uint32 *")] Ref Gmask, + [NativeTypeName("Uint32 *")] Ref Bmask, + [NativeTypeName("Uint32 *")] Ref Amask + ) + { + fixed (uint* __dsl_Amask = Amask) + fixed (uint* __dsl_Bmask = Bmask) + fixed (uint* __dsl_Gmask = Gmask) + fixed (uint* __dsl_Rmask = Rmask) + fixed (int* __dsl_bpp = bpp) + { + return (MaybeBool) + (int) + ((ISdl)this).GetMasksForPixelFormatEnum( + format, + __dsl_bpp, + __dsl_Rmask, + __dsl_Gmask, + __dsl_Bmask, + __dsl_Amask + ); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMasksForPixelFormatEnum")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetMasksForPixelFormatEnum( + PixelFormatEnum 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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetMaxHapticEffects(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetMaxHapticEffects", "SDL3") + )(haptic); + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetMaxHapticEffects(SDL_Haptic* haptic) => + DllImport.GetMaxHapticEffects(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetMaxHapticEffects(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).GetMaxHapticEffects(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetMaxHapticEffects(Ref haptic) => + DllImport.GetMaxHapticEffects(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetMaxHapticEffectsPlaying(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetMaxHapticEffectsPlaying", "SDL3") + )(haptic); + + [NativeFunction("SDL3", EntryPoint = "GetMaxHapticEffectsPlaying")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetMaxHapticEffectsPlaying(SDL_Haptic* haptic) => + DllImport.GetMaxHapticEffectsPlaying(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetMaxHapticEffectsPlaying(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).GetMaxHapticEffectsPlaying(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMaxHapticEffectsPlaying")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetMaxHapticEffectsPlaying(Ref haptic) => + DllImport.GetMaxHapticEffectsPlaying(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetMice(int* count) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetMice", "SDL3"))(count); + + [return: NativeTypeName("SDL_MouseID *")] + [NativeFunction("SDL3", EntryPoint = "GetMice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetMice(int* count) => DllImport.GetMice(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetMice(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetMice(__dsl_count); + } + } + + [return: NativeTypeName("SDL_MouseID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetMice(Ref count) => DllImport.GetMice(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Keymod ISdl.GetModState() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetModState", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GetModState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Keymod GetModState() => DllImport.GetModState(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetMouseFocus() => (SDL_Window*)((ISdl)this).GetMouseFocusRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetMouseFocus() => DllImport.GetMouseFocus(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Window* ISdl.GetMouseFocusRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetMouseFocus", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseFocus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* GetMouseFocusRaw() => DllImport.GetMouseFocusRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetMouseInstanceName([NativeTypeName("SDL_MouseID")] uint instance_id) => + (sbyte*)((ISdl)this).GetMouseInstanceNameRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetMouseInstanceName( + [NativeTypeName("SDL_MouseID")] uint instance_id + ) => DllImport.GetMouseInstanceName(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetMouseInstanceNameRaw([NativeTypeName("SDL_MouseID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetMouseInstanceName", "SDL3") + )(instance_id); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseInstanceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetMouseInstanceNameRaw( + [NativeTypeName("SDL_MouseID")] uint instance_id + ) => DllImport.GetMouseInstanceNameRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetMouseState(float* x, float* y) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetMouseState", "SDL3") + )(x, y); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetMouseState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetMouseState(float* x, float* y) => DllImport.GetMouseState(x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetMouseState(Ref x, Ref y) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + { + return (uint)((ISdl)this).GetMouseState(__dsl_x, __dsl_y); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetMouseState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetMouseState(Ref x, Ref y) => DllImport.GetMouseState(x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + DisplayOrientation ISdl.GetNaturalDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetNaturalDisplayOrientation", "SDL3") + )(displayID); + + [NativeFunction("SDL3", EntryPoint = "GetNaturalDisplayOrientation")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static DisplayOrientation GetNaturalDisplayOrientation( + [NativeTypeName("SDL_DisplayID")] uint displayID + ) => DllImport.GetNaturalDisplayOrientation(displayID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumAudioDrivers() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetNumAudioDrivers", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GetNumAudioDrivers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumAudioDrivers() => DllImport.GetNumAudioDrivers(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + long ISdl.GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long default_value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetNumberProperty", "SDL3") + )(props, name, default_value); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "GetNumberProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long default_value + ) => DllImport.GetNumberProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + long ISdl.GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long default_value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (long)((ISdl)this).GetNumberProperty(props, __dsl_name, default_value); + } + } + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumberProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static long GetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long default_value + ) => DllImport.GetNumberProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumCameraDrivers() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetNumCameraDrivers", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GetNumCameraDrivers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumCameraDrivers() => DllImport.GetNumCameraDrivers(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumGamepadTouchpadFingers(SDL_Gamepad* gamepad, int touchpad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetNumGamepadTouchpadFingers", "SDL3") + )(gamepad, touchpad); + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpadFingers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumGamepadTouchpadFingers(SDL_Gamepad* gamepad, int touchpad) => + DllImport.GetNumGamepadTouchpadFingers(gamepad, touchpad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumGamepadTouchpadFingers(Ref gamepad, int touchpad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)((ISdl)this).GetNumGamepadTouchpadFingers(__dsl_gamepad, touchpad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpadFingers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumGamepadTouchpadFingers(Ref gamepad, int touchpad) => + DllImport.GetNumGamepadTouchpadFingers(gamepad, touchpad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumGamepadTouchpads(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetNumGamepadTouchpads", "SDL3") + )(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetNumGamepadTouchpads")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumGamepadTouchpads(SDL_Gamepad* gamepad) => + DllImport.GetNumGamepadTouchpads(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumGamepadTouchpads(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)((ISdl)this).GetNumGamepadTouchpads(__dsl_gamepad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumGamepadTouchpads")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumGamepadTouchpads(Ref gamepad) => + DllImport.GetNumGamepadTouchpads(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumHapticAxes(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetNumHapticAxes", "SDL3") + )(haptic); + + [NativeFunction("SDL3", EntryPoint = "GetNumHapticAxes")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumHapticAxes(SDL_Haptic* haptic) => DllImport.GetNumHapticAxes(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumHapticAxes(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).GetNumHapticAxes(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumHapticAxes")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumHapticAxes(Ref haptic) => + DllImport.GetNumHapticAxes(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumJoystickAxes(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetNumJoystickAxes", "SDL3") + )(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickAxes")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumJoystickAxes(SDL_Joystick* joystick) => + DllImport.GetNumJoystickAxes(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumJoystickAxes(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).GetNumJoystickAxes(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickAxes")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumJoystickAxes(Ref joystick) => + DllImport.GetNumJoystickAxes(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumJoystickBalls(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetNumJoystickBalls", "SDL3") + )(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickBalls")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumJoystickBalls(SDL_Joystick* joystick) => + DllImport.GetNumJoystickBalls(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumJoystickBalls(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).GetNumJoystickBalls(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickBalls")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumJoystickBalls(Ref joystick) => + DllImport.GetNumJoystickBalls(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumJoystickButtons(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetNumJoystickButtons", "SDL3") + )(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickButtons")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumJoystickButtons(SDL_Joystick* joystick) => + DllImport.GetNumJoystickButtons(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumJoystickButtons(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).GetNumJoystickButtons(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickButtons")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumJoystickButtons(Ref joystick) => + DllImport.GetNumJoystickButtons(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumJoystickHats(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetNumJoystickHats", "SDL3") + )(joystick); + + [NativeFunction("SDL3", EntryPoint = "GetNumJoystickHats")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumJoystickHats(SDL_Joystick* joystick) => + DllImport.GetNumJoystickHats(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumJoystickHats(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).GetNumJoystickHats(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetNumJoystickHats")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumJoystickHats(Ref joystick) => + DllImport.GetNumJoystickHats(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumRenderDrivers() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetNumRenderDrivers", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GetNumRenderDrivers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumRenderDrivers() => DllImport.GetNumRenderDrivers(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetNumVideoDrivers() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetNumVideoDrivers", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GetNumVideoDrivers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetNumVideoDrivers() => DllImport.GetNumVideoDrivers(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetPathInfo([NativeTypeName("const char *")] sbyte* path, PathInfo* info) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetPathInfo", "SDL3") + )(path, info); + + [NativeFunction("SDL3", EntryPoint = "GetPathInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + { + fixed (PathInfo* __dsl_info = info) + fixed (sbyte* __dsl_path = path) + { + return (int)((ISdl)this).GetPathInfo(__dsl_path, __dsl_info); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPathInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + nativeContext.LoadFunction("GetPenCapabilities", "SDL3") + )(instance_id, capabilities); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "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)nativeContext.LoadFunction("GetPenFromGuid", "SDL3"))( + guid + ); + + [return: NativeTypeName("SDL_PenID")] + [NativeFunction("SDL3", EntryPoint = "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)nativeContext.LoadFunction("GetPenGuid", "SDL3"))( + instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "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)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)nativeContext.LoadFunction("GetPens", "SDL3"))(count); + + [return: NativeTypeName("SDL_PenID *")] + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GetPenStatus", "SDL3") + )(instance_id, x, y, axes, num_axes); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "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)nativeContext.LoadFunction("GetPenType", "SDL3"))( + instance_id + ); + + [NativeFunction("SDL3", EntryPoint = "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)nativeContext.LoadFunction("GetPerformanceCounter", "SDL3"))(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceCounter")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetPerformanceCounter() => DllImport.GetPerformanceCounter(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetPerformanceFrequency() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetPerformanceFrequency", "SDL3") + )(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetPerformanceFrequency")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetPerformanceFrequency() => DllImport.GetPerformanceFrequency(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PixelFormatEnum ISdl.GetPixelFormatEnumForMasks( + int bpp, + [NativeTypeName("Uint32")] uint Rmask, + [NativeTypeName("Uint32")] uint Gmask, + [NativeTypeName("Uint32")] uint Bmask, + [NativeTypeName("Uint32")] uint Amask + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetPixelFormatEnumForMasks", "SDL3") + )(bpp, Rmask, Gmask, Bmask, Amask); + + [NativeFunction("SDL3", EntryPoint = "GetPixelFormatEnumForMasks")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PixelFormatEnum GetPixelFormatEnumForMasks( + 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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetPixelFormatName(PixelFormatEnum 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) => + DllImport.GetPixelFormatName(format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetPixelFormatNameRaw(PixelFormatEnum format) => + ( + (delegate* unmanaged) + 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) => + DllImport.GetPixelFormatNameRaw(format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetPlatform() => (sbyte*)((ISdl)this).GetPlatformRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetPlatform() => DllImport.GetPlatform(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetPlatformRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetPlatform", "SDL3"))(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPlatform")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetPlatformRaw() => DllImport.GetPlatformRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PowerState ISdl.GetPowerInfo(int* seconds, int* percent) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetPowerInfo", "SDL3") + )(seconds, percent); + + [NativeFunction("SDL3", EntryPoint = "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) + 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) + nativeContext.LoadFunction("GetPrefPath", "SDL3") + )(org, app); + + [return: NativeTypeName("char *")] + [NativeFunction("SDL3", EntryPoint = "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)nativeContext.LoadFunction("GetPrimaryDisplay", "SDL3"))(); + + [return: NativeTypeName("SDL_DisplayID")] + [NativeFunction("SDL3", EntryPoint = "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) + 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( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* default_value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetProperty", "SDL3") + )(props, name, default_value); + + [NativeFunction("SDL3", EntryPoint = "GetProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* GetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* default_value + ) => DllImport.GetProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.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*)((ISdl)this).GetProperty(props, __dsl_name, __dsl_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 + ) => DllImport.GetProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PropertyType ISdl.GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetPropertyType", "SDL3") + )(props, name); + + [NativeFunction("SDL3", EntryPoint = "GetPropertyType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => DllImport.GetPropertyType(props, name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + PropertyType ISdl.GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + { + return (PropertyType)((ISdl)this).GetPropertyType(props, __dsl_name); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetPropertyType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static PropertyType GetPropertyType( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name + ) => DllImport.GetPropertyType(props, name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadType ISdl.GetRealGamepadInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRealGamepadInstanceType", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadInstanceType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadType GetRealGamepadInstanceType( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.GetRealGamepadInstanceType(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadType ISdl.GetRealGamepadType(SDL_Gamepad* gamepad) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRealGamepadType", "SDL3") + )(gamepad); + + [NativeFunction("SDL3", EntryPoint = "GetRealGamepadType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadType GetRealGamepadType(SDL_Gamepad* gamepad) => + DllImport.GetRealGamepadType(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + GamepadType ISdl.GetRealGamepadType(Ref gamepad) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (GamepadType)((ISdl)this).GetRealGamepadType(__dsl_gamepad); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRealGamepadType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static GamepadType GetRealGamepadType(Ref gamepad) => + DllImport.GetRealGamepadType(gamepad); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int* X1, + int* Y1, + int* X2, + int* Y2 + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRectAndLineIntersection", "SDL3") + )(rect, X1, Y1, X2, Y2); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersection")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* rect, + int* X1, + int* Y1, + int* X2, + int* Y2 + ) => DllImport.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) + { + fixed (int* __dsl_Y2 = Y2) + fixed (int* __dsl_X2 = X2) + fixed (int* __dsl_Y1 = Y1) + fixed (int* __dsl_X1 = X1) + fixed (Rect* __dsl_rect = rect) + { + return (MaybeBool) + (int) + ((ISdl)this).GetRectAndLineIntersection( + __dsl_rect, + __dsl_X1, + __dsl_Y1, + __dsl_X2, + __dsl_Y2 + ); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersection")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetRectAndLineIntersection( + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) => DllImport.GetRectAndLineIntersection(rect, X1, Y1, X2, Y2); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* rect, + float* X1, + float* Y1, + float* X2, + float* Y2 + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRectAndLineIntersectionFloat", "SDL3") + )(rect, X1, Y1, X2, Y2); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectAndLineIntersectionFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] FRect* rect, + float* X1, + float* Y1, + float* X2, + float* Y2 + ) => DllImport.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) + { + fixed (float* __dsl_Y2 = Y2) + fixed (float* __dsl_X2 = X2) + fixed (float* __dsl_Y1 = Y1) + fixed (float* __dsl_X1 = X1) + fixed (FRect* __dsl_rect = rect) + { + return (MaybeBool) + (int) + ((ISdl)this).GetRectAndLineIntersectionFloat( + __dsl_rect, + __dsl_X1, + __dsl_Y1, + __dsl_X2, + __dsl_Y2 + ); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectAndLineIntersectionFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetRectAndLineIntersectionFloat( + [NativeTypeName("const SDL_FRect *")] Ref rect, + Ref X1, + Ref Y1, + Ref X2, + Ref Y2 + ) => DllImport.GetRectAndLineIntersectionFloat(rect, X1, Y1, X2, Y2); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Point* points, + int count, + [NativeTypeName("const SDL_Rect *")] Rect* clip, + Rect* result + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRectEnclosingPoints", "SDL3") + )(points, count, clip, result); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPoints")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Point* points, + int count, + [NativeTypeName("const SDL_Rect *")] Rect* clip, + Rect* result + ) => DllImport.GetRectEnclosingPoints(points, count, clip, result); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Ref points, + int count, + [NativeTypeName("const SDL_Rect *")] Ref clip, + Ref result + ) + { + fixed (Rect* __dsl_result = result) + fixed (Rect* __dsl_clip = clip) + fixed (Point* __dsl_points = points) + { + return (MaybeBool) + (int) + ((ISdl)this).GetRectEnclosingPoints( + __dsl_points, + count, + __dsl_clip, + __dsl_result + ); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPoints")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetRectEnclosingPoints( + [NativeTypeName("const SDL_Point *")] Ref points, + int count, + [NativeTypeName("const SDL_Rect *")] Ref clip, + Ref result + ) => DllImport.GetRectEnclosingPoints(points, count, clip, result); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count, + [NativeTypeName("const SDL_FRect *")] FRect* clip, + FRect* result + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRectEnclosingPointsFloat", "SDL3") + )(points, count, clip, result); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectEnclosingPointsFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count, + [NativeTypeName("const SDL_FRect *")] FRect* clip, + FRect* result + ) => DllImport.GetRectEnclosingPointsFloat(points, count, clip, result); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count, + [NativeTypeName("const SDL_FRect *")] Ref clip, + Ref result + ) + { + fixed (FRect* __dsl_result = result) + fixed (FRect* __dsl_clip = clip) + fixed (FPoint* __dsl_points = points) + { + return (MaybeBool) + (int) + ((ISdl)this).GetRectEnclosingPointsFloat( + __dsl_points, + count, + __dsl_clip, + __dsl_result + ); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectEnclosingPointsFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetRectEnclosingPointsFloat( + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count, + [NativeTypeName("const SDL_FRect *")] Ref clip, + Ref result + ) => DllImport.GetRectEnclosingPointsFloat(points, count, clip, result); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRectIntersection( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRectIntersection", "SDL3") + )(A, B, result); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersection")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ) + { + fixed (Rect* __dsl_result = result) + fixed (Rect* __dsl_B = B) + fixed (Rect* __dsl_A = A) + { + return (MaybeBool) + (int)((ISdl)this).GetRectIntersection(__dsl_A, __dsl_B, __dsl_result); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersection")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRectIntersectionFloat", "SDL3") + )(A, B, result); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetRectIntersectionFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B, + Ref result + ) + { + fixed (FRect* __dsl_result = result) + fixed (FRect* __dsl_B = B) + fixed (FRect* __dsl_A = A) + { + return (MaybeBool) + (int)((ISdl)this).GetRectIntersectionFloat(__dsl_A, __dsl_B, __dsl_result); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectIntersectionFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B, + Rect* result + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRectUnion", "SDL3") + )(A, B, result); + + [NativeFunction("SDL3", EntryPoint = "GetRectUnion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B, + Ref result + ) + { + fixed (Rect* __dsl_result = result) + fixed (Rect* __dsl_B = B) + fixed (Rect* __dsl_A = A) + { + return (int)((ISdl)this).GetRectUnion(__dsl_A, __dsl_B, __dsl_result); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B, + FRect* result + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRectUnionFloat", "SDL3") + )(A, B, result); + + [NativeFunction("SDL3", EntryPoint = "GetRectUnionFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B, + Ref result + ) + { + fixed (FRect* __dsl_result = result) + fixed (FRect* __dsl_B = B) + fixed (FRect* __dsl_A = A) + { + return (int)((ISdl)this).GetRectUnionFloat(__dsl_A, __dsl_B, __dsl_result); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRectUnionFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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)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) + nativeContext.LoadFunction("GetRelativeMouseState", "SDL3") + )(x, y); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetRelativeMouseState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetRelativeMouseState(float* x, float* y) => + DllImport.GetRelativeMouseState(x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetRelativeMouseState(Ref x, Ref y) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + { + return (uint)((ISdl)this).GetRelativeMouseState(__dsl_x, __dsl_y); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRelativeMouseState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetRelativeMouseState(Ref x, Ref y) => + DllImport.GetRelativeMouseState(x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderClipRect(SDL_Renderer* renderer, Rect* rect) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderClipRect", "SDL3") + )(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "GetRenderClipRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderClipRect(SDL_Renderer* renderer, Rect* rect) => + DllImport.GetRenderClipRect(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderClipRect(Ref renderer, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).GetRenderClipRect(__dsl_renderer, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderClipRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderClipRect(Ref renderer, Ref rect) => + DllImport.GetRenderClipRect(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderColorScale(SDL_Renderer* renderer, float* scale) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderColorScale", "SDL3") + )(renderer, scale); + + [NativeFunction("SDL3", EntryPoint = "GetRenderColorScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderColorScale(SDL_Renderer* renderer, float* scale) => + DllImport.GetRenderColorScale(renderer, scale); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderColorScale(Ref renderer, Ref scale) + { + fixed (float* __dsl_scale = scale) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).GetRenderColorScale(__dsl_renderer, __dsl_scale); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderColorScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderColorScale(Ref renderer, Ref scale) => + DllImport.GetRenderColorScale(renderer, scale); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode* blendMode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderDrawBlendMode", "SDL3") + )(renderer, blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode* blendMode) => + DllImport.GetRenderDrawBlendMode(renderer, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderDrawBlendMode(Ref renderer, Ref blendMode) + { + fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).GetRenderDrawBlendMode(__dsl_renderer, __dsl_blendMode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderDrawBlendMode( + Ref renderer, + Ref blendMode + ) => DllImport.GetRenderDrawBlendMode(renderer, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderDrawColor", "SDL3") + )(renderer, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => DllImport.GetRenderDrawColor(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) + { + fixed (byte* __dsl_a = a) + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).GetRenderDrawColor(__dsl_renderer, __dsl_r, __dsl_g, __dsl_b, __dsl_a); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) => DllImport.GetRenderDrawColor(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderDrawColorFloat( + SDL_Renderer* renderer, + float* r, + float* g, + float* b, + float* a + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderDrawColorFloat", "SDL3") + )(renderer, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "GetRenderDrawColorFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderDrawColorFloat( + SDL_Renderer* renderer, + float* r, + float* g, + float* b, + float* a + ) => DllImport.GetRenderDrawColorFloat(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderDrawColorFloat( + Ref renderer, + 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 (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).GetRenderDrawColorFloat( + __dsl_renderer, + __dsl_r, + __dsl_g, + __dsl_b, + __dsl_a + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDrawColorFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderDrawColorFloat( + Ref renderer, + Ref r, + Ref g, + Ref b, + Ref a + ) => DllImport.GetRenderDrawColorFloat(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetRenderDriver(int index) => (sbyte*)((ISdl)this).GetRenderDriverRaw(index); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetRenderDriver(int index) => DllImport.GetRenderDriver(index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetRenderDriverRaw(int index) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetRenderDriver", "SDL3") + )(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetRenderDriverRaw(int index) => DllImport.GetRenderDriverRaw(index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Renderer* ISdl.GetRenderer(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderer", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "GetRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Renderer* GetRenderer(SDL_Window* window) => DllImport.GetRenderer(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetRenderer(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (SDL_Renderer*)((ISdl)this).GetRenderer(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetRenderer(Ref window) => + DllImport.GetRenderer(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Renderer* ISdl.GetRendererFromTexture(SDL_Texture* texture) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRendererFromTexture", "SDL3") + )(texture); + + [NativeFunction("SDL3", EntryPoint = "GetRendererFromTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Renderer* GetRendererFromTexture(SDL_Texture* texture) => + DllImport.GetRendererFromTexture(texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetRendererFromTexture(Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (SDL_Renderer*)((ISdl)this).GetRendererFromTexture(__dsl_texture); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererFromTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetRendererFromTexture(Ref texture) => + DllImport.GetRendererFromTexture(texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRendererInfo(SDL_Renderer* renderer, RendererInfo* info) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRendererInfo", "SDL3") + )(renderer, info); + + [NativeFunction("SDL3", EntryPoint = "GetRendererInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRendererInfo(SDL_Renderer* renderer, RendererInfo* info) => + DllImport.GetRendererInfo(renderer, info); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRendererInfo(Ref renderer, Ref info) + { + fixed (RendererInfo* __dsl_info = info) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).GetRendererInfo(__dsl_renderer, __dsl_info); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRendererInfo(Ref renderer, Ref info) => + DllImport.GetRendererInfo(renderer, info); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetRendererProperties(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRendererProperties", "SDL3") + )(renderer); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetRendererProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetRendererProperties(SDL_Renderer* renderer) => + DllImport.GetRendererProperties(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetRendererProperties(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (uint)((ISdl)this).GetRendererProperties(__dsl_renderer); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRendererProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetRendererProperties(Ref renderer) => + DllImport.GetRendererProperties(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderLogicalPresentation( + SDL_Renderer* renderer, + int* w, + int* h, + RendererLogicalPresentation* mode, + ScaleMode* scale_mode + ) => + ( + (delegate* unmanaged< + SDL_Renderer*, + int*, + int*, + RendererLogicalPresentation*, + ScaleMode*, + int>) + nativeContext.LoadFunction("GetRenderLogicalPresentation", "SDL3") + )(renderer, w, h, mode, scale_mode); + + [NativeFunction("SDL3", EntryPoint = "GetRenderLogicalPresentation")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderLogicalPresentation( + SDL_Renderer* renderer, + int* w, + int* h, + RendererLogicalPresentation* mode, + ScaleMode* scale_mode + ) => DllImport.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderLogicalPresentation( + Ref renderer, + Ref w, + Ref h, + Ref mode, + Ref scale_mode + ) + { + fixed (ScaleMode* __dsl_scale_mode = scale_mode) + fixed (RendererLogicalPresentation* __dsl_mode = mode) + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).GetRenderLogicalPresentation( + __dsl_renderer, + __dsl_w, + __dsl_h, + __dsl_mode, + __dsl_scale_mode + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderLogicalPresentation")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderLogicalPresentation( + Ref renderer, + Ref w, + Ref h, + Ref mode, + Ref scale_mode + ) => DllImport.GetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.GetRenderMetalCommandEncoder(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderMetalCommandEncoder", "SDL3") + )(renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalCommandEncoder")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* GetRenderMetalCommandEncoder(SDL_Renderer* renderer) => + DllImport.GetRenderMetalCommandEncoder(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetRenderMetalCommandEncoder(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (void*)((ISdl)this).GetRenderMetalCommandEncoder(__dsl_renderer); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalCommandEncoder")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetRenderMetalCommandEncoder(Ref renderer) => + DllImport.GetRenderMetalCommandEncoder(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.GetRenderMetalLayer(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderMetalLayer", "SDL3") + )(renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderMetalLayer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* GetRenderMetalLayer(SDL_Renderer* renderer) => + DllImport.GetRenderMetalLayer(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetRenderMetalLayer(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (void*)((ISdl)this).GetRenderMetalLayer(__dsl_renderer); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderMetalLayer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetRenderMetalLayer(Ref renderer) => + DllImport.GetRenderMetalLayer(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderOutputSize(SDL_Renderer* renderer, int* w, int* h) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderOutputSize", "SDL3") + )(renderer, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetRenderOutputSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderOutputSize(SDL_Renderer* renderer, int* w, int* h) => + DllImport.GetRenderOutputSize(renderer, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderOutputSize(Ref renderer, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).GetRenderOutputSize(__dsl_renderer, __dsl_w, __dsl_h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderOutputSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderOutputSize(Ref renderer, Ref w, Ref h) => + DllImport.GetRenderOutputSize(renderer, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderScale(SDL_Renderer* renderer, float* scaleX, float* scaleY) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderScale", "SDL3") + )(renderer, scaleX, scaleY); + + [NativeFunction("SDL3", EntryPoint = "GetRenderScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderScale(SDL_Renderer* renderer, float* scaleX, float* scaleY) => + DllImport.GetRenderScale(renderer, scaleX, scaleY); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderScale(Ref renderer, Ref scaleX, Ref scaleY) + { + fixed (float* __dsl_scaleY = scaleY) + fixed (float* __dsl_scaleX = scaleX) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).GetRenderScale(__dsl_renderer, __dsl_scaleX, __dsl_scaleY); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderScale( + Ref renderer, + Ref scaleX, + Ref scaleY + ) => DllImport.GetRenderScale(renderer, scaleX, scaleY); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Texture* ISdl.GetRenderTarget(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderTarget", "SDL3") + )(renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderTarget")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Texture* GetRenderTarget(SDL_Renderer* renderer) => + DllImport.GetRenderTarget(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetRenderTarget(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Texture*)((ISdl)this).GetRenderTarget(__dsl_renderer); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderTarget")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetRenderTarget(Ref renderer) => + DllImport.GetRenderTarget(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderViewport(SDL_Renderer* renderer, Rect* rect) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderViewport", "SDL3") + )(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "GetRenderViewport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderViewport(SDL_Renderer* renderer, Rect* rect) => + DllImport.GetRenderViewport(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderViewport(Ref renderer, Ref rect) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).GetRenderViewport(__dsl_renderer, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderViewport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderViewport(Ref renderer, Ref rect) => + DllImport.GetRenderViewport(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderVSync(SDL_Renderer* renderer, int* vsync) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderVSync", "SDL3") + )(renderer, vsync); + + [NativeFunction("SDL3", EntryPoint = "GetRenderVSync")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderVSync(SDL_Renderer* renderer, int* vsync) => + DllImport.GetRenderVSync(renderer, vsync); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetRenderVSync(Ref renderer, Ref vsync) + { + fixed (int* __dsl_vsync = vsync) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).GetRenderVSync(__dsl_renderer, __dsl_vsync); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderVSync")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetRenderVSync(Ref renderer, Ref vsync) => + DllImport.GetRenderVSync(renderer, vsync); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Window* ISdl.GetRenderWindow(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRenderWindow", "SDL3") + )(renderer); + + [NativeFunction("SDL3", EntryPoint = "GetRenderWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* GetRenderWindow(SDL_Renderer* renderer) => + DllImport.GetRenderWindow(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetRenderWindow(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (SDL_Window*)((ISdl)this).GetRenderWindow(__dsl_renderer); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRenderWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetRenderWindow(Ref renderer) => + DllImport.GetRenderWindow(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetRevision() => (sbyte*)((ISdl)this).GetRevisionRaw(); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetRevision() => DllImport.GetRevision(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetRevisionRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetRevision", "SDL3"))(); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRevision")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetRevisionRaw() => DllImport.GetRevisionRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRGB", "SDL3") + )(pixel, format, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "GetRGB")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => DllImport.GetRGB(pixel, format, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) + { + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (PixelFormat* __dsl_format = format) + { + ((ISdl)this).GetRGB(pixel, __dsl_format, __dsl_r, __dsl_g, __dsl_b); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGB")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetRGB( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) => DllImport.GetRGB(pixel, format, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetRgba", "SDL3") + )(pixel, format, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "GetRgba")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => DllImport.GetRgba(pixel, format, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) + { + fixed (byte* __dsl_a = a) + 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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetRGBA")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GetRgba( + [NativeTypeName("Uint32")] uint pixel, + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) => DllImport.GetRgba(pixel, format, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Scancode ISdl.GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetScancodeFromKey", "SDL3") + )(key); + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromKey")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Scancode GetScancodeFromKey([NativeTypeName("SDL_Keycode")] int key) => + DllImport.GetScancodeFromKey(key); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Scancode ISdl.GetScancodeFromName([NativeTypeName("const char *")] sbyte* name) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetScancodeFromName", "SDL3") + )(name); + + [NativeFunction("SDL3", EntryPoint = "GetScancodeFromName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Scancode GetScancodeFromName([NativeTypeName("const char *")] sbyte* name) => + DllImport.GetScancodeFromName(name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Scancode ISdl.GetScancodeFromName([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (Scancode)((ISdl)this).GetScancodeFromName(__dsl_name); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeFromName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Scancode GetScancodeFromName([NativeTypeName("const char *")] Ref name) => + DllImport.GetScancodeFromName(name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetScancodeName(Scancode scancode) => + (sbyte*)((ISdl)this).GetScancodeNameRaw(scancode); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetScancodeName(Scancode scancode) => + DllImport.GetScancodeName(scancode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetScancodeNameRaw(Scancode scancode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetScancodeName", "SDL3") + )(scancode); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetScancodeName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetScancodeNameRaw(Scancode scancode) => + DllImport.GetScancodeNameRaw(scancode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetSemaphoreValue(SDL_Semaphore* sem) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSemaphoreValue", "SDL3") + )(sem); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetSemaphoreValue")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetSemaphoreValue(SDL_Semaphore* sem) => DllImport.GetSemaphoreValue(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetSemaphoreValue(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (uint)((ISdl)this).GetSemaphoreValue(__dsl_sem); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSemaphoreValue")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetSemaphoreValue(Ref sem) => + DllImport.GetSemaphoreValue(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSensorData(SDL_Sensor* sensor, float* data, int num_values) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSensorData", "SDL3") + )(sensor, data, num_values); + + [NativeFunction("SDL3", EntryPoint = "GetSensorData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSensorData(SDL_Sensor* sensor, float* data, int num_values) => + DllImport.GetSensorData(sensor, data, num_values); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSensorData(Ref sensor, Ref data, int num_values) + { + fixed (float* __dsl_data = data) + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (int)((ISdl)this).GetSensorData(__dsl_sensor, __dsl_data, num_values); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSensorData(Ref sensor, Ref data, int num_values) => + DllImport.GetSensorData(sensor, data, num_values); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetSensorFromInstanceID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => (SDL_Sensor*)((ISdl)this).GetSensorFromInstanceIDRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetSensorFromInstanceID( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => DllImport.GetSensorFromInstanceID(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Sensor* ISdl.GetSensorFromInstanceIDRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetSensorFromInstanceID", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorFromInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Sensor* GetSensorFromInstanceIDRaw( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => DllImport.GetSensorFromInstanceIDRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetSensorInstanceID(SDL_Sensor* sensor) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSensorInstanceID", "SDL3") + )(sensor); + + [return: NativeTypeName("SDL_SensorID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetSensorInstanceID(SDL_Sensor* sensor) => + DllImport.GetSensorInstanceID(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetSensorInstanceID(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (uint)((ISdl)this).GetSensorInstanceID(__dsl_sensor); + } + } + + [return: NativeTypeName("SDL_SensorID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetSensorInstanceID(Ref sensor) => + DllImport.GetSensorInstanceID(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetSensorInstanceName([NativeTypeName("SDL_SensorID")] uint instance_id) => + (sbyte*)((ISdl)this).GetSensorInstanceNameRaw(instance_id); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorInstanceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetSensorInstanceName( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => DllImport.GetSensorInstanceName(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetSensorInstanceNameRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetSensorInstanceName", "SDL3") + )(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) + nativeContext.LoadFunction("GetSensorInstanceNonPortableType", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "GetSensorInstanceNonPortableType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSensorInstanceNonPortableType( + [NativeTypeName("SDL_SensorID")] uint instance_id + ) => DllImport.GetSensorInstanceNonPortableType(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SensorType ISdl.GetSensorInstanceType([NativeTypeName("SDL_SensorID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSensorInstanceType", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "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)] + sbyte* ISdl.GetSensorName(SDL_Sensor* sensor) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSensorName", "SDL3") + )(sensor); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetSensorName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetSensorName(SDL_Sensor* sensor) => DllImport.GetSensorName(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetSensorName(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (sbyte*)((ISdl)this).GetSensorName(__dsl_sensor); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetSensorName(Ref sensor) => + DllImport.GetSensorName(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSensorNonPortableType(SDL_Sensor* sensor) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSensorNonPortableType", "SDL3") + )(sensor); + + [NativeFunction("SDL3", EntryPoint = "GetSensorNonPortableType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSensorNonPortableType(SDL_Sensor* sensor) => + DllImport.GetSensorNonPortableType(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSensorNonPortableType(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (int)((ISdl)this).GetSensorNonPortableType(__dsl_sensor); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorNonPortableType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSensorNonPortableType(Ref sensor) => + DllImport.GetSensorNonPortableType(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetSensorProperties(SDL_Sensor* sensor) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSensorProperties", "SDL3") + )(sensor); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSensorProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetSensorProperties(SDL_Sensor* sensor) => + DllImport.GetSensorProperties(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetSensorProperties(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (uint)((ISdl)this).GetSensorProperties(__dsl_sensor); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetSensorProperties(Ref sensor) => + DllImport.GetSensorProperties(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint* ISdl.GetSensors(int* count) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetSensors", "SDL3"))(count); + + [return: NativeTypeName("SDL_SensorID *")] + [NativeFunction("SDL3", EntryPoint = "GetSensors")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint* GetSensors(int* count) => DllImport.GetSensors(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetSensors(Ref count) + { + fixed (int* __dsl_count = count) + { + return (uint*)((ISdl)this).GetSensors(__dsl_count); + } + } + + [return: NativeTypeName("SDL_SensorID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensors")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetSensors(Ref count) => DllImport.GetSensors(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SensorType ISdl.GetSensorType(SDL_Sensor* sensor) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSensorType", "SDL3") + )(sensor); + + [NativeFunction("SDL3", EntryPoint = "GetSensorType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SensorType GetSensorType(SDL_Sensor* sensor) => DllImport.GetSensorType(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SensorType ISdl.GetSensorType(Ref sensor) + { + fixed (SDL_Sensor* __dsl_sensor = sensor) + { + return (SensorType)((ISdl)this).GetSensorType(__dsl_sensor); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSensorType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SensorType GetSensorType(Ref sensor) => + DllImport.GetSensorType(sensor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSilenceValueForFormat([NativeTypeName("SDL_AudioFormat")] ushort format) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSilenceValueForFormat", "SDL3") + )(format); + + [NativeFunction("SDL3", EntryPoint = "GetSilenceValueForFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSilenceValueForFormat([NativeTypeName("SDL_AudioFormat")] ushort format) => + DllImport.GetSilenceValueForFormat(format); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetStorageFileSize( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("Uint64 *")] ulong* length + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetStorageFileSize", "SDL3") + )(storage, path, length); + + [NativeFunction("SDL3", EntryPoint = "GetStorageFileSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetStorageFileSize( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("Uint64 *")] ulong* length + ) => DllImport.GetStorageFileSize(storage, path, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetStorageFileSize( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("Uint64 *")] Ref length + ) + { + fixed (ulong* __dsl_length = length) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)((ISdl)this).GetStorageFileSize(__dsl_storage, __dsl_path, __dsl_length); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageFileSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetStorageFileSize( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("Uint64 *")] Ref length + ) => DllImport.GetStorageFileSize(storage, path, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetStoragePathInfo( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetStoragePathInfo", "SDL3") + )(storage, path, info); + + [NativeFunction("SDL3", EntryPoint = "GetStoragePathInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetStoragePathInfo( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + PathInfo* info + ) => DllImport.GetStoragePathInfo(storage, path, info); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetStoragePathInfo( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref info + ) + { + fixed (PathInfo* __dsl_info = info) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)((ISdl)this).GetStoragePathInfo(__dsl_storage, __dsl_path, __dsl_info); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStoragePathInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetStoragePathInfo( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref info + ) => DllImport.GetStoragePathInfo(storage, path, info); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetStorageSpaceRemaining(SDL_Storage* storage) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetStorageSpaceRemaining", "SDL3") + )(storage); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetStorageSpaceRemaining")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetStorageSpaceRemaining(SDL_Storage* storage) => + DllImport.GetStorageSpaceRemaining(storage); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetStorageSpaceRemaining(Ref storage) + { + fixed (SDL_Storage* __dsl_storage = storage) + { + return (ulong)((ISdl)this).GetStorageSpaceRemaining(__dsl_storage); + } + } + + [return: NativeTypeName("Uint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStorageSpaceRemaining")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetStorageSpaceRemaining(Ref storage) => + DllImport.GetStorageSpaceRemaining(storage); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* default_value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetStringProperty", "SDL3") + )(props, name, default_value); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetStringProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* default_value + ) => DllImport.GetStringProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref default_value + ) + { + fixed (sbyte* __dsl_default_value = default_value) + fixed (sbyte* __dsl_name = name) + { + return (sbyte*)((ISdl)this).GetStringProperty(props, __dsl_name, __dsl_default_value); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetStringProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref default_value + ) => DllImport.GetStringProperty(props, name, default_value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSurfaceAlphaMod(Surface* surface, [NativeTypeName("Uint8 *")] byte* alpha) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSurfaceAlphaMod", "SDL3") + )(surface, alpha); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceAlphaMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + { + fixed (byte* __dsl_alpha = alpha) + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).GetSurfaceAlphaMod(__dsl_surface, __dsl_alpha); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceAlphaMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref alpha + ) => DllImport.GetSurfaceAlphaMod(surface, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSurfaceBlendMode", "SDL3") + )(surface, blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceBlendMode(Surface* surface, BlendMode* blendMode) => + DllImport.GetSurfaceBlendMode(surface, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSurfaceBlendMode(Ref surface, Ref blendMode) + { + fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).GetSurfaceBlendMode(__dsl_surface, __dsl_blendMode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceBlendMode(Ref surface, Ref blendMode) => + DllImport.GetSurfaceBlendMode(surface, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSurfaceClipRect(Surface* surface, Rect* rect) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSurfaceClipRect", "SDL3") + )(surface, rect); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceClipRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceClipRect(Surface* surface, Rect* rect) => + DllImport.GetSurfaceClipRect(surface, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int 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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceClipRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceClipRect(Ref surface, Ref rect) => + DllImport.GetSurfaceClipRect(surface, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSurfaceColorKey(Surface* surface, [NativeTypeName("Uint32 *")] uint* key) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSurfaceColorKey", "SDL3") + )(surface, key); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorKey")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + { + fixed (uint* __dsl_key = key) + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).GetSurfaceColorKey(__dsl_surface, __dsl_key); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorKey")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceColorKey( + Ref surface, + [NativeTypeName("Uint32 *")] Ref key + ) => DllImport.GetSurfaceColorKey(surface, key); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSurfaceColorMod", "SDL3") + )(surface, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => DllImport.GetSurfaceColorMod(surface, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) + { + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).GetSurfaceColorMod(__dsl_surface, __dsl_r, __dsl_g, __dsl_b); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) => DllImport.GetSurfaceColorMod(surface, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSurfaceColorspace(Surface* surface, Colorspace* colorspace) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSurfaceColorspace", "SDL3") + )(surface, colorspace); + + [NativeFunction("SDL3", EntryPoint = "GetSurfaceColorspace")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceColorspace(Surface* surface, Colorspace* colorspace) => + DllImport.GetSurfaceColorspace(surface, colorspace); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSurfaceColorspace(Ref surface, Ref colorspace) + { + fixed (Colorspace* __dsl_colorspace = colorspace) + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).GetSurfaceColorspace(__dsl_surface, __dsl_colorspace); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceColorspace")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSurfaceColorspace(Ref surface, Ref colorspace) => + DllImport.GetSurfaceColorspace(surface, colorspace); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetSurfaceProperties(Surface* surface) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetSurfaceProperties", "SDL3") + )(surface); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetSurfaceProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetSurfaceProperties(Surface* surface) => + DllImport.GetSurfaceProperties(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetSurfaceProperties(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (uint)((ISdl)this).GetSurfaceProperties(__dsl_surface); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetSurfaceProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetSurfaceProperties(Ref surface) => + DllImport.GetSurfaceProperties(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetSystemRAM() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetSystemRAM", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GetSystemRAM")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetSystemRAM() => DllImport.GetSystemRAM(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SystemTheme ISdl.GetSystemTheme() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetSystemTheme", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GetSystemTheme")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SystemTheme GetSystemTheme() => DllImport.GetSystemTheme(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetTextureAlphaMod(SDL_Texture* texture, [NativeTypeName("Uint8 *")] byte* alpha) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetTextureAlphaMod", "SDL3") + )(texture, alpha); + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureAlphaMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* alpha + ) => DllImport.GetTextureAlphaMod(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref alpha + ) + { + fixed (byte* __dsl_alpha = alpha) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).GetTextureAlphaMod(__dsl_texture, __dsl_alpha); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8 *")] Ref alpha + ) => DllImport.GetTextureAlphaMod(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetTextureAlphaModFloat(SDL_Texture* texture, float* alpha) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetTextureAlphaModFloat", "SDL3") + )(texture, alpha); + + [NativeFunction("SDL3", EntryPoint = "GetTextureAlphaModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureAlphaModFloat(SDL_Texture* texture, float* alpha) => + DllImport.GetTextureAlphaModFloat(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetTextureAlphaModFloat(Ref texture, Ref alpha) + { + fixed (float* __dsl_alpha = alpha) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).GetTextureAlphaModFloat(__dsl_texture, __dsl_alpha); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureAlphaModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureAlphaModFloat(Ref texture, Ref alpha) => + DllImport.GetTextureAlphaModFloat(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetTextureBlendMode(SDL_Texture* texture, BlendMode* blendMode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetTextureBlendMode", "SDL3") + )(texture, blendMode); + + [NativeFunction("SDL3", EntryPoint = "GetTextureBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureBlendMode(SDL_Texture* texture, BlendMode* blendMode) => + DllImport.GetTextureBlendMode(texture, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetTextureBlendMode(Ref texture, Ref blendMode) + { + fixed (BlendMode* __dsl_blendMode = blendMode) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).GetTextureBlendMode(__dsl_texture, __dsl_blendMode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureBlendMode(Ref texture, Ref blendMode) => + DllImport.GetTextureBlendMode(texture, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetTextureColorMod", "SDL3") + )(texture, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureColorMod( + SDL_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( + Ref texture, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b + ) + { + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + fixed (byte* __dsl_r = r) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).GetTextureColorMod(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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(SDL_Texture* texture, float* r, float* g, float* b) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetTextureColorModFloat", "SDL3") + )(texture, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "GetTextureColorModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureColorModFloat(SDL_Texture* texture, float* r, float* g, float* b) => + DllImport.GetTextureColorModFloat(texture, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetTextureColorModFloat( + Ref texture, + Ref r, + Ref g, + Ref b + ) + { + fixed (float* __dsl_b = b) + fixed (float* __dsl_g = g) + fixed (float* __dsl_r = r) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int) + ((ISdl)this).GetTextureColorModFloat(__dsl_texture, __dsl_r, __dsl_g, __dsl_b); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureColorModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureColorModFloat( + Ref texture, + Ref r, + Ref g, + Ref b + ) => DllImport.GetTextureColorModFloat(texture, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetTextureProperties(SDL_Texture* texture) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetTextureProperties", "SDL3") + )(texture); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetTextureProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetTextureProperties(SDL_Texture* texture) => + DllImport.GetTextureProperties(texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetTextureProperties(Ref texture) + { + fixed (SDL_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)] + int ISdl.GetTextureScaleMode(SDL_Texture* texture, ScaleMode* scaleMode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetTextureScaleMode", "SDL3") + )(texture, scaleMode); + + [NativeFunction("SDL3", EntryPoint = "GetTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureScaleMode(SDL_Texture* texture, ScaleMode* scaleMode) => + DllImport.GetTextureScaleMode(texture, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetTextureScaleMode(Ref texture, Ref scaleMode) + { + fixed (ScaleMode* __dsl_scaleMode = scaleMode) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).GetTextureScaleMode(__dsl_texture, __dsl_scaleMode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetTextureScaleMode(Ref texture, Ref scaleMode) => + DllImport.GetTextureScaleMode(texture, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetThreadID(SDL_Thread* thread) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetThreadID", "SDL3") + )(thread); + + [return: NativeTypeName("SDL_ThreadID")] + [NativeFunction("SDL3", EntryPoint = "GetThreadID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetThreadID(SDL_Thread* thread) => DllImport.GetThreadID(thread); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetThreadID(Ref thread) + { + fixed (SDL_Thread* __dsl_thread = thread) + { + return (ulong)((ISdl)this).GetThreadID(__dsl_thread); + } + } + + [return: NativeTypeName("SDL_ThreadID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetThreadID(Ref thread) => DllImport.GetThreadID(thread); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetThreadName(SDL_Thread* thread) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetThreadName", "SDL3") + )(thread); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetThreadName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetThreadName(SDL_Thread* thread) => DllImport.GetThreadName(thread); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetThreadName(Ref thread) + { + fixed (SDL_Thread* __dsl_thread = thread) + { + return (sbyte*)((ISdl)this).GetThreadName(__dsl_thread); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetThreadName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetThreadName(Ref thread) => + DllImport.GetThreadName(thread); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetTicks() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetTicks", "SDL3"))(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicks")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetTicks() => DllImport.GetTicks(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong ISdl.GetTicksNS() => + ((delegate* unmanaged)nativeContext.LoadFunction("GetTicksNS", "SDL3"))(); + + [return: NativeTypeName("Uint64")] + [NativeFunction("SDL3", EntryPoint = "GetTicksNS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong GetTicksNS() => DllImport.GetTicksNS(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetTLS([NativeTypeName("SDL_TLSID")] uint id) => (void*)((ISdl)this).GetTLSRaw(id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetTLS([NativeTypeName("SDL_TLSID")] uint id) => DllImport.GetTLS(id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id) => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_GetTLS", "SDL3"))(id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetTLS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* GetTLSRaw([NativeTypeName("SDL_TLSID")] uint id) => DllImport.GetTLSRaw(id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetTouchDeviceName([NativeTypeName("SDL_TouchID")] ulong touchID) => + (sbyte*)((ISdl)this).GetTouchDeviceNameRaw(touchID); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetTouchDeviceName([NativeTypeName("SDL_TouchID")] ulong touchID) => + DllImport.GetTouchDeviceName(touchID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetTouchDeviceNameRaw([NativeTypeName("SDL_TouchID")] ulong touchID) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetTouchDeviceName", "SDL3") + )(touchID); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDeviceName")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetTouchDeviceNameRaw([NativeTypeName("SDL_TouchID")] ulong touchID) => + DllImport.GetTouchDeviceNameRaw(touchID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + ulong* ISdl.GetTouchDevices(int* count) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetTouchDevices", "SDL3"))( + count + ); + + [return: NativeTypeName("SDL_TouchID *")] + [NativeFunction("SDL3", EntryPoint = "GetTouchDevices")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static ulong* GetTouchDevices(int* count) => DllImport.GetTouchDevices(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetTouchDevices(Ref count) + { + fixed (int* __dsl_count = count) + { + return (ulong*)((ISdl)this).GetTouchDevices(__dsl_count); + } + } + + [return: NativeTypeName("SDL_TouchID *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchDevices")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetTouchDevices(Ref count) => DllImport.GetTouchDevices(count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + TouchDeviceType ISdl.GetTouchDeviceType([NativeTypeName("SDL_TouchID")] ulong touchID) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetTouchDeviceType", "SDL3") + )(touchID); + + [NativeFunction("SDL3", EntryPoint = "GetTouchDeviceType")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static TouchDeviceType GetTouchDeviceType( + [NativeTypeName("SDL_TouchID")] ulong touchID + ) => DllImport.GetTouchDeviceType(touchID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Finger** ISdl.GetTouchFingers([NativeTypeName("SDL_TouchID")] ulong touchID, int* count) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetTouchFingers", "SDL3") + )(touchID, count); + + [NativeFunction("SDL3", EntryPoint = "GetTouchFingers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Finger** GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + int* count + ) => DllImport.GetTouchFingers(touchID, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + Ref count + ) + { + fixed (int* __dsl_count = count) + { + return (Finger**)((ISdl)this).GetTouchFingers(touchID, __dsl_count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetTouchFingers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GetTouchFingers( + [NativeTypeName("SDL_TouchID")] ulong touchID, + Ref count + ) => DllImport.GetTouchFingers(touchID, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetUserFolder(Folder folder) => (sbyte*)((ISdl)this).GetUserFolderRaw(folder); + + [return: NativeTypeName("char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetUserFolder")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetUserFolder(Folder folder) => DllImport.GetUserFolder(folder); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetUserFolderRaw(Folder folder) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetUserFolder", "SDL3") + )(folder); + + [return: NativeTypeName("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) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetVersion", "SDL3"))(ver); + + [NativeFunction("SDL3", EntryPoint = "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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetVideoDriver(int index) => (sbyte*)((ISdl)this).GetVideoDriverRaw(index); + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetVideoDriver(int index) => DllImport.GetVideoDriver(index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetVideoDriverRaw(int index) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetVideoDriver", "SDL3") + )(index); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "SDL_GetVideoDriver")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetVideoDriverRaw(int index) => DllImport.GetVideoDriverRaw(index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowBordersSize( + SDL_Window* window, + int* top, + int* left, + int* bottom, + int* right + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowBordersSize", "SDL3") + )(window, top, left, bottom, right); + + [NativeFunction("SDL3", EntryPoint = "GetWindowBordersSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowBordersSize( + SDL_Window* window, + int* top, + int* left, + int* bottom, + int* right + ) => DllImport.GetWindowBordersSize(window, top, left, bottom, right); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowBordersSize( + Ref window, + Ref top, + Ref left, + Ref bottom, + Ref right + ) + { + fixed (int* __dsl_right = right) + fixed (int* __dsl_bottom = bottom) + fixed (int* __dsl_left = left) + fixed (int* __dsl_top = top) + fixed (SDL_Window* __dsl_window = window) + { + return (int) + ((ISdl)this).GetWindowBordersSize( + __dsl_window, + __dsl_top, + __dsl_left, + __dsl_bottom, + __dsl_right + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowBordersSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowBordersSize( + Ref window, + Ref top, + Ref left, + Ref bottom, + Ref right + ) => DllImport.GetWindowBordersSize(window, top, left, bottom, right); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetWindowDisplayScale(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowDisplayScale", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowDisplayScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetWindowDisplayScale(SDL_Window* window) => + DllImport.GetWindowDisplayScale(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetWindowDisplayScale(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (float)((ISdl)this).GetWindowDisplayScale(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowDisplayScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetWindowDisplayScale(Ref window) => + DllImport.GetWindowDisplayScale(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetWindowFlags(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowFlags", "SDL3") + )(window); + + [return: NativeTypeName("SDL_WindowFlags")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFlags")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetWindowFlags(SDL_Window* window) => DllImport.GetWindowFlags(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetWindowFlags(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)((ISdl)this).GetWindowFlags(__dsl_window); + } + } + + [return: NativeTypeName("SDL_WindowFlags")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFlags")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetWindowFlags(Ref window) => DllImport.GetWindowFlags(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id) => + (SDL_Window*)((ISdl)this).GetWindowFromIDRaw(id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetWindowFromID([NativeTypeName("SDL_WindowID")] uint id) => + DllImport.GetWindowFromID(id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Window* ISdl.GetWindowFromIDRaw([NativeTypeName("SDL_WindowID")] uint id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GetWindowFromID", "SDL3") + )(id); + + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFromID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* GetWindowFromIDRaw([NativeTypeName("SDL_WindowID")] uint id) => + DllImport.GetWindowFromIDRaw(id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + DisplayMode* ISdl.GetWindowFullscreenMode(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowFullscreenMode", "SDL3") + )(window); + + [return: NativeTypeName("const SDL_DisplayMode *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowFullscreenMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static DisplayMode* GetWindowFullscreenMode(SDL_Window* window) => + DllImport.GetWindowFullscreenMode(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetWindowFullscreenMode(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (DisplayMode*)((ISdl)this).GetWindowFullscreenMode(__dsl_window); + } + } + + [return: NativeTypeName("const SDL_DisplayMode *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowFullscreenMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetWindowFullscreenMode(Ref window) => + DllImport.GetWindowFullscreenMode(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.GetWindowICCProfile(SDL_Window* window, [NativeTypeName("size_t *")] nuint* size) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowICCProfile", "SDL3") + )(window, size); + + [NativeFunction("SDL3", EntryPoint = "GetWindowICCProfile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* GetWindowICCProfile( + SDL_Window* window, + [NativeTypeName("size_t *")] nuint* size + ) => DllImport.GetWindowICCProfile(window, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetWindowICCProfile( + Ref window, + [NativeTypeName("size_t *")] Ref size + ) + { + fixed (nuint* __dsl_size = size) + fixed (SDL_Window* __dsl_window = window) + { + return (void*)((ISdl)this).GetWindowICCProfile(__dsl_window, __dsl_size); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowICCProfile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetWindowICCProfile( + Ref window, + [NativeTypeName("size_t *")] Ref size + ) => DllImport.GetWindowICCProfile(window, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetWindowID(SDL_Window* window) => + ((delegate* unmanaged)nativeContext.LoadFunction("GetWindowID", "SDL3"))( + window + ); + + [return: NativeTypeName("SDL_WindowID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetWindowID(SDL_Window* window) => DllImport.GetWindowID(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetWindowID(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)((ISdl)this).GetWindowID(__dsl_window); + } + } + + [return: NativeTypeName("SDL_WindowID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowID")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetWindowID(Ref window) => DllImport.GetWindowID(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowKeyboardGrab(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowKeyboardGrab", "SDL3") + )(window); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowKeyboardGrab")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowKeyboardGrab(SDL_Window* window) => + DllImport.GetWindowKeyboardGrab(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetWindowKeyboardGrab(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)((ISdl)this).GetWindowKeyboardGrab(__dsl_window); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowKeyboardGrab")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetWindowKeyboardGrab(Ref window) => + DllImport.GetWindowKeyboardGrab(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowMaximumSize(SDL_Window* window, int* w, int* h) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowMaximumSize", "SDL3") + )(window, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowMaximumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowMaximumSize(SDL_Window* window, int* w, int* h) => + DllImport.GetWindowMaximumSize(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowMaximumSize(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).GetWindowMaximumSize(__dsl_window, __dsl_w, __dsl_h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMaximumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowMaximumSize(Ref window, Ref w, Ref h) => + DllImport.GetWindowMaximumSize(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowMinimumSize(SDL_Window* window, int* w, int* h) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowMinimumSize", "SDL3") + )(window, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowMinimumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowMinimumSize(SDL_Window* window, int* w, int* h) => + DllImport.GetWindowMinimumSize(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowMinimumSize(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).GetWindowMinimumSize(__dsl_window, __dsl_w, __dsl_h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMinimumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowMinimumSize(Ref window, Ref w, Ref h) => + DllImport.GetWindowMinimumSize(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowMouseGrab(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowMouseGrab", "SDL3") + )(window); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseGrab")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowMouseGrab(SDL_Window* window) => + DllImport.GetWindowMouseGrab(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GetWindowMouseGrab(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)((ISdl)this).GetWindowMouseGrab(__dsl_window); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseGrab")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GetWindowMouseGrab(Ref window) => + DllImport.GetWindowMouseGrab(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Rect* ISdl.GetWindowMouseRect(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowMouseRect", "SDL3") + )(window); + + [return: NativeTypeName("const SDL_Rect *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowMouseRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Rect* GetWindowMouseRect(SDL_Window* window) => + DllImport.GetWindowMouseRect(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetWindowMouseRect(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (Rect*)((ISdl)this).GetWindowMouseRect(__dsl_window); + } + } + + [return: NativeTypeName("const SDL_Rect *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowMouseRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetWindowMouseRect(Ref window) => + DllImport.GetWindowMouseRect(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowOpacity(SDL_Window* window, float* out_opacity) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowOpacity", "SDL3") + )(window, out_opacity); + + [NativeFunction("SDL3", EntryPoint = "GetWindowOpacity")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowOpacity(SDL_Window* window, float* out_opacity) => + DllImport.GetWindowOpacity(window, out_opacity); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowOpacity(Ref window, Ref out_opacity) + { + fixed (float* __dsl_out_opacity = out_opacity) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).GetWindowOpacity(__dsl_window, __dsl_out_opacity); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowOpacity")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowOpacity(Ref window, Ref out_opacity) => + DllImport.GetWindowOpacity(window, out_opacity); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Window* ISdl.GetWindowParent(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowParent", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowParent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* GetWindowParent(SDL_Window* window) => + DllImport.GetWindowParent(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetWindowParent(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (SDL_Window*)((ISdl)this).GetWindowParent(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowParent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetWindowParent(Ref window) => + DllImport.GetWindowParent(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetWindowPixelDensity(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowPixelDensity", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelDensity")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetWindowPixelDensity(SDL_Window* window) => + DllImport.GetWindowPixelDensity(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + float ISdl.GetWindowPixelDensity(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (float)((ISdl)this).GetWindowPixelDensity(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelDensity")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static float GetWindowPixelDensity(Ref window) => + DllImport.GetWindowPixelDensity(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetWindowPixelFormat(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowPixelFormat", "SDL3") + )(window); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "GetWindowPixelFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetWindowPixelFormat(SDL_Window* window) => + DllImport.GetWindowPixelFormat(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetWindowPixelFormat(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)((ISdl)this).GetWindowPixelFormat(__dsl_window); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPixelFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetWindowPixelFormat(Ref window) => + DllImport.GetWindowPixelFormat(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowPosition(SDL_Window* window, int* x, int* y) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowPosition", "SDL3") + )(window, x, y); + + [NativeFunction("SDL3", EntryPoint = "GetWindowPosition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowPosition(SDL_Window* window, int* x, int* y) => + DllImport.GetWindowPosition(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowPosition(Ref window, Ref x, Ref y) + { + fixed (int* __dsl_y = y) + fixed (int* __dsl_x = x) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).GetWindowPosition(__dsl_window, __dsl_x, __dsl_y); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowPosition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowPosition(Ref window, Ref x, Ref y) => + DllImport.GetWindowPosition(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetWindowProperties(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowProperties", "SDL3") + )(window); + + [return: NativeTypeName("SDL_PropertiesID")] + [NativeFunction("SDL3", EntryPoint = "GetWindowProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetWindowProperties(SDL_Window* window) => + DllImport.GetWindowProperties(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.GetWindowProperties(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (uint)((ISdl)this).GetWindowProperties(__dsl_window); + } + } + + [return: NativeTypeName("SDL_PropertiesID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint GetWindowProperties(Ref window) => + DllImport.GetWindowProperties(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowSize(SDL_Window* window, int* w, int* h) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowSize", "SDL3") + )(window, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowSize(SDL_Window* window, int* w, int* h) => + DllImport.GetWindowSize(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowSize(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).GetWindowSize(__dsl_window, __dsl_w, __dsl_h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowSize(Ref window, Ref w, Ref h) => + DllImport.GetWindowSize(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowSizeInPixels(SDL_Window* window, int* w, int* h) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowSizeInPixels", "SDL3") + )(window, w, h); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSizeInPixels")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowSizeInPixels(SDL_Window* window, int* w, int* h) => + DllImport.GetWindowSizeInPixels(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GetWindowSizeInPixels(Ref window, Ref w, Ref h) + { + fixed (int* __dsl_h = h) + fixed (int* __dsl_w = w) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).GetWindowSizeInPixels(__dsl_window, __dsl_w, __dsl_h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSizeInPixels")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GetWindowSizeInPixels(Ref window, Ref w, Ref h) => + DllImport.GetWindowSizeInPixels(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.GetWindowSurface(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowSurface", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "GetWindowSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* GetWindowSurface(SDL_Window* window) => + DllImport.GetWindowSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetWindowSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (Surface*)((ISdl)this).GetWindowSurface(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetWindowSurface(Ref window) => + DllImport.GetWindowSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte* ISdl.GetWindowTitle(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GetWindowTitle", "SDL3") + )(window); + + [return: NativeTypeName("const char *")] + [NativeFunction("SDL3", EntryPoint = "GetWindowTitle")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte* GetWindowTitle(SDL_Window* window) => DllImport.GetWindowTitle(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GetWindowTitle(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (sbyte*)((ISdl)this).GetWindowTitle(__dsl_window); + } + } + + [return: NativeTypeName("const char *")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GetWindowTitle")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GetWindowTitle(Ref window) => + DllImport.GetWindowTitle(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.GLCreateContext(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GLCreateContext", "SDL3") + )(window); + + [return: NativeTypeName("SDL_GLContext")] + [NativeFunction("SDL3", EntryPoint = "GLCreateContext")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* GLCreateContext(SDL_Window* window) => DllImport.GLCreateContext(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GLCreateContext(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (void*)((ISdl)this).GLCreateContext(__dsl_window); + } + } + + [return: NativeTypeName("SDL_GLContext")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_CreateContext")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GLCreateContext(Ref window) => DllImport.GLCreateContext(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context) => + ((delegate* unmanaged)nativeContext.LoadFunction("GLDeleteContext", "SDL3"))( + context + ); + + [NativeFunction("SDL3", EntryPoint = "GLDeleteContext")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLDeleteContext([NativeTypeName("SDL_GLContext")] void* context) => + DllImport.GLDeleteContext(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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_DeleteContext")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLDeleteContext([NativeTypeName("SDL_GLContext")] Ref context) => + DllImport.GLDeleteContext(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GLExtensionSupported", "SDL3") + )(extension); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "GLExtensionSupported")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLExtensionSupported([NativeTypeName("const char *")] sbyte* extension) => + DllImport.GLExtensionSupported(extension); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.GLExtensionSupported([NativeTypeName("const char *")] Ref extension) + { + fixed (sbyte* __dsl_extension = extension) + { + return (MaybeBool)(int)((ISdl)this).GLExtensionSupported(__dsl_extension); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_ExtensionSupported")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool GLExtensionSupported( + [NativeTypeName("const char *")] Ref extension + ) => DllImport.GLExtensionSupported(extension); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLGetAttribute(GLattr attr, int* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GLGetAttribute", "SDL3") + )(attr, value); + + [NativeFunction("SDL3", EntryPoint = "GLGetAttribute")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLGetAttribute(GLattr attr, int* value) => + DllImport.GLGetAttribute(attr, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLGetAttribute(GLattr attr, Ref value) + { + fixed (int* __dsl_value = value) + { + return (int)((ISdl)this).GLGetAttribute(attr, __dsl_value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetAttribute")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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() => + ( + (delegate* unmanaged) + 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(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.GLGetCurrentWindow() => (SDL_Window*)((ISdl)this).GLGetCurrentWindowRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr GLGetCurrentWindow() => DllImport.GLGetCurrentWindow(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Window* ISdl.GLGetCurrentWindowRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_GL_GetCurrentWindow", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetCurrentWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Window* GLGetCurrentWindowRaw() => DllImport.GLGetCurrentWindowRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + delegate* unmanaged ISdl.GLGetProcAddress([NativeTypeName("const char *")] sbyte* proc) => + ( + (delegate* unmanaged>) + nativeContext.LoadFunction("GLGetProcAddress", "SDL3") + )(proc); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "GLGetProcAddress")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] sbyte* proc + ) => DllImport.GLGetProcAddress(proc); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + delegate* unmanaged ISdl.GLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) + { + fixed (sbyte* __dsl_proc = proc) + { + return (delegate* unmanaged)((ISdl)this).GLGetProcAddress(__dsl_proc); + } + } + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetProcAddress")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static delegate* unmanaged GLGetProcAddress( + [NativeTypeName("const char *")] Ref proc + ) => DllImport.GLGetProcAddress(proc); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLGetSwapInterval(int* interval) => + ((delegate* unmanaged)nativeContext.LoadFunction("GLGetSwapInterval", "SDL3"))( + interval + ); + + [NativeFunction("SDL3", EntryPoint = "GLGetSwapInterval")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLGetSwapInterval(int* interval) => DllImport.GLGetSwapInterval(interval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLGetSwapInterval(Ref interval) + { + fixed (int* __dsl_interval = interval) + { + return (int)((ISdl)this).GLGetSwapInterval(__dsl_interval); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_GetSwapInterval")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLGetSwapInterval(Ref interval) => DllImport.GLGetSwapInterval(interval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => + ((delegate* unmanaged)nativeContext.LoadFunction("GLLoadLibrary", "SDL3"))( + path + ); + + [NativeFunction("SDL3", EntryPoint = "GLLoadLibrary")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLLoadLibrary([NativeTypeName("const char *")] sbyte* path) => + DllImport.GLLoadLibrary(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLLoadLibrary([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (int)((ISdl)this).GLLoadLibrary(__dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_LoadLibrary")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLLoadLibrary([NativeTypeName("const char *")] Ref path) => + DllImport.GLLoadLibrary(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLMakeCurrent(SDL_Window* window, [NativeTypeName("SDL_GLContext")] void* context) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GLMakeCurrent", "SDL3") + )(window, context); + + [NativeFunction("SDL3", EntryPoint = "GLMakeCurrent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLMakeCurrent( + SDL_Window* window, + [NativeTypeName("SDL_GLContext")] void* context + ) => DllImport.GLMakeCurrent(window, context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLMakeCurrent(Ref window, [NativeTypeName("SDL_GLContext")] Ref context) + { + fixed (void* __dsl_context = context) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).GLMakeCurrent(__dsl_window, __dsl_context); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_MakeCurrent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLMakeCurrent( + Ref window, + [NativeTypeName("SDL_GLContext")] Ref context + ) => DllImport.GLMakeCurrent(window, context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GLResetAttributes() => + ((delegate* unmanaged)nativeContext.LoadFunction("GLResetAttributes", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GLResetAttributes")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GLResetAttributes() => DllImport.GLResetAttributes(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLSetAttribute(GLattr attr, int value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GLSetAttribute", "SDL3") + )(attr, value); + + [NativeFunction("SDL3", EntryPoint = "GLSetAttribute")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLSetAttribute(GLattr attr, int value) => + DllImport.GLSetAttribute(attr, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLSetSwapInterval(int interval) => + ((delegate* unmanaged)nativeContext.LoadFunction("GLSetSwapInterval", "SDL3"))( + interval + ); + + [NativeFunction("SDL3", EntryPoint = "GLSetSwapInterval")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLSetSwapInterval(int interval) => DllImport.GLSetSwapInterval(interval); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLSwapWindow(SDL_Window* window) => + ((delegate* unmanaged)nativeContext.LoadFunction("GLSwapWindow", "SDL3"))( + window + ); + + [NativeFunction("SDL3", EntryPoint = "GLSwapWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLSwapWindow(SDL_Window* window) => DllImport.GLSwapWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.GLSwapWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).GLSwapWindow(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GL_SwapWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GLSwapWindow(Ref window) => DllImport.GLSwapWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.GLUnloadLibrary() => + ((delegate* unmanaged)nativeContext.LoadFunction("GLUnloadLibrary", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "GLUnloadLibrary")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void GLUnloadLibrary() => DllImport.GLUnloadLibrary(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte** ISdl.GlobDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GlobDirectory", "SDL3") + )(path, pattern, flags, count); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte** GlobDirectory( + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ) => DllImport.GlobDirectory(path, pattern, flags, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GlobDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) + { + fixed (int* __dsl_count = count) + fixed (sbyte* __dsl_pattern = pattern) + fixed (sbyte* __dsl_path = path) + { + return (sbyte**) + ((ISdl)this).GlobDirectory(__dsl_path, __dsl_pattern, flags, __dsl_count); + } + } + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GlobDirectory( + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) => DllImport.GlobDirectory(path, pattern, flags, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + sbyte** ISdl.GlobStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("GlobStorageDirectory", "SDL3") + )(storage, path, pattern, flags, count); + + [return: NativeTypeName("char **")] + [NativeFunction("SDL3", EntryPoint = "GlobStorageDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static sbyte** GlobStorageDirectory( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const char *")] sbyte* pattern, + [NativeTypeName("Uint32")] uint flags, + int* count + ) => DllImport.GlobStorageDirectory(storage, path, pattern, flags, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr2D ISdl.GlobStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) + { + fixed (int* __dsl_count = count) + fixed (sbyte* __dsl_pattern = pattern) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (sbyte**) + ((ISdl)this).GlobStorageDirectory( + __dsl_storage, + __dsl_path, + __dsl_pattern, + flags, + __dsl_count + ); + } + } + + [return: NativeTypeName("char **")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GlobStorageDirectory")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr2D GlobStorageDirectory( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const char *")] Ref pattern, + [NativeTypeName("Uint32")] uint flags, + Ref count + ) => DllImport.GlobStorageDirectory(storage, path, pattern, flags, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Guid ISdl.GuidFromString([NativeTypeName("const char *")] sbyte* pchGUID) => + ((delegate* unmanaged)nativeContext.LoadFunction("GuidFromString", "SDL3"))( + pchGUID + ); + + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("GuidToString", "SDL3") + )(guid, pszGUID, cbGUID); + + [NativeFunction("SDL3", EntryPoint = "GuidToString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + { + fixed (sbyte* __dsl_pszGUID = pszGUID) + { + return (int)((ISdl)this).GuidToString(guid, __dsl_pszGUID, cbGUID); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_GUIDToString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int GuidToString( + Guid guid, + [NativeTypeName("char *")] Ref pszGUID, + int cbGUID + ) => DllImport.GuidToString(guid, pszGUID, cbGUID); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HapticEffectSupported( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HapticEffectSupported", "SDL3") + )(haptic, effect); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticEffectSupported")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HapticEffectSupported( + SDL_Haptic* haptic, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* effect + ) => DllImport.HapticEffectSupported(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HapticEffectSupported( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) + { + fixed (HapticEffect* __dsl_effect = effect) + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (MaybeBool) + (int)((ISdl)this).HapticEffectSupported(__dsl_haptic, __dsl_effect); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticEffectSupported")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HapticEffectSupported( + Ref haptic, + [NativeTypeName("const SDL_HapticEffect *")] Ref effect + ) => DllImport.HapticEffectSupported(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HapticRumbleSupported(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HapticRumbleSupported", "SDL3") + )(haptic); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HapticRumbleSupported")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HapticRumbleSupported(SDL_Haptic* haptic) => + DllImport.HapticRumbleSupported(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HapticRumbleSupported(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (MaybeBool)(int)((ISdl)this).HapticRumbleSupported(__dsl_haptic); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HapticRumbleSupported")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HapticRumbleSupported(Ref haptic) => + DllImport.HapticRumbleSupported(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasAltiVec() => (MaybeBool)(int)((ISdl)this).HasAltiVecRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasAltiVec() => DllImport.HasAltiVec(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasAltiVecRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasAltiVec", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAltiVec")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasAltiVecRaw() => DllImport.HasAltiVecRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasArmsimd() => (MaybeBool)(int)((ISdl)this).HasArmsimdRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasArmsimd() => DllImport.HasArmsimd(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasArmsimdRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasARMSIMD", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasARMSIMD")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasArmsimdRaw() => DllImport.HasArmsimdRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasAVX() => (MaybeBool)(int)((ISdl)this).HasAVXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasAVX() => DllImport.HasAVX(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasAVX2() => (MaybeBool)(int)((ISdl)this).HasAVX2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasAVX2() => DllImport.HasAVX2(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasAVX2Raw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasAVX2", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX2")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasAVX2Raw() => DllImport.HasAVX2Raw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasAVX512F() => (MaybeBool)(int)((ISdl)this).HasAVX512FRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasAVX512F() => DllImport.HasAVX512F(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasAVX512FRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasAVX512F", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX512F")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasAVX512FRaw() => DllImport.HasAVX512FRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasAVXRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasAVX", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasAVX")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasAVXRaw() => DllImport.HasAVXRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasClipboardData([NativeTypeName("const char *")] sbyte* mime_type) => + ((delegate* unmanaged)nativeContext.LoadFunction("HasClipboardData", "SDL3"))( + mime_type + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasClipboardData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + { + fixed (sbyte* __dsl_mime_type = mime_type) + { + return (MaybeBool)(int)((ISdl)this).HasClipboardData(__dsl_mime_type); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasClipboardText() => DllImport.HasClipboardText(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasClipboardTextRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasClipboardText", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasClipboardText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasClipboardTextRaw() => DllImport.HasClipboardTextRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasEvent([NativeTypeName("Uint32")] uint type) => + (MaybeBool)(int)((ISdl)this).HasEventRaw(type); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasEvent([NativeTypeName("Uint32")] uint type) => + DllImport.HasEvent(type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasEventRaw([NativeTypeName("Uint32")] uint type) => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasEvent", "SDL3"))(type); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasEventRaw([NativeTypeName("Uint32")] uint type) => + DllImport.HasEventRaw(type); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => (MaybeBool)(int)((ISdl)this).HasEventsRaw(minType, maxType); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasEvents( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => DllImport.HasEvents(minType, maxType); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasEventsRaw( + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasEvents", "SDL3"))( + minType, + maxType + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasEvents")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasGamepad() => DllImport.HasGamepad(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasGamepadRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasGamepad", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasGamepadRaw() => DllImport.HasGamepadRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasJoystick() => (MaybeBool)(int)((ISdl)this).HasJoystickRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasJoystick() => DllImport.HasJoystick(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasJoystickRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasJoystick", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasJoystickRaw() => DllImport.HasJoystickRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasKeyboard() => (MaybeBool)(int)((ISdl)this).HasKeyboardRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasKeyboard() => DllImport.HasKeyboard(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasKeyboardRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasKeyboard", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasKeyboard")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasKeyboardRaw() => DllImport.HasKeyboardRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasLasx() => (MaybeBool)(int)((ISdl)this).HasLasxRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasLasx() => DllImport.HasLasx(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasLasxRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasLASX", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLASX")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasLasxRaw() => DllImport.HasLasxRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasLSX() => (MaybeBool)(int)((ISdl)this).HasLSXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasLSX() => DllImport.HasLSX(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasLSXRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasLSX", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasLSX")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasLSXRaw() => DllImport.HasLSXRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasMMX() => (MaybeBool)(int)((ISdl)this).HasMMXRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasMMX() => DllImport.HasMMX(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasMMXRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasMMX", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMMX")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasMMXRaw() => DllImport.HasMMXRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasMouse() => (MaybeBool)(int)((ISdl)this).HasMouseRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasMouse() => DllImport.HasMouse(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasMouseRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasMouse", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasMouse")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasMouseRaw() => DllImport.HasMouseRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasNeon() => (MaybeBool)(int)((ISdl)this).HasNeonRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasNeon() => DllImport.HasNeon(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasNeonRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasNEON", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasNEON")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasNeonRaw() => DllImport.HasNeonRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasPrimarySelectionText() => + (MaybeBool)(int)((ISdl)this).HasPrimarySelectionTextRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasPrimarySelectionText() => DllImport.HasPrimarySelectionText(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasPrimarySelectionTextRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_HasPrimarySelectionText", "SDL3") + )(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasPrimarySelectionText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasPrimarySelectionTextRaw() => DllImport.HasPrimarySelectionTextRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => + ((delegate* unmanaged)nativeContext.LoadFunction("HasProperty", "SDL3"))( + props, + name + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name + ) => DllImport.HasProperty(props, name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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( + [NativeTypeName("const SDL_Rect *")] Rect* A, + [NativeTypeName("const SDL_Rect *")] Rect* B + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HasRectIntersection", "SDL3") + )(A, B); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersection")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("const SDL_Rect *")] Ref A, + [NativeTypeName("const SDL_Rect *")] Ref B + ) + { + fixed (Rect* __dsl_B = B) + fixed (Rect* __dsl_A = A) + { + return (MaybeBool)(int)((ISdl)this).HasRectIntersection(__dsl_A, __dsl_B); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersection")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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( + [NativeTypeName("const SDL_FRect *")] FRect* A, + [NativeTypeName("const SDL_FRect *")] FRect* B + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HasRectIntersectionFloat", "SDL3") + )(A, B); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "HasRectIntersectionFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("const SDL_FRect *")] Ref A, + [NativeTypeName("const SDL_FRect *")] Ref B + ) + { + fixed (FRect* __dsl_B = B) + fixed (FRect* __dsl_A = A) + { + return (MaybeBool)(int)((ISdl)this).HasRectIntersectionFloat(__dsl_A, __dsl_B); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasRectIntersectionFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasScreenKeyboardSupport() => DllImport.HasScreenKeyboardSupport(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasScreenKeyboardSupportRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_HasScreenKeyboardSupport", "SDL3") + )(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasScreenKeyboardSupport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasScreenKeyboardSupportRaw() => DllImport.HasScreenKeyboardSupportRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasSSE() => (MaybeBool)(int)((ISdl)this).HasSSERaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasSSE() => DllImport.HasSSE(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasSSE2() => (MaybeBool)(int)((ISdl)this).HasSSE2Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasSSE2() => DllImport.HasSSE2(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasSSE2Raw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE2", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE2")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasSSE2Raw() => DllImport.HasSSE2Raw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasSSE3() => (MaybeBool)(int)((ISdl)this).HasSSE3Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasSSE3() => DllImport.HasSSE3(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasSSE3Raw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE3", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE3")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasSSE3Raw() => DllImport.HasSSE3Raw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasSSE41() => (MaybeBool)(int)((ISdl)this).HasSSE41Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasSSE41() => DllImport.HasSSE41(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasSSE41Raw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE41", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE41")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasSSE41Raw() => DllImport.HasSSE41Raw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.HasSSE42() => (MaybeBool)(int)((ISdl)this).HasSSE42Raw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool HasSSE42() => DllImport.HasSSE42(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasSSE42Raw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE42", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE42")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasSSE42Raw() => DllImport.HasSSE42Raw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HasSSERaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_HasSSE", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_HasSSE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HasSSERaw() => DllImport.HasSSERaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.HidBleScan([NativeTypeName("SDL_bool")] int active) => + ((delegate* unmanaged)nativeContext.LoadFunction("HidBleScan", "SDL3"))(active); + + [NativeFunction("SDL3", EntryPoint = "HidBleScan")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void HidBleScan([NativeTypeName("SDL_bool")] int active) => + DllImport.HidBleScan(active); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active) => + ((ISdl)this).HidBleScan((int)active); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_ble_scan")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void HidBleScan([NativeTypeName("SDL_bool")] MaybeBool active) => + DllImport.HidBleScan(active); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidClose(SDL_hid_device* dev) => + ((delegate* unmanaged)nativeContext.LoadFunction("HidClose", "SDL3"))( + dev + ); + + [NativeFunction("SDL3", EntryPoint = "HidClose")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidClose(SDL_hid_device* dev) => DllImport.HidClose(dev); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidClose(Ref dev) + { + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidClose(__dsl_dev); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_close")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidClose(Ref dev) => DllImport.HidClose(dev); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.HidDeviceChangeCount() => + ((delegate* unmanaged)nativeContext.LoadFunction("HidDeviceChangeCount", "SDL3"))(); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "HidDeviceChangeCount")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint HidDeviceChangeCount() => DllImport.HidDeviceChangeCount(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.HidEnumerate( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ) => (HidDeviceInfo*)((ISdl)this).HidEnumerateRaw(vendor_id, product_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr HidEnumerate( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ) => DllImport.HidEnumerate(vendor_id, product_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + HidDeviceInfo* ISdl.HidEnumerateRaw( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_hid_enumerate", "SDL3") + )(vendor_id, product_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_hid_enumerate")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HidDeviceInfo* HidEnumerateRaw( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id + ) => DllImport.HidEnumerateRaw(vendor_id, product_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidExit() => + ((delegate* unmanaged)nativeContext.LoadFunction("HidExit", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "HidExit")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidExit() => DllImport.HidExit(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.HidFreeEnumeration(HidDeviceInfo* devs) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidFreeEnumeration", "SDL3") + )(devs); + + [NativeFunction("SDL3", EntryPoint = "HidFreeEnumeration")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void HidFreeEnumeration(HidDeviceInfo* devs) => + DllImport.HidFreeEnumeration(devs); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.HidFreeEnumeration(Ref devs) + { + fixed (HidDeviceInfo* __dsl_devs = devs) + { + ((ISdl)this).HidFreeEnumeration(__dsl_devs); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_free_enumeration")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void HidFreeEnumeration(Ref devs) => + DllImport.HidFreeEnumeration(devs); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + HidDeviceInfo* ISdl.HidGetDeviceInfo(SDL_hid_device* dev) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidGetDeviceInfo", "SDL3") + )(dev); + + [NativeFunction("SDL3", EntryPoint = "HidGetDeviceInfo")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static HidDeviceInfo* HidGetDeviceInfo(SDL_hid_device* dev) => + DllImport.HidGetDeviceInfo(dev); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.HidGetDeviceInfo(Ref dev) + { + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (HidDeviceInfo*)((ISdl)this).HidGetDeviceInfo(__dsl_dev); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_device_info")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr HidGetDeviceInfo(Ref dev) => + DllImport.HidGetDeviceInfo(dev); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidGetFeatureReport", "SDL3") + )(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HidGetFeatureReport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidGetFeatureReport(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetFeatureReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidGetFeatureReport(__dsl_dev, __dsl_data, length); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_feature_report")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetFeatureReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidGetFeatureReport(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetIndexedString( + SDL_hid_device* dev, + int string_index, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidGetIndexedString", "SDL3") + )(dev, string_index, @string, maxlen); + + [NativeFunction("SDL3", EntryPoint = "HidGetIndexedString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetIndexedString( + SDL_hid_device* dev, + int string_index, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => DllImport.HidGetIndexedString(dev, string_index, @string, maxlen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetIndexedString( + Ref dev, + int string_index, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int) + ((ISdl)this).HidGetIndexedString(__dsl_dev, string_index, __dsl_string, maxlen); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_indexed_string")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetIndexedString( + Ref dev, + int string_index, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) => DllImport.HidGetIndexedString(dev, string_index, @string, maxlen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetInputReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidGetInputReport", "SDL3") + )(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HidGetInputReport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetInputReport( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidGetInputReport(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetInputReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidGetInputReport(__dsl_dev, __dsl_data, length); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_input_report")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetInputReport( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidGetInputReport(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetManufacturerString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidGetManufacturerString", "SDL3") + )(dev, @string, maxlen); + + [NativeFunction("SDL3", EntryPoint = "HidGetManufacturerString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetManufacturerString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => DllImport.HidGetManufacturerString(dev, @string, maxlen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetManufacturerString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidGetManufacturerString(__dsl_dev, __dsl_string, maxlen); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_manufacturer_string")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetManufacturerString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) => DllImport.HidGetManufacturerString(dev, @string, maxlen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetProductString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidGetProductString", "SDL3") + )(dev, @string, maxlen); + + [NativeFunction("SDL3", EntryPoint = "HidGetProductString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetProductString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => DllImport.HidGetProductString(dev, @string, maxlen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetProductString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidGetProductString(__dsl_dev, __dsl_string, maxlen); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_product_string")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetProductString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) => DllImport.HidGetProductString(dev, @string, maxlen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetReportDescriptor( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* buf, + [NativeTypeName("size_t")] nuint buf_size + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidGetReportDescriptor", "SDL3") + )(dev, buf, buf_size); + + [NativeFunction("SDL3", EntryPoint = "HidGetReportDescriptor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetReportDescriptor( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* buf, + [NativeTypeName("size_t")] nuint buf_size + ) => DllImport.HidGetReportDescriptor(dev, buf, buf_size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetReportDescriptor( + Ref dev, + [NativeTypeName("unsigned char *")] Ref buf, + [NativeTypeName("size_t")] nuint buf_size + ) + { + fixed (byte* __dsl_buf = buf) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidGetReportDescriptor(__dsl_dev, __dsl_buf, buf_size); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_report_descriptor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetReportDescriptor( + Ref dev, + [NativeTypeName("unsigned char *")] Ref buf, + [NativeTypeName("size_t")] nuint buf_size + ) => DllImport.HidGetReportDescriptor(dev, buf, buf_size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetSerialNumberString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidGetSerialNumberString", "SDL3") + )(dev, @string, maxlen); + + [NativeFunction("SDL3", EntryPoint = "HidGetSerialNumberString")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetSerialNumberString( + SDL_hid_device* dev, + [NativeTypeName("wchar_t *")] uint* @string, + [NativeTypeName("size_t")] nuint maxlen + ) => DllImport.HidGetSerialNumberString(dev, @string, maxlen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidGetSerialNumberString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) + { + fixed (uint* __dsl_string = @string) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidGetSerialNumberString(__dsl_dev, __dsl_string, maxlen); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_get_serial_number_string")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidGetSerialNumberString( + Ref dev, + [NativeTypeName("wchar_t *")] Ref @string, + [NativeTypeName("size_t")] nuint maxlen + ) => DllImport.HidGetSerialNumberString(dev, @string, maxlen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidInit() => + ((delegate* unmanaged)nativeContext.LoadFunction("HidInit", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "HidInit")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidInit() => DllImport.HidInit(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_hid_device* ISdl.HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] uint* serial_number + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidOpen", "SDL3") + )(vendor_id, product_id, serial_number); + + [NativeFunction("SDL3", EntryPoint = "HidOpen")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_hid_device* HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] uint* serial_number + ) => DllImport.HidOpen(vendor_id, product_id, serial_number); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] Ref serial_number + ) + { + fixed (uint* __dsl_serial_number = serial_number) + { + return (SDL_hid_device*) + ((ISdl)this).HidOpen(vendor_id, product_id, __dsl_serial_number); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr HidOpen( + [NativeTypeName("unsigned short")] ushort vendor_id, + [NativeTypeName("unsigned short")] ushort product_id, + [NativeTypeName("const wchar_t *")] Ref serial_number + ) => DllImport.HidOpen(vendor_id, product_id, serial_number); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_hid_device* ISdl.HidOpenPath([NativeTypeName("const char *")] sbyte* path) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidOpenPath", "SDL3") + )(path); + + [NativeFunction("SDL3", EntryPoint = "HidOpenPath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_hid_device* HidOpenPath([NativeTypeName("const char *")] sbyte* path) => + DllImport.HidOpenPath(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.HidOpenPath([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (SDL_hid_device*)((ISdl)this).HidOpenPath(__dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_open_path")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr HidOpenPath( + [NativeTypeName("const char *")] Ref path + ) => DllImport.HidOpenPath(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidRead( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidRead", "SDL3") + )(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HidRead")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidRead( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidRead(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidRead( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidRead(__dsl_dev, __dsl_data, length); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidRead( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidRead(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidReadTimeout( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidReadTimeout", "SDL3") + )(dev, data, length, milliseconds); + + [NativeFunction("SDL3", EntryPoint = "HidReadTimeout")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidReadTimeout( + SDL_hid_device* dev, + [NativeTypeName("unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ) => DllImport.HidReadTimeout(dev, data, length, milliseconds); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidReadTimeout( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidReadTimeout(__dsl_dev, __dsl_data, length, milliseconds); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_read_timeout")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidReadTimeout( + Ref dev, + [NativeTypeName("unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length, + int milliseconds + ) => DllImport.HidReadTimeout(dev, data, length, milliseconds); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidSendFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidSendFeatureReport", "SDL3") + )(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HidSendFeatureReport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidSendFeatureReport( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidSendFeatureReport(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidSendFeatureReport( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidSendFeatureReport(__dsl_dev, __dsl_data, length); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_send_feature_report")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidSendFeatureReport( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidSendFeatureReport(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidSetNonblocking(SDL_hid_device* dev, int nonblock) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidSetNonblocking", "SDL3") + )(dev, nonblock); + + [NativeFunction("SDL3", EntryPoint = "HidSetNonblocking")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidSetNonblocking(SDL_hid_device* dev, int nonblock) => + DllImport.HidSetNonblocking(dev, nonblock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidSetNonblocking(Ref dev, int nonblock) + { + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidSetNonblocking(__dsl_dev, nonblock); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_set_nonblocking")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidSetNonblocking(Ref dev, int nonblock) => + DllImport.HidSetNonblocking(dev, nonblock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidWrite( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("HidWrite", "SDL3") + )(dev, data, length); + + [NativeFunction("SDL3", EntryPoint = "HidWrite")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidWrite( + SDL_hid_device* dev, + [NativeTypeName("const unsigned char *")] byte* data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidWrite(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HidWrite( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) + { + fixed (byte* __dsl_data = data) + fixed (SDL_hid_device* __dsl_dev = dev) + { + return (int)((ISdl)this).HidWrite(__dsl_dev, __dsl_data, length); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_hid_write")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HidWrite( + Ref dev, + [NativeTypeName("const unsigned char *")] Ref data, + [NativeTypeName("size_t")] nuint length + ) => DllImport.HidWrite(dev, data, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HideCursor() => + ((delegate* unmanaged)nativeContext.LoadFunction("HideCursor", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "HideCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HideCursor() => DllImport.HideCursor(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HideWindow(SDL_Window* window) => + ((delegate* unmanaged)nativeContext.LoadFunction("HideWindow", "SDL3"))( + window + ); + + [NativeFunction("SDL3", EntryPoint = "HideWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HideWindow(SDL_Window* window) => DllImport.HideWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.HideWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).HideWindow(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_HideWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int HideWindow(Ref window) => DllImport.HideWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.Init([NativeTypeName("Uint32")] uint flags) => + ((delegate* unmanaged)nativeContext.LoadFunction("Init", "SDL3"))(flags); + + [NativeFunction("SDL3", EntryPoint = "Init")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int Init([NativeTypeName("Uint32")] uint flags) => DllImport.Init(flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.InitHapticRumble(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("InitHapticRumble", "SDL3") + )(haptic); + + [NativeFunction("SDL3", EntryPoint = "InitHapticRumble")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int InitHapticRumble(SDL_Haptic* haptic) => DllImport.InitHapticRumble(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.InitHapticRumble(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).InitHapticRumble(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_InitHapticRumble")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int InitHapticRumble(Ref haptic) => + DllImport.InitHapticRumble(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.InitSubSystem([NativeTypeName("Uint32")] uint flags) => + ((delegate* unmanaged)nativeContext.LoadFunction("InitSubSystem", "SDL3"))( + flags + ); + + [NativeFunction("SDL3", EntryPoint = "InitSubSystem")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int InitSubSystem([NativeTypeName("Uint32")] uint flags) => + DllImport.InitSubSystem(flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_IOStream* ISdl.IOFromConstMem( + [NativeTypeName("const void *")] void* mem, + [NativeTypeName("size_t")] nuint size + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("IOFromConstMem", "SDL3") + )(mem, size); + + [NativeFunction("SDL3", EntryPoint = "IOFromConstMem")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_IOStream* IOFromConstMem( + [NativeTypeName("const void *")] void* mem, + [NativeTypeName("size_t")] nuint size + ) => DllImport.IOFromConstMem(mem, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.IOFromConstMem( + [NativeTypeName("const void *")] Ref mem, + [NativeTypeName("size_t")] nuint size + ) + { + fixed (void* __dsl_mem = mem) + { + return (SDL_IOStream*)((ISdl)this).IOFromConstMem(__dsl_mem, size); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromConstMem")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr IOFromConstMem( + [NativeTypeName("const void *")] Ref mem, + [NativeTypeName("size_t")] nuint size + ) => DllImport.IOFromConstMem(mem, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.IOFromDynamicMem() => (SDL_IOStream*)((ISdl)this).IOFromDynamicMemRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr IOFromDynamicMem() => DllImport.IOFromDynamicMem(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_IOStream* ISdl.IOFromDynamicMemRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_IOFromDynamicMem", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromDynamicMem")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_IOStream* IOFromDynamicMemRaw() => DllImport.IOFromDynamicMemRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_IOStream* ISdl.IOFromFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const char *")] sbyte* mode + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("IOFromFile", "SDL3") + )(file, mode); + + [NativeFunction("SDL3", EntryPoint = "IOFromFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_IOStream* IOFromFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("const char *")] sbyte* mode + ) => DllImport.IOFromFile(file, mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.IOFromFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const char *")] Ref mode + ) + { + fixed (sbyte* __dsl_mode = mode) + fixed (sbyte* __dsl_file = file) + { + return (SDL_IOStream*)((ISdl)this).IOFromFile(__dsl_file, __dsl_mode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr IOFromFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("const char *")] Ref mode + ) => DllImport.IOFromFile(file, mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_IOStream* ISdl.IOFromMem(void* mem, [NativeTypeName("size_t")] nuint size) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("IOFromMem", "SDL3") + )(mem, size); + + [NativeFunction("SDL3", EntryPoint = "IOFromMem")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_IOStream* IOFromMem(void* mem, [NativeTypeName("size_t")] nuint size) => + DllImport.IOFromMem(mem, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.IOFromMem(Ref mem, [NativeTypeName("size_t")] nuint size) + { + fixed (void* __dsl_mem = mem) + { + return (SDL_IOStream*)((ISdl)this).IOFromMem(__dsl_mem, size); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOFromMem")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr IOFromMem(Ref mem, [NativeTypeName("size_t")] nuint size) => + DllImport.IOFromMem(mem, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + nuint ISdl.IOvprintf( + SDL_IOStream* context, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("IOvprintf", "SDL3") + )(context, fmt, ap); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "IOvprintf")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nuint IOvprintf( + SDL_IOStream* context, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => DllImport.IOvprintf(context, fmt, ap); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + nuint ISdl.IOvprintf( + Ref context, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) + { + fixed (sbyte* __dsl_ap = ap) + fixed (sbyte* __dsl_fmt = fmt) + fixed (SDL_IOStream* __dsl_context = context) + { + return (nuint)((ISdl)this).IOvprintf(__dsl_context, __dsl_fmt, __dsl_ap); + } + } + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IOvprintf")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nuint IOvprintf( + Ref context, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) => 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); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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) => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_IsGamepad", "SDL3"))( + instance_id + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int IsGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + DllImport.IsGamepadRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.IsJoystickHaptic(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("IsJoystickHaptic", "SDL3") + )(joystick); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "IsJoystickHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int IsJoystickHaptic(SDL_Joystick* joystick) => + DllImport.IsJoystickHaptic(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.IsJoystickHaptic(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (MaybeBool)(int)((ISdl)this).IsJoystickHaptic(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsJoystickHaptic(Ref joystick) => + DllImport.IsJoystickHaptic(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.IsJoystickVirtual([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (MaybeBool)(int)((ISdl)this).IsJoystickVirtualRaw(instance_id); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_IsJoystickVirtual", "SDL3") + )(instance_id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsJoystickVirtual")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int IsJoystickVirtualRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + DllImport.IsJoystickVirtualRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.IsMouseHaptic() => (MaybeBool)(int)((ISdl)this).IsMouseHapticRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsMouseHaptic() => DllImport.IsMouseHaptic(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.IsMouseHapticRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_IsMouseHaptic", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsMouseHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int IsMouseHapticRaw() => DllImport.IsMouseHapticRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.IsTablet() => (MaybeBool)(int)((ISdl)this).IsTabletRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool IsTablet() => DllImport.IsTablet(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.IsTabletRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_IsTablet", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_IsTablet")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int IsTabletRaw() => DllImport.IsTabletRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.JoystickConnected(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("JoystickConnected", "SDL3") + )(joystick); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "JoystickConnected")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int JoystickConnected(SDL_Joystick* joystick) => + DllImport.JoystickConnected(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.JoystickConnected(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (MaybeBool)(int)((ISdl)this).JoystickConnected(__dsl_joystick); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickConnected")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool JoystickConnected(Ref joystick) => + DllImport.JoystickConnected(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.JoystickEventsEnabled() => + (MaybeBool)(int)((ISdl)this).JoystickEventsEnabledRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool JoystickEventsEnabled() => DllImport.JoystickEventsEnabled(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.JoystickEventsEnabledRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_JoystickEventsEnabled", "SDL3") + )(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_JoystickEventsEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int JoystickEventsEnabledRaw() => DllImport.JoystickEventsEnabledRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.LoadBMP([NativeTypeName("const char *")] sbyte* file) => + ((delegate* unmanaged)nativeContext.LoadFunction("LoadBMP", "SDL3"))( + file + ); + + [NativeFunction("SDL3", EntryPoint = "LoadBMP")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* LoadBMP([NativeTypeName("const char *")] sbyte* file) => + DllImport.LoadBMP(file); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.LoadBMP([NativeTypeName("const char *")] Ref file) + { + fixed (sbyte* __dsl_file = file) + { + return (Surface*)((ISdl)this).LoadBMP(__dsl_file); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr LoadBMP([NativeTypeName("const char *")] Ref file) => + DllImport.LoadBMP(file); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.LoadBMPIO(SDL_IOStream* src, [NativeTypeName("SDL_bool")] int closeio) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LoadBMPIO", "SDL3") + )(src, closeio); + + [NativeFunction("SDL3", EntryPoint = "LoadBMPIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* LoadBMPIO(SDL_IOStream* src, [NativeTypeName("SDL_bool")] int closeio) => + DllImport.LoadBMPIO(src, closeio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.LoadBMPIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (SDL_IOStream* __dsl_src = src) + { + return (Surface*)((ISdl)this).LoadBMPIO(__dsl_src, (int)closeio); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadBMP_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr LoadBMPIO( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) => DllImport.LoadBMPIO(src, closeio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.LoadFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("size_t *")] nuint* datasize + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LoadFile", "SDL3") + )(file, datasize); + + [NativeFunction("SDL3", EntryPoint = "LoadFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* LoadFile( + [NativeTypeName("const char *")] sbyte* file, + [NativeTypeName("size_t *")] nuint* datasize + ) => DllImport.LoadFile(file, datasize); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.LoadFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("size_t *")] Ref datasize + ) + { + fixed (nuint* __dsl_datasize = datasize) + fixed (sbyte* __dsl_file = file) + { + return (void*)((ISdl)this).LoadFile(__dsl_file, __dsl_datasize); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr LoadFile( + [NativeTypeName("const char *")] Ref file, + [NativeTypeName("size_t *")] Ref datasize + ) => DllImport.LoadFile(file, datasize); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.LoadFileIO( + SDL_IOStream* src, + [NativeTypeName("size_t *")] nuint* datasize, + [NativeTypeName("SDL_bool")] int closeio + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LoadFileIO", "SDL3") + )(src, datasize, closeio); + + [NativeFunction("SDL3", EntryPoint = "LoadFileIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* LoadFileIO( + SDL_IOStream* src, + [NativeTypeName("size_t *")] nuint* datasize, + [NativeTypeName("SDL_bool")] int closeio + ) => DllImport.LoadFileIO(src, datasize, closeio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.LoadFileIO( + Ref src, + [NativeTypeName("size_t *")] Ref datasize, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (nuint* __dsl_datasize = datasize) + fixed (SDL_IOStream* __dsl_src = src) + { + return (void*)((ISdl)this).LoadFileIO(__dsl_src, __dsl_datasize, (int)closeio); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFile_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr LoadFileIO( + Ref src, + [NativeTypeName("size_t *")] Ref datasize, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) => DllImport.LoadFileIO(src, datasize, closeio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + delegate* unmanaged ISdl.LoadFunction( + void* handle, + [NativeTypeName("const char *")] sbyte* name + ) => + ( + (delegate* unmanaged>) + nativeContext.LoadFunction("LoadFunction", "SDL3") + )(handle, name); + + [return: NativeTypeName("SDL_FunctionPointer")] + [NativeFunction("SDL3", EntryPoint = "LoadFunction")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static delegate* unmanaged LoadFunction( + void* handle, + [NativeTypeName("const char *")] sbyte* name + ) => DllImport.LoadFunction(handle, name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + delegate* unmanaged ISdl.LoadFunction( + Ref handle, + [NativeTypeName("const char *")] Ref name + ) + { + fixed (sbyte* __dsl_name = name) + fixed (void* __dsl_handle = handle) + { + return (delegate* unmanaged)((ISdl)this).LoadFunction(__dsl_handle, __dsl_name); + } + } + + [return: NativeTypeName("SDL_FunctionPointer")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadFunction")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static delegate* unmanaged LoadFunction( + Ref handle, + [NativeTypeName("const char *")] Ref name + ) => DllImport.LoadFunction(handle, name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.LoadObject([NativeTypeName("const char *")] sbyte* sofile) => + ((delegate* unmanaged)nativeContext.LoadFunction("LoadObject", "SDL3"))( + sofile + ); + + [NativeFunction("SDL3", EntryPoint = "LoadObject")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* LoadObject([NativeTypeName("const char *")] sbyte* sofile) => + DllImport.LoadObject(sofile); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.LoadObject([NativeTypeName("const char *")] Ref sofile) + { + fixed (sbyte* __dsl_sofile = sofile) + { + return (void*)((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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.LoadWAV( + [NativeTypeName("const char *")] sbyte* path, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LoadWAV", "SDL3") + )(path, spec, audio_buf, audio_len); + + [NativeFunction("SDL3", EntryPoint = "LoadWAV")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LoadWAV( + [NativeTypeName("const char *")] sbyte* path, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ) => DllImport.LoadWAV(path, spec, audio_buf, audio_len); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.LoadWAV( + [NativeTypeName("const char *")] Ref path, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ) + { + fixed (uint* __dsl_audio_len = audio_len) + fixed (byte** __dsl_audio_buf = audio_buf) + 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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LoadWAV( + [NativeTypeName("const char *")] Ref path, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ) => DllImport.LoadWAV(path, spec, audio_buf, audio_len); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.LoadWAVIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int closeio, + AudioSpec* spec, + [NativeTypeName("Uint8 **")] byte** audio_buf, + [NativeTypeName("Uint32 *")] uint* audio_len + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LoadWAVIO", "SDL3") + )(src, closeio, spec, audio_buf, audio_len); + + [NativeFunction("SDL3", EntryPoint = "LoadWAVIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LoadWAVIO( + SDL_IOStream* src, + [NativeTypeName("SDL_bool")] int 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( + Ref src, + [NativeTypeName("SDL_bool")] MaybeBool closeio, + Ref spec, + [NativeTypeName("Uint8 **")] Ref2D audio_buf, + [NativeTypeName("Uint32 *")] Ref audio_len + ) + { + fixed (uint* __dsl_audio_len = audio_len) + fixed (byte** __dsl_audio_buf = audio_buf) + fixed (AudioSpec* __dsl_spec = spec) + fixed (SDL_IOStream* __dsl_src = src) + { + return (int) + ((ISdl)this).LoadWAVIO( + __dsl_src, + (int)closeio, + __dsl_spec, + __dsl_audio_buf, + __dsl_audio_len + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LoadWAV_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LoadWAVIO( + Ref src, + [NativeTypeName("SDL_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(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LockAudioStream", "SDL3") + )(stream); + + [NativeFunction("SDL3", EntryPoint = "LockAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LockAudioStream(SDL_AudioStream* stream) => DllImport.LockAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.LockAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).LockAudioStream(__dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LockAudioStream(Ref stream) => + DllImport.LockAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LockJoysticks() => + ((delegate* unmanaged)nativeContext.LoadFunction("LockJoysticks", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "LockJoysticks")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LockJoysticks() => DllImport.LockJoysticks(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LockMutex(SDL_Mutex* mutex) => + ((delegate* unmanaged)nativeContext.LoadFunction("LockMutex", "SDL3"))( + mutex + ); + + [NativeFunction("SDL3", EntryPoint = "LockMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LockMutex(SDL_Mutex* mutex) => DllImport.LockMutex(mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LockMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + ((ISdl)this).LockMutex(__dsl_mutex); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LockMutex(Ref mutex) => DllImport.LockMutex(mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + ((delegate* unmanaged)nativeContext.LoadFunction("LockProperties", "SDL3"))( + props + ); + + [NativeFunction("SDL3", EntryPoint = "LockProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + DllImport.LockProperties(props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LockRWLockForReading(SDL_RWLock* rwlock) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LockRWLockForReading", "SDL3") + )(rwlock); + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForReading")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LockRWLockForReading(SDL_RWLock* rwlock) => + DllImport.LockRWLockForReading(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LockRWLockForReading(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + ((ISdl)this).LockRWLockForReading(__dsl_rwlock); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForReading")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LockRWLockForReading(Ref rwlock) => + DllImport.LockRWLockForReading(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LockRWLockForWriting(SDL_RWLock* rwlock) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LockRWLockForWriting", "SDL3") + )(rwlock); + + [NativeFunction("SDL3", EntryPoint = "LockRWLockForWriting")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LockRWLockForWriting(SDL_RWLock* rwlock) => + DllImport.LockRWLockForWriting(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LockRWLockForWriting(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + ((ISdl)this).LockRWLockForWriting(__dsl_rwlock); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockRWLockForWriting")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LockRWLockForWriting(Ref rwlock) => + DllImport.LockRWLockForWriting(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + ((delegate* unmanaged)nativeContext.LoadFunction("LockSpinlock", "SDL3"))( + @lock + ); + + [NativeFunction("SDL3", EntryPoint = "LockSpinlock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + DllImport.LockSpinlock(@lock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) + { + fixed (int* __dsl_lock = @lock) + { + ((ISdl)this).LockSpinlock(__dsl_lock); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSpinlock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => + DllImport.LockSpinlock(@lock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.LockSurface(Surface* surface) => + ((delegate* unmanaged)nativeContext.LoadFunction("LockSurface", "SDL3"))( + surface + ); + + [NativeFunction("SDL3", EntryPoint = "LockSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LockSurface(Surface* surface) => DllImport.LockSurface(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.LockSurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).LockSurface(__dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LockSurface(Ref surface) => DllImport.LockSurface(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.LockTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + void** pixels, + int* pitch + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LockTexture", "SDL3") + )(texture, rect, pixels, pitch); + + [NativeFunction("SDL3", EntryPoint = "LockTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LockTexture( + SDL_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( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D pixels, + Ref pitch + ) + { + fixed (int* __dsl_pitch = pitch) + fixed (void** __dsl_pixels = pixels) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int) + ((ISdl)this).LockTexture(__dsl_texture, __dsl_rect, __dsl_pixels, __dsl_pitch); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + Surface** surface + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LockTextureToSurface", "SDL3") + )(texture, rect, surface); + + [NativeFunction("SDL3", EntryPoint = "LockTextureToSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int LockTextureToSurface( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + Surface** surface + ) => DllImport.LockTextureToSurface(texture, rect, surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.LockTextureToSurface( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + Ref2D surface + ) + { + fixed (Surface** __dsl_surface = surface) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).LockTextureToSurface(__dsl_texture, __dsl_rect, __dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LockTextureToSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + nativeContext.LoadFunction("LogGetPriority", "SDL3") + )(category); + + [NativeFunction("SDL3", EntryPoint = "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, + LogPriority priority, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LogMessageV", "SDL3") + )(category, priority, fmt, ap); + + [NativeFunction("SDL3", EntryPoint = "LogMessageV")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] sbyte* fmt, + [NativeTypeName("va_list")] sbyte* ap + ) => DllImport.LogMessageV(category, priority, fmt, ap); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) + { + fixed (sbyte* __dsl_ap = ap) + fixed (sbyte* __dsl_fmt = fmt) + { + ((ISdl)this).LogMessageV(category, priority, __dsl_fmt, __dsl_ap); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_LogMessageV")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LogMessageV( + int category, + LogPriority priority, + [NativeTypeName("const char *")] Ref fmt, + [NativeTypeName("va_list")] Ref ap + ) => DllImport.LogMessageV(category, priority, fmt, ap); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LogResetPriorities() => + ((delegate* unmanaged)nativeContext.LoadFunction("LogResetPriorities", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "LogResetPriorities")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LogResetPriorities() => DllImport.LogResetPriorities(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LogSetAllPriority(LogPriority priority) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LogSetAllPriority", "SDL3") + )(priority); + + [NativeFunction("SDL3", EntryPoint = "LogSetAllPriority")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LogSetAllPriority(LogPriority priority) => + DllImport.LogSetAllPriority(priority); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.LogSetPriority(int category, LogPriority priority) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("LogSetPriority", "SDL3") + )(category, priority); + + [NativeFunction("SDL3", EntryPoint = "LogSetPriority")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void LogSetPriority(int category, LogPriority priority) => + DllImport.LogSetPriority(category, priority); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("MapRGB", "SDL3") + )(format, r, g, b); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "MapRGB")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => DllImport.MapRGB(format, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (PixelFormat* __dsl_format = format) + { + return (uint)((ISdl)this).MapRGB(__dsl_format, r, g, b); + } + } + + [return: NativeTypeName("Uint32")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MapRGB")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint MapRGB( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => DllImport.MapRGB(format, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("MapRgba", "SDL3") + )(format, r, g, b, a); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "MapRgba")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] PixelFormat* format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => DllImport.MapRgba(format, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.MapRgba( + [NativeTypeName("const SDL_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (PixelFormat* __dsl_format = format) + { + return (uint)((ISdl)this).MapRgba(__dsl_format, 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_PixelFormat *")] Ref format, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => DllImport.MapRgba(format, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.MaximizeWindow(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("MaximizeWindow", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "MaximizeWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int MaximizeWindow(SDL_Window* window) => DllImport.MaximizeWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.MaximizeWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).MaximizeWindow(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MaximizeWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int MaximizeWindow(Ref window) => DllImport.MaximizeWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.MemoryBarrierAcquireFunction() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("MemoryBarrierAcquireFunction", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierAcquireFunction")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void MemoryBarrierAcquireFunction() => DllImport.MemoryBarrierAcquireFunction(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.MemoryBarrierReleaseFunction() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("MemoryBarrierReleaseFunction", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "MemoryBarrierReleaseFunction")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void MemoryBarrierReleaseFunction() => DllImport.MemoryBarrierReleaseFunction(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.MetalCreateView(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("MetalCreateView", "SDL3") + )(window); + + [return: NativeTypeName("SDL_MetalView")] + [NativeFunction("SDL3", EntryPoint = "MetalCreateView")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* MetalCreateView(SDL_Window* window) => DllImport.MetalCreateView(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.MetalCreateView(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (void*)((ISdl)this).MetalCreateView(__dsl_window); + } + } + + [return: NativeTypeName("SDL_MetalView")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_CreateView")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr MetalCreateView(Ref window) => DllImport.MetalCreateView(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view) => + ((delegate* unmanaged)nativeContext.LoadFunction("MetalDestroyView", "SDL3"))( + view + ); + + [NativeFunction("SDL3", EntryPoint = "MetalDestroyView")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void MetalDestroyView([NativeTypeName("SDL_MetalView")] void* view) => + DllImport.MetalDestroyView(view); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view) + { + fixed (void* __dsl_view = view) + { + ((ISdl)this).MetalDestroyView(__dsl_view); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_DestroyView")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void MetalDestroyView([NativeTypeName("SDL_MetalView")] Ref view) => + DllImport.MetalDestroyView(view); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void* ISdl.MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view) => + ((delegate* unmanaged)nativeContext.LoadFunction("MetalGetLayer", "SDL3"))( + view + ); + + [NativeFunction("SDL3", EntryPoint = "MetalGetLayer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void* MetalGetLayer([NativeTypeName("SDL_MetalView")] void* view) => + DllImport.MetalGetLayer(view); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) + { + fixed (void* __dsl_view = view) + { + return (void*)((ISdl)this).MetalGetLayer(__dsl_view); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_Metal_GetLayer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr MetalGetLayer([NativeTypeName("SDL_MetalView")] Ref view) => + DllImport.MetalGetLayer(view); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.MinimizeWindow(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("MinimizeWindow", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "MinimizeWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int MinimizeWindow(SDL_Window* window) => DllImport.MinimizeWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.MinimizeWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).MinimizeWindow(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MinimizeWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int MinimizeWindow(Ref window) => DllImport.MinimizeWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.MixAudioFormat( + [NativeTypeName("Uint8 *")] byte* dst, + [NativeTypeName("const Uint8 *")] byte* src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("MixAudioFormat", "SDL3") + )(dst, src, format, len, volume); + + [NativeFunction("SDL3", EntryPoint = "MixAudioFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int MixAudioFormat( + [NativeTypeName("Uint8 *")] byte* dst, + [NativeTypeName("const Uint8 *")] byte* src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ) => DllImport.MixAudioFormat(dst, src, format, len, volume); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.MixAudioFormat( + [NativeTypeName("Uint8 *")] Ref dst, + [NativeTypeName("const Uint8 *")] Ref src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ) + { + fixed (byte* __dsl_src = src) + fixed (byte* __dsl_dst = dst) + { + return (int)((ISdl)this).MixAudioFormat(__dsl_dst, __dsl_src, format, len, volume); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_MixAudioFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int MixAudioFormat( + [NativeTypeName("Uint8 *")] Ref dst, + [NativeTypeName("const Uint8 *")] Ref src, + [NativeTypeName("SDL_AudioFormat")] ushort format, + [NativeTypeName("Uint32")] uint len, + int volume + ) => DllImport.MixAudioFormat(dst, src, format, len, volume); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.OnApplicationDidBecomeActive() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OnApplicationDidBecomeActive", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidBecomeActive")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void OnApplicationDidBecomeActive() => DllImport.OnApplicationDidBecomeActive(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.OnApplicationDidEnterBackground() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OnApplicationDidEnterBackground", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidEnterBackground")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void OnApplicationDidEnterBackground() => + DllImport.OnApplicationDidEnterBackground(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.OnApplicationDidReceiveMemoryWarning() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OnApplicationDidReceiveMemoryWarning", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationDidReceiveMemoryWarning")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void OnApplicationDidReceiveMemoryWarning() => + DllImport.OnApplicationDidReceiveMemoryWarning(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.OnApplicationWillEnterForeground() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OnApplicationWillEnterForeground", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillEnterForeground")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void OnApplicationWillEnterForeground() => + DllImport.OnApplicationWillEnterForeground(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.OnApplicationWillResignActive() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OnApplicationWillResignActive", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillResignActive")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void OnApplicationWillResignActive() => DllImport.OnApplicationWillResignActive(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.OnApplicationWillTerminate() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OnApplicationWillTerminate", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "OnApplicationWillTerminate")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void OnApplicationWillTerminate() => DllImport.OnApplicationWillTerminate(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OpenAudioDevice", "SDL3") + )(devid, spec); + + [return: NativeTypeName("SDL_AudioDeviceID")] + [NativeFunction("SDL3", EntryPoint = "OpenAudioDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec + ) => DllImport.OpenAudioDevice(devid, spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec + ) + { + fixed (AudioSpec* __dsl_spec = spec) + { + return (uint)((ISdl)this).OpenAudioDevice(devid, __dsl_spec); + } + } + + [return: NativeTypeName("SDL_AudioDeviceID")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint OpenAudioDevice( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec + ) => DllImport.OpenAudioDevice(devid, spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_AudioStream* ISdl.OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged< + uint, + AudioSpec*, + delegate* unmanaged, + void*, + SDL_AudioStream*>) + nativeContext.LoadFunction("OpenAudioDeviceStream", "SDL3") + )(devid, spec, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "OpenAudioDeviceStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_AudioStream* OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.OpenAudioDeviceStream(devid, spec, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (AudioSpec* __dsl_spec = spec) + { + return (SDL_AudioStream*) + ((ISdl)this).OpenAudioDeviceStream(devid, __dsl_spec, callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenAudioDeviceStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenAudioDeviceStream( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("const SDL_AudioSpec *")] Ref spec, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.OpenAudioDeviceStream(devid, spec, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Camera* ISdl.OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OpenCameraDevice", "SDL3") + )(instance_id, spec); + + [NativeFunction("SDL3", EntryPoint = "OpenCameraDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Camera* OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] CameraSpec* spec + ) => DllImport.OpenCameraDevice(instance_id, spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] Ref spec + ) + { + fixed (CameraSpec* __dsl_spec = spec) + { + return (SDL_Camera*)((ISdl)this).OpenCameraDevice(instance_id, __dsl_spec); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenCameraDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenCameraDevice( + [NativeTypeName("SDL_CameraDeviceID")] uint instance_id, + [NativeTypeName("const SDL_CameraSpec *")] Ref spec + ) => DllImport.OpenCameraDevice(instance_id, spec); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Storage* ISdl.OpenFileStorage([NativeTypeName("const char *")] sbyte* path) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OpenFileStorage", "SDL3") + )(path); + + [NativeFunction("SDL3", EntryPoint = "OpenFileStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Storage* OpenFileStorage([NativeTypeName("const char *")] sbyte* path) => + DllImport.OpenFileStorage(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenFileStorage([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (SDL_Storage*)((ISdl)this).OpenFileStorage(__dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenFileStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenFileStorage( + [NativeTypeName("const char *")] Ref path + ) => DllImport.OpenFileStorage(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenGamepad([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (SDL_Gamepad*)((ISdl)this).OpenGamepadRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenGamepad( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.OpenGamepad(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Gamepad* ISdl.OpenGamepadRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_OpenGamepad", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Gamepad* OpenGamepadRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.OpenGamepadRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenHaptic([NativeTypeName("SDL_HapticID")] uint instance_id) => + (SDL_Haptic*)((ISdl)this).OpenHapticRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenHaptic([NativeTypeName("SDL_HapticID")] uint instance_id) => + DllImport.OpenHaptic(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Haptic* ISdl.OpenHapticFromJoystick(SDL_Joystick* joystick) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OpenHapticFromJoystick", "SDL3") + )(joystick); + + [NativeFunction("SDL3", EntryPoint = "OpenHapticFromJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Haptic* OpenHapticFromJoystick(SDL_Joystick* joystick) => + DllImport.OpenHapticFromJoystick(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenHapticFromJoystick(Ref joystick) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (SDL_Haptic*)((ISdl)this).OpenHapticFromJoystick(__dsl_joystick); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenHapticFromJoystick(Ref joystick) => + DllImport.OpenHapticFromJoystick(joystick); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenHapticFromMouse() => + (SDL_Haptic*)((ISdl)this).OpenHapticFromMouseRaw(); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenHapticFromMouse() => DllImport.OpenHapticFromMouse(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Haptic* ISdl.OpenHapticFromMouseRaw() => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_OpenHapticFromMouse", "SDL3") + )(); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHapticFromMouse")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Haptic* OpenHapticFromMouseRaw() => DllImport.OpenHapticFromMouseRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Haptic* ISdl.OpenHapticRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_OpenHaptic", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Haptic* OpenHapticRaw([NativeTypeName("SDL_HapticID")] uint instance_id) => + DllImport.OpenHapticRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_IOStream* ISdl.OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] IOStreamInterface* iface, + void* userdata + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OpenIO", "SDL3") + )(iface, userdata); + + [NativeFunction("SDL3", EntryPoint = "OpenIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_IOStream* OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] IOStreamInterface* iface, + void* userdata + ) => DllImport.OpenIO(iface, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] Ref iface, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (IOStreamInterface* __dsl_iface = iface) + { + return (SDL_IOStream*)((ISdl)this).OpenIO(__dsl_iface, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenIO( + [NativeTypeName("const SDL_IOStreamInterface *")] Ref iface, + Ref userdata + ) => DllImport.OpenIO(iface, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenJoystick([NativeTypeName("SDL_JoystickID")] uint instance_id) => + (SDL_Joystick*)((ISdl)this).OpenJoystickRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenJoystick( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.OpenJoystick(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Joystick* ISdl.OpenJoystickRaw([NativeTypeName("SDL_JoystickID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_OpenJoystick", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Joystick* OpenJoystickRaw( + [NativeTypeName("SDL_JoystickID")] uint instance_id + ) => DllImport.OpenJoystickRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenSensor([NativeTypeName("SDL_SensorID")] uint instance_id) => + (SDL_Sensor*)((ISdl)this).OpenSensorRaw(instance_id); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenSensor([NativeTypeName("SDL_SensorID")] uint instance_id) => + DllImport.OpenSensor(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Sensor* ISdl.OpenSensorRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SDL_OpenSensor", "SDL3") + )(instance_id); + + [NativeFunction("SDL3", EntryPoint = "SDL_OpenSensor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Sensor* OpenSensorRaw([NativeTypeName("SDL_SensorID")] uint instance_id) => + DllImport.OpenSensorRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Storage* ISdl.OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] StorageInterface* iface, + void* userdata + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OpenStorage", "SDL3") + )(iface, userdata); + + [NativeFunction("SDL3", EntryPoint = "OpenStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Storage* OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] StorageInterface* iface, + void* userdata + ) => DllImport.OpenStorage(iface, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] Ref iface, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (StorageInterface* __dsl_iface = iface) + { + return (SDL_Storage*)((ISdl)this).OpenStorage(__dsl_iface, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenStorage( + [NativeTypeName("const SDL_StorageInterface *")] Ref iface, + Ref userdata + ) => DllImport.OpenStorage(iface, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Storage* ISdl.OpenTitleStorage( + [NativeTypeName("const char *")] sbyte* @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OpenTitleStorage", "SDL3") + )(@override, props); + + [NativeFunction("SDL3", EntryPoint = "OpenTitleStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Storage* OpenTitleStorage( + [NativeTypeName("const char *")] sbyte* @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.OpenTitleStorage(@override, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenTitleStorage( + [NativeTypeName("const char *")] Ref @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (sbyte* __dsl_override = @override) + { + return (SDL_Storage*)((ISdl)this).OpenTitleStorage(__dsl_override, props); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenTitleStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenTitleStorage( + [NativeTypeName("const char *")] Ref @override, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.OpenTitleStorage(@override, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.OpenURL([NativeTypeName("const char *")] sbyte* url) => + ((delegate* unmanaged)nativeContext.LoadFunction("OpenURL", "SDL3"))(url); + + [NativeFunction("SDL3", EntryPoint = "OpenURL")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int OpenURL([NativeTypeName("const char *")] sbyte* url) => + DllImport.OpenURL(url); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.OpenURL([NativeTypeName("const char *")] Ref url) + { + fixed (sbyte* __dsl_url = url) + { + return (int)((ISdl)this).OpenURL(__dsl_url); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenURL")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int OpenURL([NativeTypeName("const char *")] Ref url) => + DllImport.OpenURL(url); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + SDL_Storage* ISdl.OpenUserStorage( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("OpenUserStorage", "SDL3") + )(org, app, props); + + [NativeFunction("SDL3", EntryPoint = "OpenUserStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static SDL_Storage* OpenUserStorage( + [NativeTypeName("const char *")] sbyte* org, + [NativeTypeName("const char *")] sbyte* app, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.OpenUserStorage(org, app, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.OpenUserStorage( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app, + [NativeTypeName("SDL_PropertiesID")] uint props + ) + { + fixed (sbyte* __dsl_app = app) + fixed (sbyte* __dsl_org = org) + { + return (SDL_Storage*)((ISdl)this).OpenUserStorage(__dsl_org, __dsl_app, props); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_OpenUserStorage")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr OpenUserStorage( + [NativeTypeName("const char *")] Ref org, + [NativeTypeName("const char *")] Ref app, + [NativeTypeName("SDL_PropertiesID")] uint props + ) => DllImport.OpenUserStorage(org, app, props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + ((delegate* unmanaged)nativeContext.LoadFunction("PauseAudioDevice", "SDL3"))( + dev + ); + + [NativeFunction("SDL3", EntryPoint = "PauseAudioDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PauseAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + DllImport.PauseAudioDevice(dev); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PauseHaptic(SDL_Haptic* haptic) => + ((delegate* unmanaged)nativeContext.LoadFunction("PauseHaptic", "SDL3"))( + haptic + ); + + [NativeFunction("SDL3", EntryPoint = "PauseHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PauseHaptic(SDL_Haptic* haptic) => DllImport.PauseHaptic(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PauseHaptic(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).PauseHaptic(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PauseHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PauseHaptic(Ref haptic) => DllImport.PauseHaptic(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PeepEvents( + Event* events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("PeepEvents", "SDL3") + )(events, numevents, action, minType, maxType); + + [NativeFunction("SDL3", EntryPoint = "PeepEvents")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PeepEvents( + Event* events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => DllImport.PeepEvents(events, numevents, action, minType, maxType); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PeepEvents( + Ref events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) + { + fixed (Event* __dsl_events = events) + { + return (int)((ISdl)this).PeepEvents(__dsl_events, numevents, action, minType, maxType); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PeepEvents")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PeepEvents( + Ref events, + int numevents, + EventAction action, + [NativeTypeName("Uint32")] uint minType, + [NativeTypeName("Uint32")] uint maxType + ) => 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); + + [return: NativeTypeName("SDL_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)nativeContext.LoadFunction("SDL_PenConnected", "SDL3"))( + instance_id + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_PenConnected")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PenConnectedRaw([NativeTypeName("SDL_PenID")] uint instance_id) => + DllImport.PenConnectedRaw(instance_id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PlayHapticRumble( + SDL_Haptic* haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("PlayHapticRumble", "SDL3") + )(haptic, strength, length); + + [NativeFunction("SDL3", EntryPoint = "PlayHapticRumble")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PlayHapticRumble( + SDL_Haptic* haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => DllImport.PlayHapticRumble(haptic, strength, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PlayHapticRumble( + Ref haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).PlayHapticRumble(__dsl_haptic, strength, length); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PlayHapticRumble")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PlayHapticRumble( + Ref haptic, + float strength, + [NativeTypeName("Uint32")] uint length + ) => DllImport.PlayHapticRumble(haptic, strength, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PollEvent(Event* @event) => + ((delegate* unmanaged)nativeContext.LoadFunction("PollEvent", "SDL3"))(@event); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "PollEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PollEvent(Event* @event) => DllImport.PollEvent(@event); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.PollEvent(Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (MaybeBool)(int)((ISdl)this).PollEvent(__dsl_event); + } + } + + [return: NativeTypeName("SDL_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(SDL_Semaphore* sem) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("PostSemaphore", "SDL3") + )(sem); + + [NativeFunction("SDL3", EntryPoint = "PostSemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PostSemaphore(SDL_Semaphore* sem) => DllImport.PostSemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PostSemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)((ISdl)this).PostSemaphore(__dsl_sem); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PostSemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PostSemaphore(Ref sem) => DllImport.PostSemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ) => + ( + (delegate* unmanaged< + int, + int, + PixelFormatEnum, + void*, + int, + PixelFormatEnum, + void*, + int, + int>) + nativeContext.LoadFunction("PremultiplyAlpha", "SDL3") + )(width, height, src_format, src, src_pitch, dst_format, dst, dst_pitch); + + [NativeFunction("SDL3", EntryPoint = "PremultiplyAlpha")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] void* src, + int src_pitch, + PixelFormatEnum dst_format, + void* dst, + int dst_pitch + ) => + DllImport.PremultiplyAlpha( + width, + height, + src_format, + src, + src_pitch, + dst_format, + dst, + dst_pitch + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ) + { + 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 + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PremultiplyAlpha")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PremultiplyAlpha( + int width, + int height, + PixelFormatEnum src_format, + [NativeTypeName("const void *")] Ref src, + int src_pitch, + PixelFormatEnum dst_format, + Ref dst, + int dst_pitch + ) => + DllImport.PremultiplyAlpha( + width, + height, + src_format, + src, + src_pitch, + dst_format, + dst, + dst_pitch + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.PumpEvents() => + ((delegate* unmanaged)nativeContext.LoadFunction("PumpEvents", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "PumpEvents")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void PumpEvents() => DllImport.PumpEvents(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PushEvent(Event* @event) => + ((delegate* unmanaged)nativeContext.LoadFunction("PushEvent", "SDL3"))(@event); + + [NativeFunction("SDL3", EntryPoint = "PushEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PushEvent(Event* @event) => DllImport.PushEvent(@event); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PushEvent(Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (int)((ISdl)this).PushEvent(__dsl_event); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PushEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PushEvent(Ref @event) => DllImport.PushEvent(@event); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PutAudioStreamData( + SDL_AudioStream* stream, + [NativeTypeName("const void *")] void* buf, + int len + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("PutAudioStreamData", "SDL3") + )(stream, buf, len); + + [NativeFunction("SDL3", EntryPoint = "PutAudioStreamData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PutAudioStreamData( + SDL_AudioStream* stream, + [NativeTypeName("const void *")] void* buf, + int len + ) => DllImport.PutAudioStreamData(stream, buf, len); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.PutAudioStreamData( + Ref stream, + [NativeTypeName("const void *")] Ref buf, + int len + ) + { + fixed (void* __dsl_buf = buf) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).PutAudioStreamData(__dsl_stream, __dsl_buf, len); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_PutAudioStreamData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int PutAudioStreamData( + Ref stream, + [NativeTypeName("const void *")] Ref buf, + int len + ) => DllImport.PutAudioStreamData(stream, buf, len); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.QueryTexture( + SDL_Texture* texture, + PixelFormatEnum* format, + int* access, + int* w, + int* h + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("QueryTexture", "SDL3") + )(texture, format, access, w, h); + + [NativeFunction("SDL3", EntryPoint = "QueryTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int QueryTexture( + SDL_Texture* texture, + PixelFormatEnum* format, + int* access, + int* w, + int* h + ) => DllImport.QueryTexture(texture, format, access, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.QueryTexture( + Ref 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) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int) + ((ISdl)this).QueryTexture( + __dsl_texture, + __dsl_format, + __dsl_access, + __dsl_w, + __dsl_h + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_QueryTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int QueryTexture( + Ref 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)nativeContext.LoadFunction("Quit", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "Quit")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void Quit() => DllImport.Quit(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.QuitSubSystem([NativeTypeName("Uint32")] uint flags) => + ((delegate* unmanaged)nativeContext.LoadFunction("QuitSubSystem", "SDL3"))( + flags + ); + + [NativeFunction("SDL3", EntryPoint = "QuitSubSystem")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void QuitSubSystem([NativeTypeName("Uint32")] uint flags) => + DllImport.QuitSubSystem(flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RaiseWindow(SDL_Window* window) => + ((delegate* unmanaged)nativeContext.LoadFunction("RaiseWindow", "SDL3"))( + window + ); + + [NativeFunction("SDL3", EntryPoint = "RaiseWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RaiseWindow(SDL_Window* window) => DllImport.RaiseWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RaiseWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).RaiseWindow(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RaiseWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RaiseWindow(Ref window) => DllImport.RaiseWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + nuint ISdl.ReadIO(SDL_IOStream* context, void* ptr, [NativeTypeName("size_t")] nuint size) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadIO", "SDL3") + )(context, ptr, size); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "ReadIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nuint ReadIO( + SDL_IOStream* context, + void* ptr, + [NativeTypeName("size_t")] nuint size + ) => DllImport.ReadIO(context, ptr, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + nuint ISdl.ReadIO(Ref context, Ref ptr, [NativeTypeName("size_t")] nuint size) + { + fixed (void* __dsl_ptr = ptr) + fixed (SDL_IOStream* __dsl_context = context) + { + return (nuint)((ISdl)this).ReadIO(__dsl_context, __dsl_ptr, size); + } + } + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nuint ReadIO( + Ref context, + Ref ptr, + [NativeTypeName("size_t")] nuint size + ) => DllImport.ReadIO(context, ptr, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadS16BE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadS16BE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadS16BE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value) => + DllImport.ReadS16BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadS16BE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) + { + fixed (short* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadS16BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadS16BE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) => DllImport.ReadS16BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadS16LE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadS16LE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS16LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadS16LE(SDL_IOStream* src, [NativeTypeName("Sint16 *")] short* value) => + DllImport.ReadS16LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadS16LE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) + { + fixed (short* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadS16LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS16LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadS16LE( + Ref src, + [NativeTypeName("Sint16 *")] Ref value + ) => DllImport.ReadS16LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadS32BE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadS32BE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadS32BE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value) => + DllImport.ReadS32BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadS32BE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) + { + fixed (int* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadS32BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadS32BE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) => DllImport.ReadS32BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadS32LE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadS32LE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS32LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadS32LE(SDL_IOStream* src, [NativeTypeName("Sint32 *")] int* value) => + DllImport.ReadS32LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadS32LE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) + { + fixed (int* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadS32LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS32LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadS32LE( + Ref src, + [NativeTypeName("Sint32 *")] Ref value + ) => DllImport.ReadS32LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadS64BE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadS64BE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadS64BE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value) => + DllImport.ReadS64BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadS64BE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) + { + fixed (long* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadS64BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadS64BE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) => DllImport.ReadS64BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadS64LE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadS64LE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadS64LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadS64LE(SDL_IOStream* src, [NativeTypeName("Sint64 *")] long* value) => + DllImport.ReadS64LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadS64LE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) + { + fixed (long* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadS64LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadS64LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadS64LE( + Ref src, + [NativeTypeName("Sint64 *")] Ref value + ) => DllImport.ReadS64LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + void* destination, + [NativeTypeName("Uint64")] ulong length + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadStorageFile", "SDL3") + )(storage, path, destination, length); + + [NativeFunction("SDL3", EntryPoint = "ReadStorageFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + void* destination, + [NativeTypeName("Uint64")] ulong length + ) => DllImport.ReadStorageFile(storage, path, destination, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref destination, + [NativeTypeName("Uint64")] ulong length + ) + { + fixed (void* __dsl_destination = destination) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int) + ((ISdl)this).ReadStorageFile(__dsl_storage, __dsl_path, __dsl_destination, length); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadStorageFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + Ref destination, + [NativeTypeName("Uint64")] ulong length + ) => DllImport.ReadStorageFile(storage, path, destination, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadSurfacePixel", "SDL3") + )(surface, x, y, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "ReadSurfacePixel")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadSurfacePixel( + Surface* surface, + int x, + int y, + [NativeTypeName("Uint8 *")] byte* r, + [NativeTypeName("Uint8 *")] byte* g, + [NativeTypeName("Uint8 *")] byte* b, + [NativeTypeName("Uint8 *")] byte* a + ) => DllImport.ReadSurfacePixel(surface, x, y, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) + { + fixed (byte* __dsl_a = a) + fixed (byte* __dsl_b = b) + fixed (byte* __dsl_g = g) + 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 + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadSurfacePixel")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadSurfacePixel( + Ref surface, + int x, + int y, + [NativeTypeName("Uint8 *")] Ref r, + [NativeTypeName("Uint8 *")] Ref g, + [NativeTypeName("Uint8 *")] Ref b, + [NativeTypeName("Uint8 *")] Ref a + ) => DllImport.ReadSurfacePixel(surface, x, y, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadU16BE(SDL_IOStream* src, [NativeTypeName("Uint16 *")] ushort* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadU16BE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadU16BE(SDL_IOStream* src, [NativeTypeName("Uint16 *")] ushort* value) => + DllImport.ReadU16BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadU16BE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) + { + fixed (ushort* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadU16BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadU16BE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) => DllImport.ReadU16BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadU16LE(SDL_IOStream* src, [NativeTypeName("Uint16 *")] ushort* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadU16LE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU16LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadU16LE(SDL_IOStream* src, [NativeTypeName("Uint16 *")] ushort* value) => + DllImport.ReadU16LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadU16LE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) + { + fixed (ushort* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadU16LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU16LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadU16LE( + Ref src, + [NativeTypeName("Uint16 *")] Ref value + ) => DllImport.ReadU16LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadU32BE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadU32BE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadU32BE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value) => + DllImport.ReadU32BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadU32BE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) + { + fixed (uint* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadU32BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadU32BE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) => DllImport.ReadU32BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadU32LE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadU32LE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU32LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadU32LE(SDL_IOStream* src, [NativeTypeName("Uint32 *")] uint* value) => + DllImport.ReadU32LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadU32LE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) + { + fixed (uint* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadU32LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU32LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadU32LE( + Ref src, + [NativeTypeName("Uint32 *")] Ref value + ) => DllImport.ReadU32LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadU64BE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadU64BE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadU64BE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value) => + DllImport.ReadU64BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadU64BE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) + { + fixed (ulong* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadU64BE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadU64BE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) => DllImport.ReadU64BE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadU64LE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadU64LE", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU64LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadU64LE(SDL_IOStream* src, [NativeTypeName("Uint64 *")] ulong* value) => + DllImport.ReadU64LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadU64LE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) + { + fixed (ulong* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadU64LE(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU64LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadU64LE( + Ref src, + [NativeTypeName("Uint64 *")] Ref value + ) => DllImport.ReadU64LE(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReadU8(SDL_IOStream* src, [NativeTypeName("Uint8 *")] byte* value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReadU8", "SDL3") + )(src, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ReadU8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReadU8(SDL_IOStream* src, [NativeTypeName("Uint8 *")] byte* value) => + DllImport.ReadU8(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ReadU8(Ref src, [NativeTypeName("Uint8 *")] Ref value) + { + fixed (byte* __dsl_value = value) + fixed (SDL_IOStream* __dsl_src = src) + { + return (MaybeBool)(int)((ISdl)this).ReadU8(__dsl_src, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReadU8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ReadU8( + Ref src, + [NativeTypeName("Uint8 *")] Ref value + ) => DllImport.ReadU8(src, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.RegisterEvents(int numevents) => + ((delegate* unmanaged)nativeContext.LoadFunction("RegisterEvents", "SDL3"))( + numevents + ); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "RegisterEvents")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint RegisterEvents(int numevents) => DllImport.RegisterEvents(numevents); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReleaseCameraFrame(SDL_Camera* camera, Surface* frame) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReleaseCameraFrame", "SDL3") + )(camera, frame); + + [NativeFunction("SDL3", EntryPoint = "ReleaseCameraFrame")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReleaseCameraFrame(SDL_Camera* camera, Surface* frame) => + DllImport.ReleaseCameraFrame(camera, frame); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReleaseCameraFrame(Ref camera, Ref frame) + { + fixed (Surface* __dsl_frame = frame) + fixed (SDL_Camera* __dsl_camera = camera) + { + return (int)((ISdl)this).ReleaseCameraFrame(__dsl_camera, __dsl_frame); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReleaseCameraFrame")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReleaseCameraFrame(Ref camera, Ref frame) => + DllImport.ReleaseCameraFrame(camera, frame); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ReloadGamepadMappings() => + ((delegate* unmanaged)nativeContext.LoadFunction("ReloadGamepadMappings", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "ReloadGamepadMappings")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ReloadGamepadMappings() => DllImport.ReloadGamepadMappings(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RemovePath([NativeTypeName("const char *")] sbyte* path) => + ((delegate* unmanaged)nativeContext.LoadFunction("RemovePath", "SDL3"))(path); + + [NativeFunction("SDL3", EntryPoint = "RemovePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RemovePath([NativeTypeName("const char *")] sbyte* path) => + DllImport.RemovePath(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RemovePath([NativeTypeName("const char *")] Ref path) + { + fixed (sbyte* __dsl_path = path) + { + return (int)((ISdl)this).RemovePath(__dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemovePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RemovePath([NativeTypeName("const char *")] Ref path) => + DllImport.RemovePath(path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RemoveStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RemoveStoragePath", "SDL3") + )(storage, path); + + [NativeFunction("SDL3", EntryPoint = "RemoveStoragePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RemoveStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path + ) => DllImport.RemoveStoragePath(storage, path); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RemoveStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref path + ) + { + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)((ISdl)this).RemoveStoragePath(__dsl_storage, __dsl_path); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveStoragePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RemoveStoragePath( + Ref 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); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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) => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_RemoveTimer", "SDL3"))(id); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_RemoveTimer")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RemoveTimerRaw([NativeTypeName("SDL_TimerID")] uint id) => + DllImport.RemoveTimerRaw(id); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenamePath( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenamePath", "SDL3") + )(oldpath, newpath); + + [NativeFunction("SDL3", EntryPoint = "RenamePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenamePath( + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => DllImport.RenamePath(oldpath, newpath); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenamePath( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + { + return (int)((ISdl)this).RenamePath(__dsl_oldpath, __dsl_newpath); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenamePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenamePath( + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) => DllImport.RenamePath(oldpath, newpath); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenameStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenameStoragePath", "SDL3") + )(storage, oldpath, newpath); + + [NativeFunction("SDL3", EntryPoint = "RenameStoragePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenameStoragePath( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* oldpath, + [NativeTypeName("const char *")] sbyte* newpath + ) => DllImport.RenameStoragePath(storage, oldpath, newpath); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenameStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) + { + fixed (sbyte* __dsl_newpath = newpath) + fixed (sbyte* __dsl_oldpath = oldpath) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int)((ISdl)this).RenameStoragePath(__dsl_storage, __dsl_oldpath, __dsl_newpath); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenameStoragePath")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenameStoragePath( + Ref storage, + [NativeTypeName("const char *")] Ref oldpath, + [NativeTypeName("const char *")] Ref newpath + ) => DllImport.RenameStoragePath(storage, oldpath, newpath); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderClear(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderClear", "SDL3") + )(renderer); + + [NativeFunction("SDL3", EntryPoint = "RenderClear")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderClear(SDL_Renderer* renderer) => DllImport.RenderClear(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderClear(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderClear(__dsl_renderer); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClear")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderClear(Ref renderer) => DllImport.RenderClear(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderClipEnabled(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderClipEnabled", "SDL3") + )(renderer); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderClipEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderClipEnabled(SDL_Renderer* renderer) => + DllImport.RenderClipEnabled(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RenderClipEnabled(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (MaybeBool)(int)((ISdl)this).RenderClipEnabled(__dsl_renderer); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderClipEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderClipEnabled(Ref renderer) => + DllImport.RenderClipEnabled(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderCoordinatesFromWindow( + SDL_Renderer* renderer, + float window_x, + float window_y, + float* x, + float* y + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderCoordinatesFromWindow", "SDL3") + )(renderer, window_x, window_y, x, y); + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesFromWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderCoordinatesFromWindow( + SDL_Renderer* renderer, + float window_x, + float window_y, + float* x, + float* y + ) => DllImport.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderCoordinatesFromWindow( + Ref renderer, + float window_x, + float window_y, + Ref x, + Ref y + ) + { + fixed (float* __dsl_y = y) + fixed (float* __dsl_x = x) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).RenderCoordinatesFromWindow( + __dsl_renderer, + window_x, + window_y, + __dsl_x, + __dsl_y + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesFromWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderCoordinatesFromWindow( + Ref renderer, + float window_x, + float window_y, + Ref x, + Ref y + ) => DllImport.RenderCoordinatesFromWindow(renderer, window_x, window_y, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderCoordinatesToWindow( + SDL_Renderer* renderer, + float x, + float y, + float* window_x, + float* window_y + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderCoordinatesToWindow", "SDL3") + )(renderer, x, y, window_x, window_y); + + [NativeFunction("SDL3", EntryPoint = "RenderCoordinatesToWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderCoordinatesToWindow( + SDL_Renderer* renderer, + float x, + float y, + float* window_x, + float* window_y + ) => DllImport.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderCoordinatesToWindow( + Ref renderer, + float x, + float y, + Ref window_x, + Ref window_y + ) + { + fixed (float* __dsl_window_y = window_y) + fixed (float* __dsl_window_x = window_x) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).RenderCoordinatesToWindow( + __dsl_renderer, + x, + y, + __dsl_window_x, + __dsl_window_y + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderCoordinatesToWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderCoordinatesToWindow( + Ref renderer, + float x, + float y, + Ref window_x, + Ref window_y + ) => DllImport.RenderCoordinatesToWindow(renderer, x, y, window_x, window_y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderFillRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderFillRect", "SDL3") + )(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "RenderFillRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderFillRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ) => DllImport.RenderFillRect(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderFillRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) + { + fixed (FRect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderFillRect(__dsl_renderer, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderFillRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) => DllImport.RenderFillRect(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderFillRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderFillRects", "SDL3") + )(renderer, rects, count); + + [NativeFunction("SDL3", EntryPoint = "RenderFillRects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderFillRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ) => DllImport.RenderFillRects(renderer, rects, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderFillRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) + { + fixed (FRect* __dsl_rects = rects) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderFillRects(__dsl_renderer, __dsl_rects, count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderFillRects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderFillRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) => DllImport.RenderFillRects(renderer, rects, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderGeometry( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, + int num_vertices, + [NativeTypeName("const int *")] int* indices, + int num_indices + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderGeometry", "SDL3") + )(renderer, texture, vertices, num_vertices, indices, num_indices); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometry")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderGeometry( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_Vertex *")] Vertex* vertices, + int num_vertices, + [NativeTypeName("const int *")] int* indices, + int num_indices + ) => DllImport.RenderGeometry(renderer, texture, vertices, num_vertices, indices, num_indices); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderGeometry( + Ref renderer, + Ref texture, + [NativeTypeName("const SDL_Vertex *")] Ref vertices, + int num_vertices, + [NativeTypeName("const int *")] Ref indices, + int num_indices + ) + { + fixed (int* __dsl_indices = indices) + fixed (Vertex* __dsl_vertices = vertices) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).RenderGeometry( + __dsl_renderer, + __dsl_texture, + __dsl_vertices, + num_vertices, + __dsl_indices, + num_indices + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometry")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderGeometry( + Ref renderer, + Ref texture, + [NativeTypeName("const SDL_Vertex *")] Ref vertices, + int num_vertices, + [NativeTypeName("const int *")] Ref indices, + int num_indices + ) => DllImport.RenderGeometry(renderer, texture, vertices, num_vertices, indices, num_indices); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderGeometryRaw( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const float *")] float* xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] Color* 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< + SDL_Renderer*, + SDL_Texture*, + float*, + int, + Color*, + int, + float*, + int, + int, + void*, + int, + int, + int>) + nativeContext.LoadFunction("RenderGeometryRaw", "SDL3") + )( + renderer, + texture, + xy, + xy_stride, + color, + color_stride, + uv, + uv_stride, + num_vertices, + indices, + num_indices, + size_indices + ); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometryRaw")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderGeometryRaw( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const float *")] float* xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] Color* 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.RenderGeometryRaw( + 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.RenderGeometryRaw( + Ref renderer, + Ref texture, + [NativeTypeName("const float *")] Ref xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] 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 (Color* __dsl_color = color) + fixed (float* __dsl_xy = xy) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).RenderGeometryRaw( + __dsl_renderer, + __dsl_texture, + __dsl_xy, + xy_stride, + __dsl_color, + color_stride, + __dsl_uv, + uv_stride, + num_vertices, + __dsl_indices, + num_indices, + size_indices + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRaw")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderGeometryRaw( + Ref renderer, + Ref texture, + [NativeTypeName("const float *")] Ref xy, + int xy_stride, + [NativeTypeName("const SDL_Color *")] 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.RenderGeometryRaw( + 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( + SDL_Renderer* renderer, + SDL_Texture* 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< + SDL_Renderer*, + SDL_Texture*, + float*, + int, + FColor*, + int, + float*, + int, + int, + void*, + int, + int, + int>) + nativeContext.LoadFunction("RenderGeometryRawFloat", "SDL3") + )( + renderer, + texture, + xy, + xy_stride, + color, + color_stride, + uv, + uv_stride, + num_vertices, + indices, + num_indices, + size_indices + ); + + [NativeFunction("SDL3", EntryPoint = "RenderGeometryRawFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderGeometryRawFloat( + SDL_Renderer* renderer, + SDL_Texture* 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( + Ref renderer, + Ref 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) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).RenderGeometryRawFloat( + __dsl_renderer, + __dsl_texture, + __dsl_xy, + xy_stride, + __dsl_color, + color_stride, + __dsl_uv, + uv_stride, + num_vertices, + __dsl_indices, + num_indices, + size_indices + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderGeometryRawFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderGeometryRawFloat( + Ref renderer, + Ref 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 + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderLine(SDL_Renderer* renderer, float x1, float y1, float x2, float y2) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderLine", "SDL3") + )(renderer, x1, y1, x2, y2); + + [NativeFunction("SDL3", EntryPoint = "RenderLine")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderLine(SDL_Renderer* renderer, float x1, float y1, float x2, float y2) => + DllImport.RenderLine(renderer, x1, y1, x2, y2); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderLine(Ref renderer, float x1, float y1, float x2, float y2) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderLine(__dsl_renderer, x1, y1, x2, y2); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLine")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderLine( + Ref renderer, + float x1, + float y1, + float x2, + float y2 + ) => DllImport.RenderLine(renderer, x1, y1, x2, y2); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderLines( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderLines", "SDL3") + )(renderer, points, count); + + [NativeFunction("SDL3", EntryPoint = "RenderLines")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderLines( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ) => DllImport.RenderLines(renderer, points, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderLines( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) + { + fixed (FPoint* __dsl_points = points) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderLines(__dsl_renderer, __dsl_points, count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderLines")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderLines( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) => DllImport.RenderLines(renderer, points, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderPoint(SDL_Renderer* renderer, float x, float y) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderPoint", "SDL3") + )(renderer, x, y); + + [NativeFunction("SDL3", EntryPoint = "RenderPoint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderPoint(SDL_Renderer* renderer, float x, float y) => + DllImport.RenderPoint(renderer, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderPoint(Ref renderer, float x, float y) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderPoint(__dsl_renderer, x, y); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderPoint(Ref renderer, float x, float y) => + DllImport.RenderPoint(renderer, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderPoints( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderPoints", "SDL3") + )(renderer, points, count); + + [NativeFunction("SDL3", EntryPoint = "RenderPoints")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderPoints( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FPoint *")] FPoint* points, + int count + ) => DllImport.RenderPoints(renderer, points, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderPoints( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) + { + fixed (FPoint* __dsl_points = points) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderPoints(__dsl_renderer, __dsl_points, count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPoints")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderPoints( + Ref renderer, + [NativeTypeName("const SDL_FPoint *")] Ref points, + int count + ) => DllImport.RenderPoints(renderer, points, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderPresent(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderPresent", "SDL3") + )(renderer); + + [NativeFunction("SDL3", EntryPoint = "RenderPresent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderPresent(SDL_Renderer* renderer) => DllImport.RenderPresent(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderPresent(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderPresent(__dsl_renderer); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderPresent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderPresent(Ref renderer) => + DllImport.RenderPresent(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Surface* ISdl.RenderReadPixels( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderReadPixels", "SDL3") + )(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "RenderReadPixels")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Surface* RenderReadPixels( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => DllImport.RenderReadPixels(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + Ptr ISdl.RenderReadPixels( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (Surface*)((ISdl)this).RenderReadPixels(__dsl_renderer, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderReadPixels")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static Ptr RenderReadPixels( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) => DllImport.RenderReadPixels(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderRect", "SDL3") + )(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "RenderRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rect + ) => DllImport.RenderRect(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) + { + fixed (FRect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderRect(__dsl_renderer, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderRect( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rect + ) => DllImport.RenderRect(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderRects", "SDL3") + )(renderer, rects, count); + + [NativeFunction("SDL3", EntryPoint = "RenderRects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderRects( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_FRect *")] FRect* rects, + int count + ) => DllImport.RenderRects(renderer, rects, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) + { + fixed (FRect* __dsl_rects = rects) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).RenderRects(__dsl_renderer, __dsl_rects, count); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderRects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderRects( + Ref renderer, + [NativeTypeName("const SDL_FRect *")] Ref rects, + int count + ) => DllImport.RenderRects(renderer, rects, count); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderTexture( + SDL_Renderer* renderer, + SDL_Texture* texture, + [NativeTypeName("const SDL_FRect *")] FRect* srcrect, + [NativeTypeName("const SDL_FRect *")] FRect* dstrect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderTexture", "SDL3") + )(renderer, texture, srcrect, dstrect); + + [NativeFunction("SDL3", EntryPoint = "RenderTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderTexture( + SDL_Renderer* renderer, + SDL_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( + Ref renderer, + 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 (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).RenderTexture( + __dsl_renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderTexture( + Ref renderer, + 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( + SDL_Renderer* renderer, + SDL_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 + ) => + ( + (delegate* unmanaged< + SDL_Renderer*, + SDL_Texture*, + FRect*, + FRect*, + double, + FPoint*, + FlipMode, + int>) + nativeContext.LoadFunction("RenderTextureRotated", "SDL3") + )(renderer, texture, srcrect, dstrect, angle, center, flip); + + [NativeFunction("SDL3", EntryPoint = "RenderTextureRotated")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderTextureRotated( + SDL_Renderer* renderer, + SDL_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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderTextureRotated( + Ref renderer, + 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 + ) + { + fixed (FPoint* __dsl_center = center) + fixed (FRect* __dsl_dstrect = dstrect) + fixed (FRect* __dsl_srcrect = srcrect) + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).RenderTextureRotated( + __dsl_renderer, + __dsl_texture, + __dsl_srcrect, + __dsl_dstrect, + angle, + __dsl_center, + flip + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderTextureRotated")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderTextureRotated( + Ref renderer, + 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); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RenderViewportSet(SDL_Renderer* renderer) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RenderViewportSet", "SDL3") + )(renderer); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "RenderViewportSet")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RenderViewportSet(SDL_Renderer* renderer) => + DllImport.RenderViewportSet(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.RenderViewportSet(Ref renderer) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (MaybeBool)(int)((ISdl)this).RenderViewportSet(__dsl_renderer); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RenderViewportSet")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool RenderViewportSet(Ref renderer) => + DllImport.RenderViewportSet(renderer); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + AssertState ISdl.ReportAssertion( + AssertData* data, + [NativeTypeName("const char *")] sbyte* func, + [NativeTypeName("const char *")] sbyte* file, + int line + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ReportAssertion", "SDL3") + )(data, func, file, line); + + [NativeFunction("SDL3", EntryPoint = "ReportAssertion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static AssertState ReportAssertion( + AssertData* data, + [NativeTypeName("const char *")] sbyte* func, + [NativeTypeName("const char *")] sbyte* file, + int line + ) => DllImport.ReportAssertion(data, func, file, line); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + AssertState ISdl.ReportAssertion( + Ref data, + [NativeTypeName("const char *")] Ref func, + [NativeTypeName("const char *")] Ref file, + int line + ) + { + fixed (sbyte* __dsl_file = file) + fixed (sbyte* __dsl_func = func) + fixed (AssertData* __dsl_data = data) + { + return (AssertState) + ((ISdl)this).ReportAssertion(__dsl_data, __dsl_func, __dsl_file, line); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ReportAssertion")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static AssertState ReportAssertion( + Ref data, + [NativeTypeName("const char *")] Ref func, + [NativeTypeName("const char *")] Ref file, + int line + ) => DllImport.ReportAssertion(data, func, file, line); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ResetAssertionReport() => + ((delegate* unmanaged)nativeContext.LoadFunction("ResetAssertionReport", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "ResetAssertionReport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ResetAssertionReport() => DllImport.ResetAssertionReport(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ResetHint([NativeTypeName("const char *")] sbyte* name) => + ((delegate* unmanaged)nativeContext.LoadFunction("ResetHint", "SDL3"))(name); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ResetHint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ResetHint([NativeTypeName("const char *")] sbyte* name) => + DllImport.ResetHint(name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ResetHint([NativeTypeName("const char *")] Ref name) + { + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)((ISdl)this).ResetHint(__dsl_name); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResetHint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ResetHint([NativeTypeName("const char *")] Ref name) => + DllImport.ResetHint(name); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ResetHints() => + ((delegate* unmanaged)nativeContext.LoadFunction("ResetHints", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "ResetHints")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ResetHints() => DllImport.ResetHints(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ResetKeyboard() => + ((delegate* unmanaged)nativeContext.LoadFunction("ResetKeyboard", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "ResetKeyboard")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ResetKeyboard() => DllImport.ResetKeyboard(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RestoreWindow(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RestoreWindow", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "RestoreWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RestoreWindow(SDL_Window* window) => DllImport.RestoreWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RestoreWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).RestoreWindow(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RestoreWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RestoreWindow(Ref window) => DllImport.RestoreWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + ((delegate* unmanaged)nativeContext.LoadFunction("ResumeAudioDevice", "SDL3"))( + dev + ); + + [NativeFunction("SDL3", EntryPoint = "ResumeAudioDevice")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ResumeAudioDevice([NativeTypeName("SDL_AudioDeviceID")] uint dev) => + DllImport.ResumeAudioDevice(dev); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ResumeHaptic(SDL_Haptic* haptic) => + ((delegate* unmanaged)nativeContext.LoadFunction("ResumeHaptic", "SDL3"))( + haptic + ); + + [NativeFunction("SDL3", EntryPoint = "ResumeHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ResumeHaptic(SDL_Haptic* haptic) => DllImport.ResumeHaptic(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ResumeHaptic(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).ResumeHaptic(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ResumeHaptic")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ResumeHaptic(Ref haptic) => DllImport.ResumeHaptic(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RumbleGamepad( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RumbleGamepad", "SDL3") + )(gamepad, low_frequency_rumble, high_frequency_rumble, duration_ms); + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RumbleGamepad( + SDL_Gamepad* 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( + Ref gamepad, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int) + ((ISdl)this).RumbleGamepad( + __dsl_gamepad, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepad")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RumbleGamepad( + Ref 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.RumbleGamepadTriggers( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RumbleGamepadTriggers", "SDL3") + )(gamepad, left_rumble, right_rumble, duration_ms); + + [NativeFunction("SDL3", EntryPoint = "RumbleGamepadTriggers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RumbleGamepadTriggers( + SDL_Gamepad* 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( + Ref gamepad, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int) + ((ISdl)this).RumbleGamepadTriggers( + __dsl_gamepad, + left_rumble, + right_rumble, + duration_ms + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleGamepadTriggers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RumbleGamepadTriggers( + Ref 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.RumbleJoystick( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RumbleJoystick", "SDL3") + )(joystick, low_frequency_rumble, high_frequency_rumble, duration_ms); + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RumbleJoystick( + SDL_Joystick* 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( + Ref joystick, + [NativeTypeName("Uint16")] ushort low_frequency_rumble, + [NativeTypeName("Uint16")] ushort high_frequency_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int) + ((ISdl)this).RumbleJoystick( + __dsl_joystick, + low_frequency_rumble, + high_frequency_rumble, + duration_ms + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystick")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RumbleJoystick( + Ref 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.RumbleJoystickTriggers( + SDL_Joystick* joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RumbleJoystickTriggers", "SDL3") + )(joystick, left_rumble, right_rumble, duration_ms); + + [NativeFunction("SDL3", EntryPoint = "RumbleJoystickTriggers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RumbleJoystickTriggers( + SDL_Joystick* 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)] + int ISdl.RumbleJoystickTriggers( + Ref joystick, + [NativeTypeName("Uint16")] ushort left_rumble, + [NativeTypeName("Uint16")] ushort right_rumble, + [NativeTypeName("Uint32")] uint duration_ms + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int) + ((ISdl)this).RumbleJoystickTriggers( + __dsl_joystick, + left_rumble, + right_rumble, + duration_ms + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RumbleJoystickTriggers")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RumbleJoystickTriggers( + Ref 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)] + int ISdl.RunHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("RunHapticEffect", "SDL3") + )(haptic, effect, iterations); + + [NativeFunction("SDL3", EntryPoint = "RunHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RunHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => DllImport.RunHapticEffect(haptic, effect, iterations); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.RunHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).RunHapticEffect(__dsl_haptic, effect, iterations); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_RunHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int RunHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("Uint32")] uint iterations + ) => DllImport.RunHapticEffect(haptic, effect, iterations); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SaveBMP(Surface* surface, [NativeTypeName("const char *")] sbyte* file) => + ((delegate* unmanaged)nativeContext.LoadFunction("SaveBMP", "SDL3"))( + surface, + file + ); + + [NativeFunction("SDL3", EntryPoint = "SaveBMP")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + { + fixed (sbyte* __dsl_file = file) + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).SaveBMP(__dsl_surface, __dsl_file); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SaveBMP( + Ref surface, + [NativeTypeName("const char *")] Ref file + ) => DllImport.SaveBMP(surface, file); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SaveBMPIO( + Surface* surface, + SDL_IOStream* dst, + [NativeTypeName("SDL_bool")] int closeio + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SaveBMPIO", "SDL3") + )(surface, dst, closeio); + + [NativeFunction("SDL3", EntryPoint = "SaveBMPIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SaveBMPIO( + Surface* surface, + SDL_IOStream* dst, + [NativeTypeName("SDL_bool")] int closeio + ) => DllImport.SaveBMPIO(surface, dst, closeio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SaveBMPIO( + Ref surface, + Ref dst, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) + { + fixed (SDL_IOStream* __dsl_dst = dst) + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).SaveBMPIO(__dsl_surface, __dsl_dst, (int)closeio); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SaveBMP_IO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SaveBMPIO( + Ref surface, + Ref dst, + [NativeTypeName("SDL_bool")] MaybeBool closeio + ) => DllImport.SaveBMPIO(surface, dst, closeio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ScreenKeyboardShown(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ScreenKeyboardShown", "SDL3") + )(window); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "ScreenKeyboardShown")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ScreenKeyboardShown(SDL_Window* window) => + DllImport.ScreenKeyboardShown(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ScreenKeyboardShown(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)((ISdl)this).ScreenKeyboardShown(__dsl_window); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenKeyboardShown")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ScreenKeyboardShown(Ref window) => + DllImport.ScreenKeyboardShown(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.ScreenSaverEnabled() => + (MaybeBool)(int)((ISdl)this).ScreenSaverEnabledRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool ScreenSaverEnabled() => DllImport.ScreenSaverEnabled(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ScreenSaverEnabledRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_ScreenSaverEnabled", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_ScreenSaverEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ScreenSaverEnabledRaw() => DllImport.ScreenSaverEnabledRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + long ISdl.SeekIO(SDL_IOStream* context, [NativeTypeName("Sint64")] long offset, int whence) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SeekIO", "SDL3") + )(context, offset, whence); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "SeekIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static long SeekIO( + SDL_IOStream* context, + [NativeTypeName("Sint64")] long offset, + int whence + ) => DllImport.SeekIO(context, offset, whence); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + long ISdl.SeekIO(Ref context, [NativeTypeName("Sint64")] long offset, int whence) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (long)((ISdl)this).SeekIO(__dsl_context, offset, whence); + } + } + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SeekIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static long SeekIO( + Ref context, + [NativeTypeName("Sint64")] long offset, + int whence + ) => DllImport.SeekIO(context, offset, whence); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SendGamepadEffect( + SDL_Gamepad* gamepad, + [NativeTypeName("const void *")] void* data, + int size + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SendGamepadEffect", "SDL3") + )(gamepad, data, size); + + [NativeFunction("SDL3", EntryPoint = "SendGamepadEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SendGamepadEffect( + SDL_Gamepad* gamepad, + [NativeTypeName("const void *")] void* data, + int size + ) => DllImport.SendGamepadEffect(gamepad, data, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SendGamepadEffect( + Ref gamepad, + [NativeTypeName("const void *")] Ref data, + int size + ) + { + fixed (void* __dsl_data = data) + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)((ISdl)this).SendGamepadEffect(__dsl_gamepad, __dsl_data, size); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendGamepadEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SendGamepadEffect( + Ref gamepad, + [NativeTypeName("const void *")] Ref data, + int size + ) => DllImport.SendGamepadEffect(gamepad, data, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SendJoystickEffect( + SDL_Joystick* joystick, + [NativeTypeName("const void *")] void* data, + int size + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SendJoystickEffect", "SDL3") + )(joystick, data, size); + + [NativeFunction("SDL3", EntryPoint = "SendJoystickEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SendJoystickEffect( + SDL_Joystick* joystick, + [NativeTypeName("const void *")] void* data, + int size + ) => DllImport.SendJoystickEffect(joystick, data, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SendJoystickEffect( + Ref joystick, + [NativeTypeName("const void *")] Ref data, + int size + ) + { + fixed (void* __dsl_data = data) + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).SendJoystickEffect(__dsl_joystick, __dsl_data, size); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SendJoystickEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SendJoystickEffect( + Ref joystick, + [NativeTypeName("const void *")] Ref data, + int size + ) => DllImport.SendJoystickEffect(joystick, data, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + void* userdata + ) => + ( + (delegate* unmanaged, void*, void>) + nativeContext.LoadFunction("SetAssertionHandler", "SDL3") + )(handler, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetAssertionHandler")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + void* userdata + ) => DllImport.SetAssertionHandler(handler, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).SetAssertionHandler(handler, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAssertionHandler")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetAssertionHandler( + [NativeTypeName("SDL_AssertionHandler")] + delegate* unmanaged handler, + Ref userdata + ) => DllImport.SetAssertionHandler(handler, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged< + uint, + delegate* unmanaged, + void*, + int>) + nativeContext.LoadFunction("SetAudioPostmixCallback", "SDL3") + )(devid, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetAudioPostmixCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.SetAudioPostmixCallback(devid, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + return (int)((ISdl)this).SetAudioPostmixCallback(devid, callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioPostmixCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioPostmixCallback( + [NativeTypeName("SDL_AudioDeviceID")] uint devid, + [NativeTypeName("SDL_AudioPostmixCallback")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.SetAudioPostmixCallback(devid, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetAudioStreamFormat( + SDL_AudioStream* stream, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* src_spec, + [NativeTypeName("const SDL_AudioSpec *")] AudioSpec* dst_spec + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetAudioStreamFormat", "SDL3") + )(stream, src_spec, dst_spec); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioStreamFormat( + SDL_AudioStream* 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( + Ref stream, + [NativeTypeName("const SDL_AudioSpec *")] Ref src_spec, + [NativeTypeName("const SDL_AudioSpec *")] Ref dst_spec + ) + { + fixed (AudioSpec* __dsl_dst_spec = dst_spec) + fixed (AudioSpec* __dsl_src_spec = src_spec) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int) + ((ISdl)this).SetAudioStreamFormat(__dsl_stream, __dsl_src_spec, __dsl_dst_spec); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFormat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioStreamFormat( + Ref 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(SDL_AudioStream* stream, float ratio) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetAudioStreamFrequencyRatio", "SDL3") + )(stream, ratio); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamFrequencyRatio")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioStreamFrequencyRatio(SDL_AudioStream* stream, float ratio) => + DllImport.SetAudioStreamFrequencyRatio(stream, ratio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetAudioStreamFrequencyRatio(Ref stream, float ratio) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).SetAudioStreamFrequencyRatio(__dsl_stream, ratio); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamFrequencyRatio")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioStreamFrequencyRatio(Ref stream, float ratio) => + DllImport.SetAudioStreamFrequencyRatio(stream, ratio); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetAudioStreamGetCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged< + SDL_AudioStream*, + delegate* unmanaged, + void*, + int>) + nativeContext.LoadFunction("SetAudioStreamGetCallback", "SDL3") + )(stream, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamGetCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioStreamGetCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.SetAudioStreamGetCallback(stream, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetAudioStreamGetCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int) + ((ISdl)this).SetAudioStreamGetCallback(__dsl_stream, callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamGetCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioStreamGetCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.SetAudioStreamGetCallback(stream, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetAudioStreamPutCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged< + SDL_AudioStream*, + delegate* unmanaged, + void*, + int>) + nativeContext.LoadFunction("SetAudioStreamPutCallback", "SDL3") + )(stream, callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetAudioStreamPutCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioStreamPutCallback( + SDL_AudioStream* stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.SetAudioStreamPutCallback(stream, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetAudioStreamPutCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int) + ((ISdl)this).SetAudioStreamPutCallback(__dsl_stream, callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetAudioStreamPutCallback")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetAudioStreamPutCallback( + Ref stream, + [NativeTypeName("SDL_AudioStreamCallback")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.SetAudioStreamPutCallback(stream, callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetBooleanProperty", "SDL3") + )(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetBooleanProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("SDL_bool")] int value + ) => DllImport.SetBooleanProperty(props, name, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)((ISdl)this).SetBooleanProperty(props, __dsl_name, (int)value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetBooleanProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetBooleanProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("SDL_bool")] MaybeBool value + ) => DllImport.SetBooleanProperty(props, name, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] delegate* unmanaged cleanup, + void* userdata, + [NativeTypeName("const char **")] sbyte** mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ) => + ( + (delegate* unmanaged< + delegate* unmanaged, + delegate* unmanaged, + void*, + sbyte**, + nuint, + int>) + nativeContext.LoadFunction("SetClipboardData", "SDL3") + )(callback, cleanup, userdata, mime_types, num_mime_types); + + [NativeFunction("SDL3", EntryPoint = "SetClipboardData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] delegate* unmanaged cleanup, + void* userdata, + [NativeTypeName("const char **")] sbyte** mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ) => DllImport.SetClipboardData(callback, cleanup, userdata, mime_types, num_mime_types); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] delegate* unmanaged cleanup, + Ref userdata, + [NativeTypeName("const char **")] Ref2D mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ) + { + 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 + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardData")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetClipboardData( + [NativeTypeName("SDL_ClipboardDataCallback")] + delegate* unmanaged callback, + [NativeTypeName("SDL_ClipboardCleanupCallback")] delegate* unmanaged cleanup, + Ref userdata, + [NativeTypeName("const char **")] Ref2D mime_types, + [NativeTypeName("size_t")] nuint num_mime_types + ) => DllImport.SetClipboardData(callback, cleanup, userdata, mime_types, num_mime_types); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetClipboardText([NativeTypeName("const char *")] sbyte* text) => + ((delegate* unmanaged)nativeContext.LoadFunction("SetClipboardText", "SDL3"))( + text + ); + + [NativeFunction("SDL3", EntryPoint = "SetClipboardText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetClipboardText([NativeTypeName("const char *")] sbyte* text) => + DllImport.SetClipboardText(text); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetClipboardText([NativeTypeName("const char *")] Ref text) + { + fixed (sbyte* __dsl_text = text) + { + return (int)((ISdl)this).SetClipboardText(__dsl_text); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetClipboardText")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetClipboardText([NativeTypeName("const char *")] Ref text) => + DllImport.SetClipboardText(text); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetCursor(SDL_Cursor* cursor) => + ((delegate* unmanaged)nativeContext.LoadFunction("SetCursor", "SDL3"))( + cursor + ); + + [NativeFunction("SDL3", EntryPoint = "SetCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetCursor(SDL_Cursor* cursor) => DllImport.SetCursor(cursor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetCursor(Ref cursor) + { + fixed (SDL_Cursor* __dsl_cursor = cursor) + { + return (int)((ISdl)this).SetCursor(__dsl_cursor); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetCursor(Ref cursor) => DllImport.SetCursor(cursor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] int enabled + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetEventEnabled", "SDL3") + )(type, enabled); + + [NativeFunction("SDL3", EntryPoint = "SetEventEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] int 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); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetEventEnabled( + [NativeTypeName("Uint32")] uint type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => DllImport.SetEventEnabled(type, enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => + ( + (delegate* unmanaged, void*, void>) + nativeContext.LoadFunction("SetEventFilter", "SDL3") + )(filter, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetEventFilter")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + void* userdata + ) => DllImport.SetEventFilter(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).SetEventFilter(filter, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetEventFilter")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetEventFilter( + [NativeTypeName("SDL_EventFilter")] delegate* unmanaged filter, + Ref userdata + ) => DllImport.SetEventFilter(filter, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetFloatProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + float value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetFloatProperty", "SDL3") + )(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetFloatProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + float value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)((ISdl)this).SetFloatProperty(props, __dsl_name, value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetFloatProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetGamepadEventsEnabled", "SDL3") + )(enabled); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadEventsEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + DllImport.SetGamepadEventsEnabled(enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetGamepadEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled) => + ((ISdl)this).SetGamepadEventsEnabled((int)enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadEventsEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetGamepadEventsEnabled( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => DllImport.SetGamepadEventsEnabled(enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetGamepadLED( + SDL_Gamepad* gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetGamepadLED", "SDL3") + )(gamepad, red, green, blue); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadLED")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetGamepadLED( + SDL_Gamepad* 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( + Ref gamepad, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)((ISdl)this).SetGamepadLED(__dsl_gamepad, red, green, blue); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadLED")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetGamepadLED( + Ref 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.SetGamepadMapping( + [NativeTypeName("SDL_JoystickID")] uint instance_id, + [NativeTypeName("const char *")] sbyte* mapping + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetGamepadMapping", "SDL3") + )(instance_id, mapping); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadMapping")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadMapping")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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(SDL_Gamepad* gamepad, int player_index) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetGamepadPlayerIndex", "SDL3") + )(gamepad, player_index); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetGamepadPlayerIndex(SDL_Gamepad* gamepad, int player_index) => + DllImport.SetGamepadPlayerIndex(gamepad, player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetGamepadPlayerIndex(Ref gamepad, int player_index) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)((ISdl)this).SetGamepadPlayerIndex(__dsl_gamepad, player_index); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetGamepadPlayerIndex(Ref gamepad, int player_index) => + DllImport.SetGamepadPlayerIndex(gamepad, player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetGamepadSensorEnabled( + SDL_Gamepad* gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] int enabled + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetGamepadSensorEnabled", "SDL3") + )(gamepad, type, enabled); + + [NativeFunction("SDL3", EntryPoint = "SetGamepadSensorEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetGamepadSensorEnabled( + SDL_Gamepad* gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] int enabled + ) => DllImport.SetGamepadSensorEnabled(gamepad, type, enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetGamepadSensorEnabled( + Ref gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) + { + fixed (SDL_Gamepad* __dsl_gamepad = gamepad) + { + return (int)((ISdl)this).SetGamepadSensorEnabled(__dsl_gamepad, type, (int)enabled); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetGamepadSensorEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetGamepadSensorEnabled( + Ref gamepad, + SensorType type, + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => DllImport.SetGamepadSensorEnabled(gamepad, type, enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetHapticAutocenter(SDL_Haptic* haptic, int autocenter) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetHapticAutocenter", "SDL3") + )(haptic, autocenter); + + [NativeFunction("SDL3", EntryPoint = "SetHapticAutocenter")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetHapticAutocenter(SDL_Haptic* haptic, int autocenter) => + DllImport.SetHapticAutocenter(haptic, autocenter); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetHapticAutocenter(Ref haptic, int autocenter) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).SetHapticAutocenter(__dsl_haptic, autocenter); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticAutocenter")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetHapticAutocenter(Ref haptic, int autocenter) => + DllImport.SetHapticAutocenter(haptic, autocenter); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetHapticGain(SDL_Haptic* haptic, int gain) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetHapticGain", "SDL3") + )(haptic, gain); + + [NativeFunction("SDL3", EntryPoint = "SetHapticGain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetHapticGain(SDL_Haptic* haptic, int gain) => + DllImport.SetHapticGain(haptic, gain); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetHapticGain(Ref haptic, int gain) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).SetHapticGain(__dsl_haptic, gain); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHapticGain")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetHapticGain(Ref haptic, int gain) => + DllImport.SetHapticGain(haptic, gain); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetHint( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => + ((delegate* unmanaged)nativeContext.LoadFunction("SetHint", "SDL3"))( + name, + value + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetHint( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => DllImport.SetHint(name, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetHint( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value + ) + { + fixed (sbyte* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool)(int)((ISdl)this).SetHint(__dsl_name, __dsl_value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHint")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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( + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value, + HintPriority priority + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetHintWithPriority", "SDL3") + )(name, value, priority); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetHintWithPriority")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("const char *")] Ref value, + HintPriority priority + ) + { + fixed (sbyte* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (MaybeBool) + (int)((ISdl)this).SetHintWithPriority(__dsl_name, __dsl_value, priority); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetHintWithPriority")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetJoystickEventsEnabled", "SDL3") + )(enabled); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickEventsEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] int enabled) => + DllImport.SetJoystickEventsEnabled(enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetJoystickEventsEnabled([NativeTypeName("SDL_bool")] MaybeBool enabled) => + ((ISdl)this).SetJoystickEventsEnabled((int)enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickEventsEnabled")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetJoystickEventsEnabled( + [NativeTypeName("SDL_bool")] MaybeBool enabled + ) => DllImport.SetJoystickEventsEnabled(enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickLED( + SDL_Joystick* joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetJoystickLED", "SDL3") + )(joystick, red, green, blue); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickLED")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickLED( + SDL_Joystick* joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => DllImport.SetJoystickLED(joystick, red, green, blue); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickLED( + Ref joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).SetJoystickLED(__dsl_joystick, red, green, blue); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickLED")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickLED( + Ref joystick, + [NativeTypeName("Uint8")] byte red, + [NativeTypeName("Uint8")] byte green, + [NativeTypeName("Uint8")] byte blue + ) => DllImport.SetJoystickLED(joystick, red, green, blue); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickPlayerIndex(SDL_Joystick* joystick, int player_index) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetJoystickPlayerIndex", "SDL3") + )(joystick, player_index); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickPlayerIndex(SDL_Joystick* joystick, int player_index) => + DllImport.SetJoystickPlayerIndex(joystick, player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickPlayerIndex(Ref joystick, int player_index) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).SetJoystickPlayerIndex(__dsl_joystick, player_index); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickPlayerIndex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickPlayerIndex(Ref joystick, int player_index) => + DllImport.SetJoystickPlayerIndex(joystick, player_index); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickVirtualAxis( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetJoystickVirtualAxis", "SDL3") + )(joystick, axis, value); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickVirtualAxis( + SDL_Joystick* joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => DllImport.SetJoystickVirtualAxis(joystick, axis, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickVirtualAxis( + Ref joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).SetJoystickVirtualAxis(__dsl_joystick, axis, value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualAxis")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickVirtualAxis( + Ref joystick, + int axis, + [NativeTypeName("Sint16")] short value + ) => DllImport.SetJoystickVirtualAxis(joystick, axis, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickVirtualButton( + SDL_Joystick* joystick, + int button, + [NativeTypeName("Uint8")] byte value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetJoystickVirtualButton", "SDL3") + )(joystick, button, value); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickVirtualButton( + SDL_Joystick* joystick, + int button, + [NativeTypeName("Uint8")] byte value + ) => DllImport.SetJoystickVirtualButton(joystick, button, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickVirtualButton( + Ref joystick, + int button, + [NativeTypeName("Uint8")] byte value + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).SetJoystickVirtualButton(__dsl_joystick, button, value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualButton")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickVirtualButton( + Ref joystick, + int button, + [NativeTypeName("Uint8")] byte value + ) => DllImport.SetJoystickVirtualButton(joystick, button, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickVirtualHat( + SDL_Joystick* joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetJoystickVirtualHat", "SDL3") + )(joystick, hat, value); + + [NativeFunction("SDL3", EntryPoint = "SetJoystickVirtualHat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickVirtualHat( + SDL_Joystick* joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => DllImport.SetJoystickVirtualHat(joystick, hat, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetJoystickVirtualHat( + Ref joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) + { + fixed (SDL_Joystick* __dsl_joystick = joystick) + { + return (int)((ISdl)this).SetJoystickVirtualHat(__dsl_joystick, hat, value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetJoystickVirtualHat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetJoystickVirtualHat( + Ref joystick, + int hat, + [NativeTypeName("Uint8")] byte value + ) => DllImport.SetJoystickVirtualHat(joystick, hat, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + void* userdata + ) => + ( + (delegate* unmanaged< + delegate* unmanaged, + void*, + void>) + nativeContext.LoadFunction("SetLogOutputFunction", "SDL3") + )(callback, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetLogOutputFunction")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + void* userdata + ) => DllImport.SetLogOutputFunction(callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).SetLogOutputFunction(callback, __dsl_userdata); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetLogOutputFunction")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetLogOutputFunction( + [NativeTypeName("SDL_LogOutputFunction")] + delegate* unmanaged callback, + Ref userdata + ) => DllImport.SetLogOutputFunction(callback, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.SetModState(Keymod modstate) => + ((delegate* unmanaged)nativeContext.LoadFunction("SetModState", "SDL3"))( + modstate + ); + + [NativeFunction("SDL3", EntryPoint = "SetModState")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void SetModState(Keymod modstate) => DllImport.SetModState(modstate); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetNumberProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("Sint64")] long value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetNumberProperty", "SDL3") + )(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetNumberProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + [NativeTypeName("Sint64")] long value + ) + { + fixed (sbyte* __dsl_name = name) + { + return (int)((ISdl)this).SetNumberProperty(props, __dsl_name, value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetNumberProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + Palette* palette, + [NativeTypeName("const SDL_Color *")] Color* colors, + int firstcolor, + int ncolors + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetPaletteColors", "SDL3") + )(palette, colors, firstcolor, ncolors); + + [NativeFunction("SDL3", EntryPoint = "SetPaletteColors")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetPaletteColors( + Palette* palette, + [NativeTypeName("const SDL_Color *")] Color* colors, + int firstcolor, + int ncolors + ) => DllImport.SetPaletteColors(palette, colors, firstcolor, ncolors); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetPaletteColors( + Ref palette, + [NativeTypeName("const SDL_Color *")] Ref colors, + int firstcolor, + int ncolors + ) + { + fixed (Color* __dsl_colors = colors) + fixed (Palette* __dsl_palette = palette) + { + return (int) + ((ISdl)this).SetPaletteColors(__dsl_palette, __dsl_colors, firstcolor, ncolors); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPaletteColors")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetPaletteColors( + Ref palette, + [NativeTypeName("const SDL_Color *")] Ref colors, + int firstcolor, + int ncolors + ) => DllImport.SetPaletteColors(palette, colors, firstcolor, ncolors); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetPixelFormatPalette(PixelFormat* format, Palette* palette) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetPixelFormatPalette", "SDL3") + )(format, palette); + + [NativeFunction("SDL3", EntryPoint = "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) + nativeContext.LoadFunction("SetPrimarySelectionText", "SDL3") + )(text); + + [NativeFunction("SDL3", EntryPoint = "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( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetProperty", "SDL3") + )(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value + ) => DllImport.SetProperty(props, name, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value + ) + { + fixed (void* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (int)((ISdl)this).SetProperty(props, __dsl_name, __dsl_value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value + ) => DllImport.SetProperty(props, name, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + void* userdata + ) => + ( + (delegate* unmanaged< + uint, + sbyte*, + void*, + delegate* unmanaged, + void*, + int>) + nativeContext.LoadFunction("SetPropertyWithCleanup", "SDL3") + )(props, name, value, cleanup, userdata); + + [NativeFunction("SDL3", EntryPoint = "SetPropertyWithCleanup")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + void* value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + void* userdata + ) => DllImport.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + Ref userdata + ) + { + fixed (void* __dsl_userdata = userdata) + fixed (void* __dsl_value = value) + fixed (sbyte* __dsl_name = name) + { + return (int) + ((ISdl)this).SetPropertyWithCleanup( + props, + __dsl_name, + __dsl_value, + cleanup, + __dsl_userdata + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetPropertyWithCleanup")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetPropertyWithCleanup( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] Ref name, + Ref value, + [NativeTypeName("void (*)(void *, void *)")] + delegate* unmanaged cleanup, + Ref userdata + ) => DllImport.SetPropertyWithCleanup(props, name, value, cleanup, userdata); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled) => + ((delegate* unmanaged)nativeContext.LoadFunction("SetRelativeMouseMode", "SDL3"))( + enabled + ); + + [NativeFunction("SDL3", EntryPoint = "SetRelativeMouseMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRelativeMouseMode([NativeTypeName("SDL_bool")] int enabled) => + DllImport.SetRelativeMouseMode(enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRelativeMouseMode([NativeTypeName("SDL_bool")] MaybeBool enabled) => + (int)((ISdl)this).SetRelativeMouseMode((int)enabled); + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRelativeMouseMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRelativeMouseMode([NativeTypeName("SDL_bool")] MaybeBool enabled) => + DllImport.SetRelativeMouseMode(enabled); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderClipRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetRenderClipRect", "SDL3") + )(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "SetRenderClipRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderClipRect( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => DllImport.SetRenderClipRect(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderClipRect( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).SetRenderClipRect(__dsl_renderer, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderClipRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderClipRect( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) => DllImport.SetRenderClipRect(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderColorScale(SDL_Renderer* renderer, float scale) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetRenderColorScale", "SDL3") + )(renderer, scale); + + [NativeFunction("SDL3", EntryPoint = "SetRenderColorScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderColorScale(SDL_Renderer* renderer, float scale) => + DllImport.SetRenderColorScale(renderer, scale); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderColorScale(Ref renderer, float scale) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).SetRenderColorScale(__dsl_renderer, scale); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderColorScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderColorScale(Ref renderer, float scale) => + DllImport.SetRenderColorScale(renderer, scale); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode blendMode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetRenderDrawBlendMode", "SDL3") + )(renderer, blendMode); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderDrawBlendMode(SDL_Renderer* renderer, BlendMode blendMode) => + DllImport.SetRenderDrawBlendMode(renderer, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderDrawBlendMode(Ref renderer, BlendMode blendMode) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).SetRenderDrawBlendMode(__dsl_renderer, blendMode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderDrawBlendMode(Ref renderer, BlendMode blendMode) => + DllImport.SetRenderDrawBlendMode(renderer, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetRenderDrawColor", "SDL3") + )(renderer, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderDrawColor( + SDL_Renderer* renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => DllImport.SetRenderDrawColor(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).SetRenderDrawColor(__dsl_renderer, r, g, b, a); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderDrawColor( + Ref renderer, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b, + [NativeTypeName("Uint8")] byte a + ) => DllImport.SetRenderDrawColor(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderDrawColorFloat(SDL_Renderer* renderer, float r, float g, float b, float a) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetRenderDrawColorFloat", "SDL3") + )(renderer, r, g, b, a); + + [NativeFunction("SDL3", EntryPoint = "SetRenderDrawColorFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderDrawColorFloat( + SDL_Renderer* renderer, + float r, + float g, + float b, + float a + ) => DllImport.SetRenderDrawColorFloat(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderDrawColorFloat(Ref renderer, float r, float g, float b, float a) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).SetRenderDrawColorFloat(__dsl_renderer, r, g, b, a); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderDrawColorFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderDrawColorFloat( + Ref renderer, + float r, + float g, + float b, + float a + ) => DllImport.SetRenderDrawColorFloat(renderer, r, g, b, a); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderLogicalPresentation( + SDL_Renderer* renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ) => + ( + (delegate* unmanaged< + SDL_Renderer*, + int, + int, + RendererLogicalPresentation, + ScaleMode, + int>) + nativeContext.LoadFunction("SetRenderLogicalPresentation", "SDL3") + )(renderer, w, h, mode, scale_mode); + + [NativeFunction("SDL3", EntryPoint = "SetRenderLogicalPresentation")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderLogicalPresentation( + SDL_Renderer* renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ) => DllImport.SetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderLogicalPresentation( + Ref renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int) + ((ISdl)this).SetRenderLogicalPresentation(__dsl_renderer, w, h, mode, scale_mode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderLogicalPresentation")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderLogicalPresentation( + Ref renderer, + int w, + int h, + RendererLogicalPresentation mode, + ScaleMode scale_mode + ) => DllImport.SetRenderLogicalPresentation(renderer, w, h, mode, scale_mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderScale(SDL_Renderer* renderer, float scaleX, float scaleY) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetRenderScale", "SDL3") + )(renderer, scaleX, scaleY); + + [NativeFunction("SDL3", EntryPoint = "SetRenderScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderScale(SDL_Renderer* renderer, float scaleX, float scaleY) => + DllImport.SetRenderScale(renderer, scaleX, scaleY); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderScale(Ref renderer, float scaleX, float scaleY) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).SetRenderScale(__dsl_renderer, scaleX, scaleY); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderScale")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderScale(Ref renderer, float scaleX, float scaleY) => + DllImport.SetRenderScale(renderer, scaleX, scaleY); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderTarget(SDL_Renderer* renderer, SDL_Texture* texture) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetRenderTarget", "SDL3") + )(renderer, texture); + + [NativeFunction("SDL3", EntryPoint = "SetRenderTarget")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderTarget(SDL_Renderer* renderer, SDL_Texture* texture) => + DllImport.SetRenderTarget(renderer, texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderTarget(Ref renderer, Ref texture) + { + fixed (SDL_Texture* __dsl_texture = texture) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).SetRenderTarget(__dsl_renderer, __dsl_texture); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderTarget")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderTarget(Ref renderer, Ref texture) => + DllImport.SetRenderTarget(renderer, texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderViewport( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetRenderViewport", "SDL3") + )(renderer, rect); + + [NativeFunction("SDL3", EntryPoint = "SetRenderViewport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderViewport( + SDL_Renderer* renderer, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => DllImport.SetRenderViewport(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderViewport( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).SetRenderViewport(__dsl_renderer, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderViewport")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderViewport( + Ref renderer, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) => DllImport.SetRenderViewport(renderer, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderVSync(SDL_Renderer* renderer, int vsync) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetRenderVSync", "SDL3") + )(renderer, vsync); + + [NativeFunction("SDL3", EntryPoint = "SetRenderVSync")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderVSync(SDL_Renderer* renderer, int vsync) => + DllImport.SetRenderVSync(renderer, vsync); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetRenderVSync(Ref renderer, int vsync) + { + fixed (SDL_Renderer* __dsl_renderer = renderer) + { + return (int)((ISdl)this).SetRenderVSync(__dsl_renderer, vsync); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetRenderVSync")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetRenderVSync(Ref renderer, int vsync) => + DllImport.SetRenderVSync(renderer, vsync); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetStringProperty( + [NativeTypeName("SDL_PropertiesID")] uint props, + [NativeTypeName("const char *")] sbyte* name, + [NativeTypeName("const char *")] sbyte* value + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetStringProperty", "SDL3") + )(props, name, value); + + [NativeFunction("SDL3", EntryPoint = "SetStringProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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( + [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)((ISdl)this).SetStringProperty(props, __dsl_name, __dsl_value); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetStringProperty")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetSurfaceAlphaMod", "SDL3") + )(surface, alpha); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceAlphaMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).SetSurfaceAlphaMod(__dsl_surface, alpha); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceAlphaMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceAlphaMod( + Ref surface, + [NativeTypeName("Uint8")] byte alpha + ) => DllImport.SetSurfaceAlphaMod(surface, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetSurfaceBlendMode", "SDL3") + )(surface, blendMode); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceBlendMode(Surface* surface, BlendMode blendMode) => + DllImport.SetSurfaceBlendMode(surface, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceBlendMode(Ref surface, BlendMode blendMode) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).SetSurfaceBlendMode(__dsl_surface, blendMode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceBlendMode(Ref surface, BlendMode blendMode) => + DllImport.SetSurfaceBlendMode(surface, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceClipRect( + Surface* surface, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetSurfaceClipRect", "SDL3") + )(surface, rect); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SetSurfaceClipRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceClipRect( + Surface* surface, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => DllImport.SetSurfaceClipRect(surface, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SetSurfaceClipRect( + Ref surface, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(int)((ISdl)this).SetSurfaceClipRect(__dsl_surface, __dsl_rect); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceClipRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + 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) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetSurfaceColorKey", "SDL3") + )(surface, flag, key); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorKey")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceColorKey( + Surface* surface, + int flag, + [NativeTypeName("Uint32")] uint key + ) => DllImport.SetSurfaceColorKey(surface, flag, key); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceColorKey(Ref surface, int flag, [NativeTypeName("Uint32")] uint key) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).SetSurfaceColorKey(__dsl_surface, flag, key); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorKey")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceColorKey( + Ref surface, + int flag, + [NativeTypeName("Uint32")] uint key + ) => DllImport.SetSurfaceColorKey(surface, flag, key); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetSurfaceColorMod", "SDL3") + )(surface, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceColorMod( + Surface* surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => DllImport.SetSurfaceColorMod(surface, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).SetSurfaceColorMod(__dsl_surface, r, g, b); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceColorMod( + Ref surface, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => DllImport.SetSurfaceColorMod(surface, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetSurfaceColorspace", "SDL3") + )(surface, colorspace); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceColorspace")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceColorspace(Surface* surface, Colorspace colorspace) => + DllImport.SetSurfaceColorspace(surface, colorspace); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceColorspace(Ref surface, Colorspace colorspace) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).SetSurfaceColorspace(__dsl_surface, colorspace); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceColorspace")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceColorspace(Ref surface, Colorspace colorspace) => + DllImport.SetSurfaceColorspace(surface, colorspace); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfacePalette(Surface* surface, Palette* palette) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetSurfacePalette", "SDL3") + )(surface, palette); + + [NativeFunction("SDL3", EntryPoint = "SetSurfacePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfacePalette(Surface* surface, Palette* palette) => + DllImport.SetSurfacePalette(surface, palette); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int 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); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfacePalette")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfacePalette(Ref surface, Ref palette) => + DllImport.SetSurfacePalette(surface, palette); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceRLE(Surface* surface, int flag) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetSurfaceRLE", "SDL3") + )(surface, flag); + + [NativeFunction("SDL3", EntryPoint = "SetSurfaceRLE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceRLE(Surface* surface, int flag) => + DllImport.SetSurfaceRLE(surface, flag); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetSurfaceRLE(Ref surface, int flag) + { + fixed (Surface* __dsl_surface = surface) + { + return (int)((ISdl)this).SetSurfaceRLE(__dsl_surface, flag); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetSurfaceRLE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetSurfaceRLE(Ref surface, int flag) => + DllImport.SetSurfaceRLE(surface, flag); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => + ((delegate* unmanaged)nativeContext.LoadFunction("SetTextInputRect", "SDL3"))( + rect + ); + + [NativeFunction("SDL3", EntryPoint = "SetTextInputRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Rect* rect) => + DllImport.SetTextInputRect(rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) + { + fixed (Rect* __dsl_rect = rect) + { + return (int)((ISdl)this).SetTextInputRect(__dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextInputRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextInputRect([NativeTypeName("const SDL_Rect *")] Ref rect) => + DllImport.SetTextInputRect(rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureAlphaMod(SDL_Texture* texture, [NativeTypeName("Uint8")] byte alpha) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetTextureAlphaMod", "SDL3") + )(texture, alpha); + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureAlphaMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte alpha + ) => DllImport.SetTextureAlphaMod(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureAlphaMod(Ref texture, [NativeTypeName("Uint8")] byte alpha) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).SetTextureAlphaMod(__dsl_texture, alpha); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureAlphaMod( + Ref texture, + [NativeTypeName("Uint8")] byte alpha + ) => DllImport.SetTextureAlphaMod(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureAlphaModFloat(SDL_Texture* texture, float alpha) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetTextureAlphaModFloat", "SDL3") + )(texture, alpha); + + [NativeFunction("SDL3", EntryPoint = "SetTextureAlphaModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureAlphaModFloat(SDL_Texture* texture, float alpha) => + DllImport.SetTextureAlphaModFloat(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureAlphaModFloat(Ref texture, float alpha) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).SetTextureAlphaModFloat(__dsl_texture, alpha); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureAlphaModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureAlphaModFloat(Ref texture, float alpha) => + DllImport.SetTextureAlphaModFloat(texture, alpha); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureBlendMode(SDL_Texture* texture, BlendMode blendMode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetTextureBlendMode", "SDL3") + )(texture, blendMode); + + [NativeFunction("SDL3", EntryPoint = "SetTextureBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureBlendMode(SDL_Texture* texture, BlendMode blendMode) => + DllImport.SetTextureBlendMode(texture, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureBlendMode(Ref texture, BlendMode blendMode) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).SetTextureBlendMode(__dsl_texture, blendMode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureBlendMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureBlendMode(Ref texture, BlendMode blendMode) => + DllImport.SetTextureBlendMode(texture, blendMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureColorMod( + SDL_Texture* texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetTextureColorMod", "SDL3") + )(texture, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureColorMod( + SDL_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.SetTextureColorMod( + Ref texture, + [NativeTypeName("Uint8")] byte r, + [NativeTypeName("Uint8")] byte g, + [NativeTypeName("Uint8")] byte b + ) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).SetTextureColorMod(__dsl_texture, r, g, b); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorMod")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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)] + int ISdl.SetTextureColorModFloat(SDL_Texture* texture, float r, float g, float b) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetTextureColorModFloat", "SDL3") + )(texture, r, g, b); + + [NativeFunction("SDL3", EntryPoint = "SetTextureColorModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureColorModFloat(SDL_Texture* texture, float r, float g, float b) => + DllImport.SetTextureColorModFloat(texture, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureColorModFloat(Ref texture, float r, float g, float b) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).SetTextureColorModFloat(__dsl_texture, r, g, b); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureColorModFloat")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureColorModFloat( + Ref texture, + float r, + float g, + float b + ) => DllImport.SetTextureColorModFloat(texture, r, g, b); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureScaleMode(SDL_Texture* texture, ScaleMode scaleMode) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetTextureScaleMode", "SDL3") + )(texture, scaleMode); + + [NativeFunction("SDL3", EntryPoint = "SetTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureScaleMode(SDL_Texture* texture, ScaleMode scaleMode) => + DllImport.SetTextureScaleMode(texture, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTextureScaleMode(Ref texture, ScaleMode scaleMode) + { + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).SetTextureScaleMode(__dsl_texture, scaleMode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTextureScaleMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTextureScaleMode(Ref texture, ScaleMode scaleMode) => + DllImport.SetTextureScaleMode(texture, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetThreadPriority(ThreadPriority priority) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetThreadPriority", "SDL3") + )(priority); + + [NativeFunction("SDL3", EntryPoint = "SetThreadPriority")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetThreadPriority(ThreadPriority priority) => + DllImport.SetThreadPriority(priority); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] void* value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ) => + ( + (delegate* unmanaged, int>) + nativeContext.LoadFunction("SetTLS", "SDL3") + )(id, value, destructor); + + [NativeFunction("SDL3", EntryPoint = "SetTLS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] void* value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ) => DllImport.SetTLS(id, value, destructor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] Ref value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ) + { + fixed (void* __dsl_value = value) + { + return (int)((ISdl)this).SetTLS(id, __dsl_value, destructor); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetTLS")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetTLS( + [NativeTypeName("SDL_TLSID")] uint id, + [NativeTypeName("const void *")] Ref value, + [NativeTypeName("void (*)(void *)")] delegate* unmanaged destructor + ) => DllImport.SetTLS(id, value, destructor); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowAlwaysOnTop(SDL_Window* window, [NativeTypeName("SDL_bool")] int on_top) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowAlwaysOnTop", "SDL3") + )(window, on_top); + + [NativeFunction("SDL3", EntryPoint = "SetWindowAlwaysOnTop")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowAlwaysOnTop( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int on_top + ) => DllImport.SetWindowAlwaysOnTop(window, on_top); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowAlwaysOnTop( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool on_top + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowAlwaysOnTop(__dsl_window, (int)on_top); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowAlwaysOnTop")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowAlwaysOnTop( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool on_top + ) => DllImport.SetWindowAlwaysOnTop(window, on_top); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowBordered(SDL_Window* window, [NativeTypeName("SDL_bool")] int bordered) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowBordered", "SDL3") + )(window, bordered); + + [NativeFunction("SDL3", EntryPoint = "SetWindowBordered")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowBordered( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int bordered + ) => DllImport.SetWindowBordered(window, bordered); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowBordered( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool bordered + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowBordered(__dsl_window, (int)bordered); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowBordered")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowBordered( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool bordered + ) => DllImport.SetWindowBordered(window, bordered); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowFocusable(SDL_Window* window, [NativeTypeName("SDL_bool")] int focusable) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowFocusable", "SDL3") + )(window, focusable); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFocusable")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowFocusable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int focusable + ) => DllImport.SetWindowFocusable(window, focusable); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowFocusable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool focusable + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowFocusable(__dsl_window, (int)focusable); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFocusable")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowFocusable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool focusable + ) => DllImport.SetWindowFocusable(window, focusable); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowFullscreen(SDL_Window* window, [NativeTypeName("SDL_bool")] int fullscreen) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowFullscreen", "SDL3") + )(window, fullscreen); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreen")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowFullscreen( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int fullscreen + ) => DllImport.SetWindowFullscreen(window, fullscreen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowFullscreen( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool fullscreen + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowFullscreen(__dsl_window, (int)fullscreen); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreen")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowFullscreen( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool fullscreen + ) => DllImport.SetWindowFullscreen(window, fullscreen); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowFullscreenMode( + SDL_Window* window, + [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowFullscreenMode", "SDL3") + )(window, mode); + + [NativeFunction("SDL3", EntryPoint = "SetWindowFullscreenMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowFullscreenMode( + SDL_Window* window, + [NativeTypeName("const SDL_DisplayMode *")] DisplayMode* mode + ) => DllImport.SetWindowFullscreenMode(window, mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowFullscreenMode( + Ref window, + [NativeTypeName("const SDL_DisplayMode *")] Ref mode + ) + { + fixed (DisplayMode* __dsl_mode = mode) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowFullscreenMode(__dsl_window, __dsl_mode); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowFullscreenMode")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowFullscreenMode( + Ref window, + [NativeTypeName("const SDL_DisplayMode *")] Ref mode + ) => DllImport.SetWindowFullscreenMode(window, mode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowHitTest( + SDL_Window* window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + void* callback_data + ) => + ( + (delegate* unmanaged< + SDL_Window*, + delegate* unmanaged, + void*, + int>) + nativeContext.LoadFunction("SetWindowHitTest", "SDL3") + )(window, callback, callback_data); + + [NativeFunction("SDL3", EntryPoint = "SetWindowHitTest")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowHitTest( + SDL_Window* window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + void* callback_data + ) => DllImport.SetWindowHitTest(window, callback, callback_data); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowHitTest( + Ref window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + Ref callback_data + ) + { + fixed (void* __dsl_callback_data = callback_data) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowHitTest(__dsl_window, callback, __dsl_callback_data); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowHitTest")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowHitTest( + Ref window, + [NativeTypeName("SDL_HitTest")] + delegate* unmanaged callback, + Ref callback_data + ) => DllImport.SetWindowHitTest(window, callback, callback_data); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowIcon(SDL_Window* window, Surface* icon) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowIcon", "SDL3") + )(window, icon); + + [NativeFunction("SDL3", EntryPoint = "SetWindowIcon")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowIcon(SDL_Window* window, Surface* icon) => + DllImport.SetWindowIcon(window, icon); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowIcon(Ref window, Ref icon) + { + fixed (Surface* __dsl_icon = icon) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowIcon(__dsl_window, __dsl_icon); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowIcon")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowIcon(Ref window, Ref icon) => + DllImport.SetWindowIcon(window, icon); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowInputFocus(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowInputFocus", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "SetWindowInputFocus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowInputFocus(SDL_Window* window) => + DllImport.SetWindowInputFocus(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowInputFocus(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowInputFocus(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowInputFocus")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowInputFocus(Ref window) => + DllImport.SetWindowInputFocus(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowKeyboardGrab(SDL_Window* window, [NativeTypeName("SDL_bool")] int grabbed) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowKeyboardGrab", "SDL3") + )(window, grabbed); + + [NativeFunction("SDL3", EntryPoint = "SetWindowKeyboardGrab")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowKeyboardGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ) => DllImport.SetWindowKeyboardGrab(window, grabbed); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowKeyboardGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowKeyboardGrab(__dsl_window, (int)grabbed); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowKeyboardGrab")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowKeyboardGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) => DllImport.SetWindowKeyboardGrab(window, grabbed); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowMaximumSize(SDL_Window* window, int max_w, int max_h) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowMaximumSize", "SDL3") + )(window, max_w, max_h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMaximumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowMaximumSize(SDL_Window* window, int max_w, int max_h) => + DllImport.SetWindowMaximumSize(window, max_w, max_h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowMaximumSize(Ref window, int max_w, int max_h) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowMaximumSize(__dsl_window, max_w, max_h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMaximumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowMaximumSize(Ref window, int max_w, int max_h) => + DllImport.SetWindowMaximumSize(window, max_w, max_h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowMinimumSize(SDL_Window* window, int min_w, int min_h) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowMinimumSize", "SDL3") + )(window, min_w, min_h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMinimumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowMinimumSize(SDL_Window* window, int min_w, int min_h) => + DllImport.SetWindowMinimumSize(window, min_w, min_h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowMinimumSize(Ref window, int min_w, int min_h) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowMinimumSize(__dsl_window, min_w, min_h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMinimumSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowMinimumSize(Ref window, int min_w, int min_h) => + DllImport.SetWindowMinimumSize(window, min_w, min_h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowModalFor(SDL_Window* modal_window, SDL_Window* parent_window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowModalFor", "SDL3") + )(modal_window, parent_window); + + [NativeFunction("SDL3", EntryPoint = "SetWindowModalFor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowModalFor(SDL_Window* modal_window, SDL_Window* parent_window) => + DllImport.SetWindowModalFor(modal_window, parent_window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowModalFor(Ref modal_window, Ref parent_window) + { + fixed (SDL_Window* __dsl_parent_window = parent_window) + fixed (SDL_Window* __dsl_modal_window = modal_window) + { + return (int)((ISdl)this).SetWindowModalFor(__dsl_modal_window, __dsl_parent_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowModalFor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowModalFor( + Ref modal_window, + Ref parent_window + ) => DllImport.SetWindowModalFor(modal_window, parent_window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowMouseGrab(SDL_Window* window, [NativeTypeName("SDL_bool")] int grabbed) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowMouseGrab", "SDL3") + )(window, grabbed); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseGrab")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowMouseGrab( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int grabbed + ) => DllImport.SetWindowMouseGrab(window, grabbed); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowMouseGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowMouseGrab(__dsl_window, (int)grabbed); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseGrab")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowMouseGrab( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool grabbed + ) => DllImport.SetWindowMouseGrab(window, grabbed); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowMouseRect( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowMouseRect", "SDL3") + )(window, rect); + + [NativeFunction("SDL3", EntryPoint = "SetWindowMouseRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowMouseRect( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rect + ) => DllImport.SetWindowMouseRect(window, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowMouseRect( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) + { + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowMouseRect(__dsl_window, __dsl_rect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowMouseRect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowMouseRect( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rect + ) => DllImport.SetWindowMouseRect(window, rect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowOpacity(SDL_Window* window, float opacity) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowOpacity", "SDL3") + )(window, opacity); + + [NativeFunction("SDL3", EntryPoint = "SetWindowOpacity")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowOpacity(SDL_Window* window, float opacity) => + DllImport.SetWindowOpacity(window, opacity); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowOpacity(Ref window, float opacity) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowOpacity(__dsl_window, opacity); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowOpacity")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowOpacity(Ref window, float opacity) => + DllImport.SetWindowOpacity(window, opacity); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowPosition(SDL_Window* window, int x, int y) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowPosition", "SDL3") + )(window, x, y); + + [NativeFunction("SDL3", EntryPoint = "SetWindowPosition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowPosition(SDL_Window* window, int x, int y) => + DllImport.SetWindowPosition(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowPosition(Ref window, int x, int y) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowPosition(__dsl_window, x, y); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowPosition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowPosition(Ref window, int x, int y) => + DllImport.SetWindowPosition(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowResizable(SDL_Window* window, [NativeTypeName("SDL_bool")] int resizable) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowResizable", "SDL3") + )(window, resizable); + + [NativeFunction("SDL3", EntryPoint = "SetWindowResizable")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowResizable( + SDL_Window* window, + [NativeTypeName("SDL_bool")] int resizable + ) => DllImport.SetWindowResizable(window, resizable); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowResizable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool resizable + ) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowResizable(__dsl_window, (int)resizable); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowResizable")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowResizable( + Ref window, + [NativeTypeName("SDL_bool")] MaybeBool resizable + ) => DllImport.SetWindowResizable(window, resizable); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowShape(SDL_Window* window, Surface* shape) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowShape", "SDL3") + )(window, shape); + + [NativeFunction("SDL3", EntryPoint = "SetWindowShape")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowShape(SDL_Window* window, Surface* shape) => + DllImport.SetWindowShape(window, shape); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowShape(Ref window, Ref shape) + { + fixed (Surface* __dsl_shape = shape) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowShape(__dsl_window, __dsl_shape); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowShape")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowShape(Ref window, Ref shape) => + DllImport.SetWindowShape(window, shape); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowSize(SDL_Window* window, int w, int h) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowSize", "SDL3") + )(window, w, h); + + [NativeFunction("SDL3", EntryPoint = "SetWindowSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowSize(SDL_Window* window, int w, int h) => + DllImport.SetWindowSize(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowSize(Ref window, int w, int h) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowSize(__dsl_window, w, h); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowSize")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowSize(Ref window, int w, int h) => + DllImport.SetWindowSize(window, w, h); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowTitle(SDL_Window* window, [NativeTypeName("const char *")] sbyte* title) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SetWindowTitle", "SDL3") + )(window, title); + + [NativeFunction("SDL3", EntryPoint = "SetWindowTitle")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowTitle( + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* title + ) => DllImport.SetWindowTitle(window, title); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SetWindowTitle( + Ref window, + [NativeTypeName("const char *")] Ref title + ) + { + fixed (sbyte* __dsl_title = title) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SetWindowTitle(__dsl_window, __dsl_title); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SetWindowTitle")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SetWindowTitle( + Ref window, + [NativeTypeName("const char *")] Ref title + ) => DllImport.SetWindowTitle(window, title); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ShowCursor() => + ((delegate* unmanaged)nativeContext.LoadFunction("ShowCursor", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "ShowCursor")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ShowCursor() => DllImport.ShowCursor(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, + int* buttonid + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ShowMessageBox", "SDL3") + )(messageboxdata, buttonid); + + [NativeFunction("SDL3", EntryPoint = "ShowMessageBox")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] MessageBoxData* messageboxdata, + int* buttonid + ) => DllImport.ShowMessageBox(messageboxdata, buttonid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, + Ref buttonid + ) + { + fixed (int* __dsl_buttonid = buttonid) + fixed (MessageBoxData* __dsl_messageboxdata = messageboxdata) + { + return (int)((ISdl)this).ShowMessageBox(__dsl_messageboxdata, __dsl_buttonid); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowMessageBox")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ShowMessageBox( + [NativeTypeName("const SDL_MessageBoxData *")] Ref messageboxdata, + Ref buttonid + ) => DllImport.ShowMessageBox(messageboxdata, buttonid); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ) => + ( + (delegate* unmanaged< + delegate* unmanaged, + void*, + SDL_Window*, + DialogFileFilter*, + sbyte*, + int, + void>) + nativeContext.LoadFunction("ShowOpenFileDialog", "SDL3") + )(callback, userdata, window, filters, default_location, allow_many); + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFileDialog")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ) => + DllImport.ShowOpenFileDialog( + callback, + userdata, + window, + filters, + default_location, + allow_many + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) + { + fixed (sbyte* __dsl_default_location = default_location) + fixed (DialogFileFilter* __dsl_filters = filters) + fixed (SDL_Window* __dsl_window = window) + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).ShowOpenFileDialog( + callback, + __dsl_userdata, + __dsl_window, + __dsl_filters, + __dsl_default_location, + (int)allow_many + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFileDialog")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ShowOpenFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) => + DllImport.ShowOpenFileDialog( + callback, + userdata, + window, + filters, + default_location, + allow_many + ); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ) => + ( + (delegate* unmanaged< + delegate* unmanaged, + void*, + SDL_Window*, + sbyte*, + int, + void>) + nativeContext.LoadFunction("ShowOpenFolderDialog", "SDL3") + )(callback, userdata, window, default_location, allow_many); + + [NativeFunction("SDL3", EntryPoint = "ShowOpenFolderDialog")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const char *")] sbyte* default_location, + [NativeTypeName("SDL_bool")] int allow_many + ) => DllImport.ShowOpenFolderDialog(callback, userdata, window, default_location, allow_many); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) + { + fixed (sbyte* __dsl_default_location = default_location) + fixed (SDL_Window* __dsl_window = window) + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).ShowOpenFolderDialog( + callback, + __dsl_userdata, + __dsl_window, + __dsl_default_location, + (int)allow_many + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowOpenFolderDialog")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ShowOpenFolderDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const char *")] Ref default_location, + [NativeTypeName("SDL_bool")] MaybeBool allow_many + ) => DllImport.ShowOpenFolderDialog(callback, userdata, window, default_location, allow_many); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location + ) => + ( + (delegate* unmanaged< + delegate* unmanaged, + void*, + SDL_Window*, + DialogFileFilter*, + sbyte*, + void>) + nativeContext.LoadFunction("ShowSaveFileDialog", "SDL3") + )(callback, userdata, window, filters, default_location); + + [NativeFunction("SDL3", EntryPoint = "ShowSaveFileDialog")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + void* userdata, + SDL_Window* window, + [NativeTypeName("const SDL_DialogFileFilter *")] DialogFileFilter* filters, + [NativeTypeName("const char *")] sbyte* default_location + ) => DllImport.ShowSaveFileDialog(callback, userdata, window, filters, default_location); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location + ) + { + fixed (sbyte* __dsl_default_location = default_location) + fixed (DialogFileFilter* __dsl_filters = filters) + fixed (SDL_Window* __dsl_window = window) + fixed (void* __dsl_userdata = userdata) + { + ((ISdl)this).ShowSaveFileDialog( + callback, + __dsl_userdata, + __dsl_window, + __dsl_filters, + __dsl_default_location + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSaveFileDialog")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void ShowSaveFileDialog( + [NativeTypeName("SDL_DialogFileCallback")] + delegate* unmanaged callback, + Ref userdata, + Ref window, + [NativeTypeName("const SDL_DialogFileFilter *")] Ref filters, + [NativeTypeName("const char *")] Ref default_location + ) => DllImport.ShowSaveFileDialog(callback, userdata, window, filters, default_location); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] sbyte* title, + [NativeTypeName("const char *")] sbyte* message, + SDL_Window* window + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ShowSimpleMessageBox", "SDL3") + )(flags, title, message, window); + + [NativeFunction("SDL3", EntryPoint = "ShowSimpleMessageBox")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] sbyte* title, + [NativeTypeName("const char *")] sbyte* message, + SDL_Window* window + ) => DllImport.ShowSimpleMessageBox(flags, title, message, window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] Ref title, + [NativeTypeName("const char *")] Ref message, + Ref window + ) + { + fixed (SDL_Window* __dsl_window = window) + fixed (sbyte* __dsl_message = message) + fixed (sbyte* __dsl_title = title) + { + return (int) + ((ISdl)this).ShowSimpleMessageBox(flags, __dsl_title, __dsl_message, __dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowSimpleMessageBox")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ShowSimpleMessageBox( + [NativeTypeName("Uint32")] uint flags, + [NativeTypeName("const char *")] Ref title, + [NativeTypeName("const char *")] Ref message, + Ref window + ) => DllImport.ShowSimpleMessageBox(flags, title, message, window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ShowWindow(SDL_Window* window) => + ((delegate* unmanaged)nativeContext.LoadFunction("ShowWindow", "SDL3"))( + window + ); + + [NativeFunction("SDL3", EntryPoint = "ShowWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ShowWindow(SDL_Window* window) => DllImport.ShowWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ShowWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).ShowWindow(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ShowWindow(Ref window) => DllImport.ShowWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ShowWindowSystemMenu(SDL_Window* window, int x, int y) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("ShowWindowSystemMenu", "SDL3") + )(window, x, y); + + [NativeFunction("SDL3", EntryPoint = "ShowWindowSystemMenu")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ShowWindowSystemMenu(SDL_Window* window, int x, int y) => + DllImport.ShowWindowSystemMenu(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.ShowWindowSystemMenu(Ref window, int x, int y) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).ShowWindowSystemMenu(__dsl_window, x, y); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_ShowWindowSystemMenu")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int ShowWindowSystemMenu(Ref window, int x, int y) => + DllImport.ShowWindowSystemMenu(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SignalCondition(SDL_Condition* cond) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SignalCondition", "SDL3") + )(cond); + + [NativeFunction("SDL3", EntryPoint = "SignalCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SignalCondition(SDL_Condition* cond) => DllImport.SignalCondition(cond); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SignalCondition(Ref cond) + { + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)((ISdl)this).SignalCondition(__dsl_cond); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SignalCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SignalCondition(Ref cond) => DllImport.SignalCondition(cond); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + nuint ISdl.SimdGetAlignment() => + ((delegate* unmanaged)nativeContext.LoadFunction("SimdGetAlignment", "SDL3"))(); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "SimdGetAlignment")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nuint SimdGetAlignment() => DllImport.SimdGetAlignment(); + + [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 + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SoftStretch", "SDL3") + )(src, srcrect, dst, dstrect, scaleMode); + + [NativeFunction("SDL3", EntryPoint = "SoftStretch")] + [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); + + [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 + ); + } + } + + [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 + ) => DllImport.SoftStretch(src, srcrect, dst, dstrect, scaleMode); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.StartTextInput() => + ((delegate* unmanaged)nativeContext.LoadFunction("StartTextInput", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "StartTextInput")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void StartTextInput() => DllImport.StartTextInput(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.StopHapticEffect(SDL_Haptic* haptic, int effect) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("StopHapticEffect", "SDL3") + )(haptic, effect); + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int StopHapticEffect(SDL_Haptic* haptic, int effect) => + DllImport.StopHapticEffect(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.StopHapticEffect(Ref haptic, int effect) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).StopHapticEffect(__dsl_haptic, effect); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int StopHapticEffect(Ref haptic, int effect) => + DllImport.StopHapticEffect(haptic, effect); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.StopHapticEffects(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("StopHapticEffects", "SDL3") + )(haptic); + + [NativeFunction("SDL3", EntryPoint = "StopHapticEffects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int StopHapticEffects(SDL_Haptic* haptic) => DllImport.StopHapticEffects(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.StopHapticEffects(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).StopHapticEffects(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticEffects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int StopHapticEffects(Ref haptic) => + DllImport.StopHapticEffects(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.StopHapticRumble(SDL_Haptic* haptic) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("StopHapticRumble", "SDL3") + )(haptic); + + [NativeFunction("SDL3", EntryPoint = "StopHapticRumble")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int StopHapticRumble(SDL_Haptic* haptic) => DllImport.StopHapticRumble(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.StopHapticRumble(Ref haptic) + { + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).StopHapticRumble(__dsl_haptic); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StopHapticRumble")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int StopHapticRumble(Ref haptic) => + DllImport.StopHapticRumble(haptic); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.StopTextInput() => + ((delegate* unmanaged)nativeContext.LoadFunction("StopTextInput", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "StopTextInput")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void StopTextInput() => DllImport.StopTextInput(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.StorageReady(SDL_Storage* storage) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("StorageReady", "SDL3") + )(storage); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "StorageReady")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int StorageReady(SDL_Storage* storage) => DllImport.StorageReady(storage); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.StorageReady(Ref storage) + { + fixed (SDL_Storage* __dsl_storage = storage) + { + return (MaybeBool)(int)((ISdl)this).StorageReady(__dsl_storage); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_StorageReady")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool StorageReady(Ref storage) => + DllImport.StorageReady(storage); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SurfaceHasColorKey(Surface* surface) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("SurfaceHasColorKey", "SDL3") + )(surface); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasColorKey")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SurfaceHasColorKey(Surface* surface) => DllImport.SurfaceHasColorKey(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SurfaceHasColorKey(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(int)((ISdl)this).SurfaceHasColorKey(__dsl_surface); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasColorKey")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SurfaceHasColorKey(Ref surface) => + DllImport.SurfaceHasColorKey(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SurfaceHasRLE(Surface* surface) => + ((delegate* unmanaged)nativeContext.LoadFunction("SurfaceHasRLE", "SDL3"))( + surface + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SurfaceHasRLE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SurfaceHasRLE(Surface* surface) => DllImport.SurfaceHasRLE(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.SurfaceHasRLE(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + return (MaybeBool)(int)((ISdl)this).SurfaceHasRLE(__dsl_surface); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SurfaceHasRLE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool SurfaceHasRLE(Ref surface) => + DllImport.SurfaceHasRLE(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SyncWindow(SDL_Window* window) => + ((delegate* unmanaged)nativeContext.LoadFunction("SyncWindow", "SDL3"))( + window + ); + + [NativeFunction("SDL3", EntryPoint = "SyncWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SyncWindow(SDL_Window* window) => DllImport.SyncWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.SyncWindow(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).SyncWindow(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_SyncWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int SyncWindow(Ref window) => DllImport.SyncWindow(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + long ISdl.TellIO(SDL_IOStream* context) => + ((delegate* unmanaged)nativeContext.LoadFunction("TellIO", "SDL3"))( + context + ); + + [return: NativeTypeName("Sint64")] + [NativeFunction("SDL3", EntryPoint = "TellIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static long TellIO(SDL_IOStream* context) => DllImport.TellIO(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + long ISdl.TellIO(Ref context) + { + fixed (SDL_IOStream* __dsl_context = context) + { + return (long)((ISdl)this).TellIO(__dsl_context); + } + } + + [return: NativeTypeName("Sint64")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TellIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static long TellIO(Ref context) => DllImport.TellIO(context); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.TextInputActive() => (MaybeBool)(int)((ISdl)this).TextInputActiveRaw(); + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool TextInputActive() => DllImport.TextInputActive(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TextInputActiveRaw() => + ((delegate* unmanaged)nativeContext.LoadFunction("SDL_TextInputActive", "SDL3"))(); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "SDL_TextInputActive")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TextInputActiveRaw() => DllImport.TextInputActiveRaw(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + long ISdl.TimeFromWindows( + [NativeTypeName("Uint32")] uint dwLowDateTime, + [NativeTypeName("Uint32")] uint dwHighDateTime + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("TimeFromWindows", "SDL3") + )(dwLowDateTime, dwHighDateTime); + + [return: NativeTypeName("SDL_Time")] + [NativeFunction("SDL3", EntryPoint = "TimeFromWindows")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static long TimeFromWindows( + [NativeTypeName("Uint32")] uint dwLowDateTime, + [NativeTypeName("Uint32")] uint dwHighDateTime + ) => DllImport.TimeFromWindows(dwLowDateTime, dwHighDateTime); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + DateTime* dt, + [NativeTypeName("SDL_bool")] int localTime + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("TimeToDateTime", "SDL3") + )(ticks, dt, localTime); + + [NativeFunction("SDL3", EntryPoint = "TimeToDateTime")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + DateTime* dt, + [NativeTypeName("SDL_bool")] int localTime + ) => DllImport.TimeToDateTime(ticks, dt, localTime); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + Ref dt, + [NativeTypeName("SDL_bool")] MaybeBool localTime + ) + { + fixed (DateTime* __dsl_dt = dt) + { + return (int)((ISdl)this).TimeToDateTime(ticks, __dsl_dt, (int)localTime); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToDateTime")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TimeToDateTime( + [NativeTypeName("SDL_Time")] long ticks, + Ref dt, + [NativeTypeName("SDL_bool")] MaybeBool localTime + ) => DllImport.TimeToDateTime(ticks, dt, localTime); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] uint* dwLowDateTime, + [NativeTypeName("Uint32 *")] uint* dwHighDateTime + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("TimeToWindows", "SDL3") + )(ticks, dwLowDateTime, dwHighDateTime); + + [NativeFunction("SDL3", EntryPoint = "TimeToWindows")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] uint* dwLowDateTime, + [NativeTypeName("Uint32 *")] uint* dwHighDateTime + ) => DllImport.TimeToWindows(ticks, dwLowDateTime, dwHighDateTime); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] Ref dwLowDateTime, + [NativeTypeName("Uint32 *")] Ref dwHighDateTime + ) + { + fixed (uint* __dsl_dwHighDateTime = dwHighDateTime) + fixed (uint* __dsl_dwLowDateTime = dwLowDateTime) + { + ((ISdl)this).TimeToWindows(ticks, __dsl_dwLowDateTime, __dsl_dwHighDateTime); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TimeToWindows")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void TimeToWindows( + [NativeTypeName("SDL_Time")] long ticks, + [NativeTypeName("Uint32 *")] Ref dwLowDateTime, + [NativeTypeName("Uint32 *")] Ref dwHighDateTime + ) => DllImport.TimeToWindows(ticks, dwLowDateTime, dwHighDateTime); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TryLockMutex(SDL_Mutex* mutex) => + ((delegate* unmanaged)nativeContext.LoadFunction("TryLockMutex", "SDL3"))( + mutex + ); + + [NativeFunction("SDL3", EntryPoint = "TryLockMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TryLockMutex(SDL_Mutex* mutex) => DllImport.TryLockMutex(mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TryLockMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + return (int)((ISdl)this).TryLockMutex(__dsl_mutex); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TryLockMutex(Ref mutex) => DllImport.TryLockMutex(mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TryLockRWLockForReading(SDL_RWLock* rwlock) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("TryLockRWLockForReading", "SDL3") + )(rwlock); + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForReading")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TryLockRWLockForReading(SDL_RWLock* rwlock) => + DllImport.TryLockRWLockForReading(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TryLockRWLockForReading(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + return (int)((ISdl)this).TryLockRWLockForReading(__dsl_rwlock); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForReading")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TryLockRWLockForReading(Ref rwlock) => + DllImport.TryLockRWLockForReading(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TryLockRWLockForWriting(SDL_RWLock* rwlock) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("TryLockRWLockForWriting", "SDL3") + )(rwlock); + + [NativeFunction("SDL3", EntryPoint = "TryLockRWLockForWriting")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TryLockRWLockForWriting(SDL_RWLock* rwlock) => + DllImport.TryLockRWLockForWriting(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TryLockRWLockForWriting(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + return (int)((ISdl)this).TryLockRWLockForWriting(__dsl_rwlock); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockRWLockForWriting")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TryLockRWLockForWriting(Ref rwlock) => + DllImport.TryLockRWLockForWriting(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + ((delegate* unmanaged)nativeContext.LoadFunction("TryLockSpinlock", "SDL3"))( + @lock + ); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "TryLockSpinlock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + DllImport.TryLockSpinlock(@lock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.TryLockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) + { + fixed (int* __dsl_lock = @lock) + { + return (MaybeBool)(int)((ISdl)this).TryLockSpinlock(__dsl_lock); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryLockSpinlock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool TryLockSpinlock( + [NativeTypeName("SDL_SpinLock *")] Ref @lock + ) => DllImport.TryLockSpinlock(@lock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TryWaitSemaphore(SDL_Semaphore* sem) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("TryWaitSemaphore", "SDL3") + )(sem); + + [NativeFunction("SDL3", EntryPoint = "TryWaitSemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TryWaitSemaphore(SDL_Semaphore* sem) => DllImport.TryWaitSemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.TryWaitSemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)((ISdl)this).TryWaitSemaphore(__dsl_sem); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_TryWaitSemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int TryWaitSemaphore(Ref sem) => DllImport.TryWaitSemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnbindAudioStream(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UnbindAudioStream", "SDL3") + )(stream); + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnbindAudioStream(SDL_AudioStream* stream) => + DllImport.UnbindAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnbindAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + ((ISdl)this).UnbindAudioStream(__dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnbindAudioStream(Ref stream) => + DllImport.UnbindAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnbindAudioStreams(SDL_AudioStream** streams, int num_streams) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UnbindAudioStreams", "SDL3") + )(streams, num_streams); + + [NativeFunction("SDL3", EntryPoint = "UnbindAudioStreams")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnbindAudioStreams(SDL_AudioStream** streams, int num_streams) => + DllImport.UnbindAudioStreams(streams, num_streams); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnbindAudioStreams(Ref2D streams, int num_streams) + { + fixed (SDL_AudioStream** __dsl_streams = streams) + { + ((ISdl)this).UnbindAudioStreams(__dsl_streams, num_streams); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnbindAudioStreams")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnbindAudioStreams(Ref2D streams, int num_streams) => + DllImport.UnbindAudioStreams(streams, num_streams); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnloadObject(void* handle) => + ((delegate* unmanaged)nativeContext.LoadFunction("UnloadObject", "SDL3"))( + handle + ); + + [NativeFunction("SDL3", EntryPoint = "UnloadObject")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnloadObject(void* handle) => DllImport.UnloadObject(handle); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnloadObject(Ref handle) + { + fixed (void* __dsl_handle = handle) + { + ((ISdl)this).UnloadObject(__dsl_handle); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnloadObject")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnloadObject(Ref handle) => DllImport.UnloadObject(handle); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UnlockAudioStream(SDL_AudioStream* stream) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UnlockAudioStream", "SDL3") + )(stream); + + [NativeFunction("SDL3", EntryPoint = "UnlockAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UnlockAudioStream(SDL_AudioStream* stream) => + DllImport.UnlockAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UnlockAudioStream(Ref stream) + { + fixed (SDL_AudioStream* __dsl_stream = stream) + { + return (int)((ISdl)this).UnlockAudioStream(__dsl_stream); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockAudioStream")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UnlockAudioStream(Ref stream) => + DllImport.UnlockAudioStream(stream); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockJoysticks() => + ((delegate* unmanaged)nativeContext.LoadFunction("UnlockJoysticks", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "UnlockJoysticks")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockJoysticks() => DllImport.UnlockJoysticks(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockMutex(SDL_Mutex* mutex) => + ((delegate* unmanaged)nativeContext.LoadFunction("UnlockMutex", "SDL3"))( + mutex + ); + + [NativeFunction("SDL3", EntryPoint = "UnlockMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockMutex(SDL_Mutex* mutex) => DllImport.UnlockMutex(mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockMutex(Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + { + ((ISdl)this).UnlockMutex(__dsl_mutex); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockMutex")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockMutex(Ref mutex) => DllImport.UnlockMutex(mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + ((delegate* unmanaged)nativeContext.LoadFunction("UnlockProperties", "SDL3"))( + props + ); + + [NativeFunction("SDL3", EntryPoint = "UnlockProperties")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockProperties([NativeTypeName("SDL_PropertiesID")] uint props) => + DllImport.UnlockProperties(props); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockRWLock(SDL_RWLock* rwlock) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UnlockRWLock", "SDL3") + )(rwlock); + + [NativeFunction("SDL3", EntryPoint = "UnlockRWLock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockRWLock(SDL_RWLock* rwlock) => DllImport.UnlockRWLock(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockRWLock(Ref rwlock) + { + fixed (SDL_RWLock* __dsl_rwlock = rwlock) + { + ((ISdl)this).UnlockRWLock(__dsl_rwlock); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockRWLock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockRWLock(Ref rwlock) => DllImport.UnlockRWLock(rwlock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + ((delegate* unmanaged)nativeContext.LoadFunction("UnlockSpinlock", "SDL3"))( + @lock + ); + + [NativeFunction("SDL3", EntryPoint = "UnlockSpinlock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] int* @lock) => + DllImport.UnlockSpinlock(@lock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) + { + fixed (int* __dsl_lock = @lock) + { + ((ISdl)this).UnlockSpinlock(__dsl_lock); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSpinlock")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockSpinlock([NativeTypeName("SDL_SpinLock *")] Ref @lock) => + DllImport.UnlockSpinlock(@lock); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockSurface(Surface* surface) => + ((delegate* unmanaged)nativeContext.LoadFunction("UnlockSurface", "SDL3"))( + surface + ); + + [NativeFunction("SDL3", EntryPoint = "UnlockSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockSurface(Surface* surface) => DllImport.UnlockSurface(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockSurface(Ref surface) + { + fixed (Surface* __dsl_surface = surface) + { + ((ISdl)this).UnlockSurface(__dsl_surface); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UnlockSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockSurface(Ref surface) => DllImport.UnlockSurface(surface); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockTexture(SDL_Texture* texture) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UnlockTexture", "SDL3") + )(texture); + + [NativeFunction("SDL3", EntryPoint = "UnlockTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UnlockTexture(SDL_Texture* texture) => DllImport.UnlockTexture(texture); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UnlockTexture(Ref texture) + { + fixed (SDL_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)nativeContext.LoadFunction("UpdateGamepads", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "UpdateGamepads")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UpdateGamepads() => DllImport.UpdateGamepads(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UpdateHapticEffect", "SDL3") + )(haptic, effect, data); + + [NativeFunction("SDL3", EntryPoint = "UpdateHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateHapticEffect( + SDL_Haptic* haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] HapticEffect* data + ) => DllImport.UpdateHapticEffect(haptic, effect, data); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] Ref data + ) + { + fixed (HapticEffect* __dsl_data = data) + fixed (SDL_Haptic* __dsl_haptic = haptic) + { + return (int)((ISdl)this).UpdateHapticEffect(__dsl_haptic, effect, __dsl_data); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateHapticEffect")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateHapticEffect( + Ref haptic, + int effect, + [NativeTypeName("const SDL_HapticEffect *")] Ref data + ) => DllImport.UpdateHapticEffect(haptic, effect, data); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UpdateJoysticks() => + ((delegate* unmanaged)nativeContext.LoadFunction("UpdateJoysticks", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "UpdateJoysticks")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UpdateJoysticks() => DllImport.UpdateJoysticks(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateNVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* UVplane, + int UVpitch + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UpdateNVTexture", "SDL3") + )(texture, rect, Yplane, Ypitch, UVplane, UVpitch); + + [NativeFunction("SDL3", EntryPoint = "UpdateNVTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateNVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* UVplane, + int UVpitch + ) => DllImport.UpdateNVTexture(texture, rect, Yplane, Ypitch, UVplane, UVpitch); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateNVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref UVplane, + int UVpitch + ) + { + fixed (byte* __dsl_UVplane = UVplane) + fixed (byte* __dsl_Yplane = Yplane) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int) + ((ISdl)this).UpdateNVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_UVplane, + UVpitch + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateNVTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateNVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref UVplane, + int UVpitch + ) => DllImport.UpdateNVTexture(texture, rect, Yplane, Ypitch, UVplane, UVpitch); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.UpdateSensors() => + ((delegate* unmanaged)nativeContext.LoadFunction("UpdateSensors", "SDL3"))(); + + [NativeFunction("SDL3", EntryPoint = "UpdateSensors")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void UpdateSensors() => DllImport.UpdateSensors(); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const void *")] void* pixels, + int pitch + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UpdateTexture", "SDL3") + )(texture, rect, pixels, pitch); + + [NativeFunction("SDL3", EntryPoint = "UpdateTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateTexture( + SDL_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( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const void *")] Ref pixels, + int pitch + ) + { + fixed (void* __dsl_pixels = pixels) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int)((ISdl)this).UpdateTexture(__dsl_texture, __dsl_rect, __dsl_pixels, pitch); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int 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(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UpdateWindowSurface", "SDL3") + )(window); + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateWindowSurface(SDL_Window* window) => + DllImport.UpdateWindowSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateWindowSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).UpdateWindowSurface(__dsl_window); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateWindowSurface(Ref window) => + DllImport.UpdateWindowSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateWindowSurfaceRects( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int numrects + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UpdateWindowSurfaceRects", "SDL3") + )(window, rects, numrects); + + [NativeFunction("SDL3", EntryPoint = "UpdateWindowSurfaceRects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateWindowSurfaceRects( + SDL_Window* window, + [NativeTypeName("const SDL_Rect *")] Rect* rects, + int numrects + ) => DllImport.UpdateWindowSurfaceRects(window, rects, numrects); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateWindowSurfaceRects( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int numrects + ) + { + fixed (Rect* __dsl_rects = rects) + fixed (SDL_Window* __dsl_window = window) + { + return (int)((ISdl)this).UpdateWindowSurfaceRects(__dsl_window, __dsl_rects, numrects); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateWindowSurfaceRects")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateWindowSurfaceRects( + Ref window, + [NativeTypeName("const SDL_Rect *")] Ref rects, + int numrects + ) => DllImport.UpdateWindowSurfaceRects(window, rects, numrects); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateYUVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] byte* Vplane, + int Vpitch + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("UpdateYUVTexture", "SDL3") + )(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); + + [NativeFunction("SDL3", EntryPoint = "UpdateYUVTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateYUVTexture( + SDL_Texture* texture, + [NativeTypeName("const SDL_Rect *")] Rect* rect, + [NativeTypeName("const Uint8 *")] byte* Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] byte* Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] byte* Vplane, + int Vpitch + ) => DllImport.UpdateYUVTexture(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.UpdateYUVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] Ref Vplane, + int Vpitch + ) + { + fixed (byte* __dsl_Vplane = Vplane) + fixed (byte* __dsl_Uplane = Uplane) + fixed (byte* __dsl_Yplane = Yplane) + fixed (Rect* __dsl_rect = rect) + fixed (SDL_Texture* __dsl_texture = texture) + { + return (int) + ((ISdl)this).UpdateYUVTexture( + __dsl_texture, + __dsl_rect, + __dsl_Yplane, + Ypitch, + __dsl_Uplane, + Upitch, + __dsl_Vplane, + Vpitch + ); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_UpdateYUVTexture")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int UpdateYUVTexture( + Ref texture, + [NativeTypeName("const SDL_Rect *")] Ref rect, + [NativeTypeName("const Uint8 *")] Ref Yplane, + int Ypitch, + [NativeTypeName("const Uint8 *")] Ref Uplane, + int Upitch, + [NativeTypeName("const Uint8 *")] Ref Vplane, + int Vpitch + ) => DllImport.UpdateYUVTexture(texture, rect, Yplane, Ypitch, Uplane, Upitch, Vplane, Vpitch); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitCondition(SDL_Condition* cond, SDL_Mutex* mutex) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WaitCondition", "SDL3") + )(cond, mutex); + + [NativeFunction("SDL3", EntryPoint = "WaitCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitCondition(SDL_Condition* cond, SDL_Mutex* mutex) => + DllImport.WaitCondition(cond, mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitCondition(Ref cond, Ref mutex) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)((ISdl)this).WaitCondition(__dsl_cond, __dsl_mutex); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitCondition")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitCondition(Ref cond, Ref mutex) => + DllImport.WaitCondition(cond, mutex); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitConditionTimeout( + SDL_Condition* cond, + SDL_Mutex* mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WaitConditionTimeout", "SDL3") + )(cond, mutex, timeoutMS); + + [NativeFunction("SDL3", EntryPoint = "WaitConditionTimeout")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitConditionTimeout( + SDL_Condition* cond, + SDL_Mutex* mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => DllImport.WaitConditionTimeout(cond, mutex, timeoutMS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitConditionTimeout( + Ref cond, + Ref mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) + { + fixed (SDL_Mutex* __dsl_mutex = mutex) + fixed (SDL_Condition* __dsl_cond = cond) + { + return (int)((ISdl)this).WaitConditionTimeout(__dsl_cond, __dsl_mutex, timeoutMS); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitConditionTimeout")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitConditionTimeout( + Ref cond, + Ref mutex, + [NativeTypeName("Sint32")] int timeoutMS + ) => DllImport.WaitConditionTimeout(cond, mutex, timeoutMS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitEvent(Event* @event) => + ((delegate* unmanaged)nativeContext.LoadFunction("WaitEvent", "SDL3"))(@event); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitEvent(Event* @event) => DllImport.WaitEvent(@event); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WaitEvent(Ref @event) + { + fixed (Event* __dsl_event = @event) + { + return (MaybeBool)(int)((ISdl)this).WaitEvent(__dsl_event); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEvent")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WaitEvent(Ref @event) => DllImport.WaitEvent(@event); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WaitEventTimeout", "SDL3") + )(@event, timeoutMS); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WaitEventTimeout")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitEventTimeout(Event* @event, [NativeTypeName("Sint32")] int timeoutMS) => + DllImport.WaitEventTimeout(@event, timeoutMS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WaitEventTimeout( + Ref @event, + [NativeTypeName("Sint32")] int timeoutMS + ) + { + fixed (Event* __dsl_event = @event) + { + return (MaybeBool)(int)((ISdl)this).WaitEventTimeout(__dsl_event, timeoutMS); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitEventTimeout")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WaitEventTimeout( + Ref @event, + [NativeTypeName("Sint32")] int timeoutMS + ) => DllImport.WaitEventTimeout(@event, timeoutMS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitSemaphore(SDL_Semaphore* sem) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WaitSemaphore", "SDL3") + )(sem); + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitSemaphore(SDL_Semaphore* sem) => DllImport.WaitSemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitSemaphore(Ref sem) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)((ISdl)this).WaitSemaphore(__dsl_sem); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphore")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitSemaphore(Ref sem) => DllImport.WaitSemaphore(sem); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitSemaphoreTimeout(SDL_Semaphore* sem, [NativeTypeName("Sint32")] int timeoutMS) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WaitSemaphoreTimeout", "SDL3") + )(sem, timeoutMS); + + [NativeFunction("SDL3", EntryPoint = "WaitSemaphoreTimeout")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitSemaphoreTimeout( + SDL_Semaphore* sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => DllImport.WaitSemaphoreTimeout(sem, timeoutMS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WaitSemaphoreTimeout(Ref sem, [NativeTypeName("Sint32")] int timeoutMS) + { + fixed (SDL_Semaphore* __dsl_sem = sem) + { + return (int)((ISdl)this).WaitSemaphoreTimeout(__dsl_sem, timeoutMS); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitSemaphoreTimeout")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WaitSemaphoreTimeout( + Ref sem, + [NativeTypeName("Sint32")] int timeoutMS + ) => DllImport.WaitSemaphoreTimeout(sem, timeoutMS); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.WaitThread(SDL_Thread* thread, int* status) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WaitThread", "SDL3") + )(thread, status); + + [NativeFunction("SDL3", EntryPoint = "WaitThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void WaitThread(SDL_Thread* thread, int* status) => + DllImport.WaitThread(thread, status); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.WaitThread(Ref thread, Ref status) + { + fixed (int* __dsl_status = status) + fixed (SDL_Thread* __dsl_thread = thread) + { + ((ISdl)this).WaitThread(__dsl_thread, __dsl_status); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WaitThread")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void WaitThread(Ref thread, Ref status) => + DllImport.WaitThread(thread, status); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WarpMouseGlobal(float x, float y) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WarpMouseGlobal", "SDL3") + )(x, y); + + [NativeFunction("SDL3", EntryPoint = "WarpMouseGlobal")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WarpMouseGlobal(float x, float y) => DllImport.WarpMouseGlobal(x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.WarpMouseInWindow(SDL_Window* window, float x, float y) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WarpMouseInWindow", "SDL3") + )(window, x, y); + + [NativeFunction("SDL3", EntryPoint = "WarpMouseInWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void WarpMouseInWindow(SDL_Window* window, float x, float y) => + DllImport.WarpMouseInWindow(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + void ISdl.WarpMouseInWindow(Ref window, float x, float y) + { + fixed (SDL_Window* __dsl_window = window) + { + ((ISdl)this).WarpMouseInWindow(__dsl_window, x, y); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WarpMouseInWindow")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static void WarpMouseInWindow(Ref window, float x, float y) => + DllImport.WarpMouseInWindow(window, x, y); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + uint ISdl.WasInit([NativeTypeName("Uint32")] uint flags) => + ((delegate* unmanaged)nativeContext.LoadFunction("WasInit", "SDL3"))(flags); + + [return: NativeTypeName("Uint32")] + [NativeFunction("SDL3", EntryPoint = "WasInit")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static uint WasInit([NativeTypeName("Uint32")] uint flags) => DllImport.WasInit(flags); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WindowHasSurface(SDL_Window* window) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WindowHasSurface", "SDL3") + )(window); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WindowHasSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WindowHasSurface(SDL_Window* window) => DllImport.WindowHasSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WindowHasSurface(Ref window) + { + fixed (SDL_Window* __dsl_window = window) + { + return (MaybeBool)(int)((ISdl)this).WindowHasSurface(__dsl_window); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WindowHasSurface")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WindowHasSurface(Ref window) => + DllImport.WindowHasSurface(window); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + nuint ISdl.WriteIO( + SDL_IOStream* context, + [NativeTypeName("const void *")] void* ptr, + [NativeTypeName("size_t")] nuint size + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteIO", "SDL3") + )(context, ptr, size); + + [return: NativeTypeName("size_t")] + [NativeFunction("SDL3", EntryPoint = "WriteIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nuint WriteIO( + SDL_IOStream* context, + [NativeTypeName("const void *")] void* ptr, + [NativeTypeName("size_t")] nuint size + ) => DllImport.WriteIO(context, ptr, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + nuint ISdl.WriteIO( + Ref context, + [NativeTypeName("const void *")] Ref ptr, + [NativeTypeName("size_t")] nuint size + ) + { + fixed (void* __dsl_ptr = ptr) + fixed (SDL_IOStream* __dsl_context = context) + { + return (nuint)((ISdl)this).WriteIO(__dsl_context, __dsl_ptr, size); + } + } + + [return: NativeTypeName("size_t")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteIO")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static nuint WriteIO( + Ref context, + [NativeTypeName("const void *")] Ref ptr, + [NativeTypeName("size_t")] nuint size + ) => DllImport.WriteIO(context, ptr, size); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteS16BE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteS16BE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteS16BE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value) => + DllImport.WriteS16BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteS16BE(Ref dst, [NativeTypeName("Sint16")] short value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteS16BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteS16BE( + Ref dst, + [NativeTypeName("Sint16")] short value + ) => DllImport.WriteS16BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteS16LE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteS16LE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS16LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteS16LE(SDL_IOStream* dst, [NativeTypeName("Sint16")] short value) => + DllImport.WriteS16LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteS16LE(Ref dst, [NativeTypeName("Sint16")] short value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteS16LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS16LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteS16LE( + Ref dst, + [NativeTypeName("Sint16")] short value + ) => DllImport.WriteS16LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteS32BE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteS32BE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteS32BE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value) => + DllImport.WriteS32BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteS32BE(Ref dst, [NativeTypeName("Sint32")] int value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteS32BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteS32BE( + Ref dst, + [NativeTypeName("Sint32")] int value + ) => DllImport.WriteS32BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteS32LE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteS32LE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS32LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteS32LE(SDL_IOStream* dst, [NativeTypeName("Sint32")] int value) => + DllImport.WriteS32LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteS32LE(Ref dst, [NativeTypeName("Sint32")] int value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteS32LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS32LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteS32LE( + Ref dst, + [NativeTypeName("Sint32")] int value + ) => DllImport.WriteS32LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteS64BE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteS64BE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteS64BE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value) => + DllImport.WriteS64BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteS64BE(Ref dst, [NativeTypeName("Sint64")] long value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteS64BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteS64BE( + Ref dst, + [NativeTypeName("Sint64")] long value + ) => DllImport.WriteS64BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteS64LE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteS64LE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteS64LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteS64LE(SDL_IOStream* dst, [NativeTypeName("Sint64")] long value) => + DllImport.WriteS64LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteS64LE(Ref dst, [NativeTypeName("Sint64")] long value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteS64LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteS64LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteS64LE( + Ref dst, + [NativeTypeName("Sint64")] long value + ) => DllImport.WriteS64LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const void *")] void* source, + [NativeTypeName("Uint64")] ulong length + ) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteStorageFile", "SDL3") + )(storage, path, source, length); + + [NativeFunction("SDL3", EntryPoint = "WriteStorageFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteStorageFile( + SDL_Storage* storage, + [NativeTypeName("const char *")] sbyte* path, + [NativeTypeName("const void *")] void* source, + [NativeTypeName("Uint64")] ulong length + ) => DllImport.WriteStorageFile(storage, path, source, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const void *")] Ref source, + [NativeTypeName("Uint64")] ulong length + ) + { + fixed (void* __dsl_source = source) + fixed (sbyte* __dsl_path = path) + fixed (SDL_Storage* __dsl_storage = storage) + { + return (int) + ((ISdl)this).WriteStorageFile(__dsl_storage, __dsl_path, __dsl_source, length); + } + } + + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteStorageFile")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteStorageFile( + Ref storage, + [NativeTypeName("const char *")] Ref path, + [NativeTypeName("const void *")] Ref source, + [NativeTypeName("Uint64")] ulong length + ) => DllImport.WriteStorageFile(storage, path, source, length); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteU16BE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteU16BE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU16BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteU16BE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value) => + DllImport.WriteU16BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteU16BE(Ref dst, [NativeTypeName("Uint16")] ushort value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteU16BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteU16BE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ) => DllImport.WriteU16BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteU16LE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteU16LE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU16LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteU16LE(SDL_IOStream* dst, [NativeTypeName("Uint16")] ushort value) => + DllImport.WriteU16LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteU16LE(Ref dst, [NativeTypeName("Uint16")] ushort value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteU16LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU16LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteU16LE( + Ref dst, + [NativeTypeName("Uint16")] ushort value + ) => DllImport.WriteU16LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteU32BE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteU32BE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteU32BE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value) => + DllImport.WriteU32BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteU32BE(Ref dst, [NativeTypeName("Uint32")] uint value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteU32BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteU32BE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ) => DllImport.WriteU32BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteU32LE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteU32LE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU32LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteU32LE(SDL_IOStream* dst, [NativeTypeName("Uint32")] uint value) => + DllImport.WriteU32LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteU32LE(Ref dst, [NativeTypeName("Uint32")] uint value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteU32LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU32LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteU32LE( + Ref dst, + [NativeTypeName("Uint32")] uint value + ) => DllImport.WriteU32LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteU64BE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteU64BE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteU64BE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value) => + DllImport.WriteU64BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteU64BE(Ref dst, [NativeTypeName("Uint64")] ulong value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteU64BE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64BE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteU64BE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ) => DllImport.WriteU64BE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteU64LE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteU64LE", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU64LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteU64LE(SDL_IOStream* dst, [NativeTypeName("Uint64")] ulong value) => + DllImport.WriteU64LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteU64LE(Ref dst, [NativeTypeName("Uint64")] ulong value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteU64LE(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU64LE")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteU64LE( + Ref dst, + [NativeTypeName("Uint64")] ulong value + ) => DllImport.WriteU64LE(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + int ISdl.WriteU8(SDL_IOStream* dst, [NativeTypeName("Uint8")] byte value) => + ( + (delegate* unmanaged) + nativeContext.LoadFunction("WriteU8", "SDL3") + )(dst, value); + + [return: NativeTypeName("SDL_bool")] + [NativeFunction("SDL3", EntryPoint = "WriteU8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static int WriteU8(SDL_IOStream* dst, [NativeTypeName("Uint8")] byte value) => + DllImport.WriteU8(dst, value); + + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + MaybeBool ISdl.WriteU8(Ref dst, [NativeTypeName("Uint8")] byte value) + { + fixed (SDL_IOStream* __dsl_dst = dst) + { + return (MaybeBool)(int)((ISdl)this).WriteU8(__dsl_dst, value); + } + } + + [return: NativeTypeName("SDL_bool")] + [Transformed] + [NativeFunction("SDL3", EntryPoint = "SDL_WriteU8")] + [MethodImpl(MethodImplOptions.AggressiveInlining | MethodImplOptions.AggressiveOptimization)] + public static MaybeBool WriteU8( + Ref dst, + [NativeTypeName("Uint8")] byte value + ) => DllImport.WriteU8(dst, value); +} diff --git a/sources/SDL/SDL/Sdl.gen.cs b/sources/SDL/SDL/Sdl.gen.cs new file mode 100644 index 0000000000..5b201318b5 --- /dev/null +++ b/sources/SDL/SDL/Sdl.gen.cs @@ -0,0 +1,49 @@ +// 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.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using Silk.NET.Core.Loader; +using static Silk.NET.SDL.ArrayOrder; +using static Silk.NET.SDL.BitmapOrder; +using static Silk.NET.SDL.ChromaLocation; +using static Silk.NET.SDL.ColorPrimaries; +using static Silk.NET.SDL.ColorRange; +using static Silk.NET.SDL.ColorType; +using static Silk.NET.SDL.MatrixCoefficients; +using static Silk.NET.SDL.PackedLayout; +using static Silk.NET.SDL.PackedOrder; +using static Silk.NET.SDL.PenAxis; +using static Silk.NET.SDL.PixelType; +using static Silk.NET.SDL.Scancode; +using static Silk.NET.SDL.TransferCharacteristics; + +namespace Silk.NET.SDL; + +partial class Sdl(INativeContext nativeContext) : IDisposable +{ + public partial class DllImport + { + static DllImport() => LoaderInterface.RegisterHook(Assembly.GetExecutingAssembly()); + } + + public partial class ThisThread : ISdl.Static + { + public static ThreadLocal Underlying { get; } = + new(static () => new StaticWrapper()); + + public static void MakeCurrent(ISdl ctx) => Underlying.Value = ctx; + } + + public static ISdl Instance { get; } = new StaticWrapper(); + + public static ISdl Create() => Instance; + + public static ISdl Create(INativeContext ctx) => new Sdl(ctx); + + /// + public void Dispose() => nativeContext.Dispose(); +} diff --git a/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs b/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs index e8f8a480ad..dbaf723d78 100644 --- a/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs +++ b/sources/SilkTouch/SilkTouch/Clang/ClangScraper.cs @@ -322,7 +322,7 @@ static MemoryStream Reopen(MemoryStream ms) => // Make the path relative as above. var relativeKey = Path.Combine( isTest ? testRootRel : srcRootRel, - path + Path.GetRelativePath(isTest ? testRoot : srcRoot, path) ) .Replace('\\', '/') .TrimEnd('/'); diff --git a/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTyping.cs b/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTyping.cs index 751bbfc5dc..3595c26344 100644 --- a/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTyping.cs +++ b/sources/SilkTouch/SilkTouch/Mods/ExtractNestedTyping.cs @@ -57,7 +57,53 @@ public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = // Second pass to modify existing files as per our discovery. rewriter.FunctionPointerTypes = fnPtrWalker.GetFunctionPointerTypes(); var proj = ctx.SourceProject; - foreach (var docId in proj?.DocumentIds ?? []) + foreach ( + var (structDecl, delegateDecl, fileDirs, namespaces) in rewriter + .FunctionPointerTypes + .Values + ) + { + 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) + ), + 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) + ), + filePath: proj.FullPath($"{dir}/{delegateDecl.Identifier}.gen.cs") + ) + .Project; + } + + foreach (var docId in ctx.SourceProject?.DocumentIds ?? []) { var doc = proj!.GetDocument(docId) ?? throw new InvalidOperationException("Document missing"); @@ -66,15 +112,12 @@ public override async Task ExecuteAsync(IModContext ctx, CancellationToken ct = { continue; } - proj = doc.WithSyntaxRoot( - rewriter.Visit(await doc.GetSyntaxRootAsync(ct)) - ?? throw new InvalidOperationException("Visit returned null.") + rewriter.Visit(node) + ?? throw new InvalidOperationException("Rewriter returned null") ).Project; foreach (var newStruct in rewriter.ExtractedNestedStructs) { - var newFname = - $"{fname.AsSpan()[..fname.LastIndexOf('/')]}/{newStruct.Identifier}.gen.cs"; proj = proj.AddDocument( $"{newStruct.Identifier}.gen.cs", CompilationUnit() @@ -90,7 +133,9 @@ rewriter.Namespace is not null ) : SingletonList(newStruct) ), - filePath: proj.FullPath(newFname) + filePath: proj.FullPath( + $"{fname.AsSpan()[..fname.LastIndexOf('/')]}/{newStruct.Identifier}.gen.cs" + ) ).Project; } @@ -98,67 +143,6 @@ rewriter.Namespace is not null rewriter.ExtractedNestedStructs.Clear(); } - foreach ( - var (structDecl, delegateDecl, fileDirs, namespaces) in rewriter - .FunctionPointerTypes - .Values - ) - { - // Local function as async functions can't declare span variables. - GenerateNewTrees(); - continue; - void GenerateNewTrees() - { - var ns = NameUtils.FindCommonPrefix(namespaces, true, false, true).AsSpan(); - var dir = NameUtils - .FindCommonPrefix(fileDirs, true, false, true) - .AsSpan() - .TrimEnd('/'); - var structFname = $"{dir}/{structDecl.Identifier}.gen.cs"; - var delegateFname = $"{dir}/{delegateDecl.Identifier}.gen.cs"; - proj = proj - ?.AddDocument( - $"{structDecl.Identifier}.gen.cs", - CompilationUnit() - .WithMembers( - ns is { Length: > 0 } - ? SingletonList( - FileScopedNamespaceDeclaration( - ModUtils.NamespaceIntoIdentifierName( - ns.TrimEnd('.') - ) - ) - .WithMembers( - SingletonList(structDecl) - ) - ) - : SingletonList(structDecl) - ), - filePath: proj.FullPath(structFname) - ) - .Project.AddDocument( - $"{delegateDecl.Identifier}.gen.cs", - CompilationUnit() - .WithMembers( - ns is { Length: > 0 } - ? SingletonList( - FileScopedNamespaceDeclaration( - ModUtils.NamespaceIntoIdentifierName( - ns.TrimEnd('.') - ) - ) - .WithMembers( - SingletonList(delegateDecl) - ) - ) - : SingletonList(delegateDecl) - ), - filePath: proj.FullPath(delegateFname) - ) - .Project; - } - } - ctx.SourceProject = proj; } diff --git a/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs b/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs index 5be4d1a900..1d97c3a230 100644 --- a/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs +++ b/sources/SilkTouch/SilkTouch/Mods/TransformFunctions.cs @@ -54,7 +54,7 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) { _jobKey.Value = ctx.JobKey; var proj = ctx.SourceProject; - foreach (var docId in proj?.DocumentIds ?? []) + foreach (var docId in ctx.SourceProject?.DocumentIds ?? []) { var doc = proj!.GetDocument(docId) ?? throw new InvalidOperationException("Document missing"); @@ -63,6 +63,8 @@ public async Task ExecuteAsync(IModContext ctx, CancellationToken ct = default) proj = doc.WithSyntaxRoot(Visit(root)).Project; } } + + ctx.SourceProject = proj; } /// diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_AssertDataTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_AssertDataTests.gen.cs new file mode 100644 index 0000000000..8c4f60d2f0 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_AssertDataTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +///

Provides validation of the struct. +public static unsafe partial class SDL_AssertDataTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(AssertData))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(AssertData).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(AssertData), Is.EqualTo(48)); + } + else + { + Assert.That(sizeof(AssertData), Is.EqualTo(28)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_AtomicIntTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_AtomicIntTests.gen.cs new file mode 100644 index 0000000000..b5ae25b378 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_AtomicIntTests.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_AtomicIntTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(AtomicInt))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(AtomicInt).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(AtomicInt), Is.EqualTo(4)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_AudioDeviceEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_AudioDeviceEventTests.gen.cs new file mode 100644 index 0000000000..cb31242a91 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_AudioDeviceEventTests.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_AudioDeviceEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(AudioDeviceEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(AudioDeviceEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(AudioDeviceEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_AudioSpecTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_AudioSpecTests.gen.cs new file mode 100644 index 0000000000..7dae79a0f5 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_AudioSpecTests.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_AudioSpecTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(AudioSpec))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(AudioSpec).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(AudioSpec), Is.EqualTo(12)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_CameraDeviceEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_CameraDeviceEventTests.gen.cs new file mode 100644 index 0000000000..871e2a18cb --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_CameraDeviceEventTests.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_CameraDeviceEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CameraDeviceEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(CameraDeviceEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(CameraDeviceEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_CameraSpecTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_CameraSpecTests.gen.cs new file mode 100644 index 0000000000..88a5b1d178 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_CameraSpecTests.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_CameraSpecTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CameraSpec))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(CameraSpec).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(CameraSpec), Is.EqualTo(20)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_ClipboardEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_ClipboardEventTests.gen.cs new file mode 100644 index 0000000000..234956cca0 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_ClipboardEventTests.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_ClipboardEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(ClipboardEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(ClipboardEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(ClipboardEvent), Is.EqualTo(16)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_ColorTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_ColorTests.gen.cs new file mode 100644 index 0000000000..3ec531aeaa --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_ColorTests.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_ColorTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Color))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Color).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(Color), Is.EqualTo(4)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_CommonEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_CommonEventTests.gen.cs new file mode 100644 index 0000000000..3eb4c4e8d1 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_CommonEventTests.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_CommonEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(CommonEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(CommonEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(CommonEvent), Is.EqualTo(16)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_DateTimeTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_DateTimeTests.gen.cs new file mode 100644 index 0000000000..f8f6c250f8 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_DateTimeTests.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_DateTimeTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(DateTime))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(DateTime).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(DateTime), Is.EqualTo(36)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_DialogFileFilterTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_DialogFileFilterTests.gen.cs new file mode 100644 index 0000000000..2ca5c60750 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_DialogFileFilterTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_DialogFileFilterTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(DialogFileFilter))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(DialogFileFilter).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(DialogFileFilter), Is.EqualTo(16)); + } + else + { + Assert.That(sizeof(DialogFileFilter), Is.EqualTo(8)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_DisplayEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_DisplayEventTests.gen.cs new file mode 100644 index 0000000000..f07b82f5bf --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_DisplayEventTests.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_DisplayEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(DisplayEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(DisplayEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(DisplayEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_DisplayModeTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_DisplayModeTests.gen.cs new file mode 100644 index 0000000000..fee0dabc33 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_DisplayModeTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_DisplayModeTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(DisplayMode))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(DisplayMode).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(DisplayMode), Is.EqualTo(32)); + } + else + { + Assert.That(sizeof(DisplayMode), Is.EqualTo(28)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_DropEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_DropEventTests.gen.cs new file mode 100644 index 0000000000..87ae9a3b27 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_DropEventTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_DropEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(DropEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(DropEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(DropEvent), Is.EqualTo(48)); + } + else + { + Assert.That(sizeof(DropEvent), Is.EqualTo(40)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_EventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_EventTests.gen.cs new file mode 100644 index 0000000000..7dee2f62ae --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_EventTests.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_EventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Event))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutExplicitTest() + { + Assert.That(typeof(Event).IsExplicitLayout, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(Event), Is.EqualTo(128)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_FColorTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_FColorTests.gen.cs new file mode 100644 index 0000000000..c537d7f35e --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_FColorTests.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_FColorTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(FColor))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(FColor).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(FColor), Is.EqualTo(16)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_FPointTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_FPointTests.gen.cs new file mode 100644 index 0000000000..e9e7c97c94 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_FPointTests.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_FPointTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(FPoint))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(FPoint).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(FPoint), Is.EqualTo(8)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_FRectTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_FRectTests.gen.cs new file mode 100644 index 0000000000..93aadb66b7 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_FRectTests.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_FRectTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(FRect))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(FRect).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(FRect), Is.EqualTo(16)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_FingerTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_FingerTests.gen.cs new file mode 100644 index 0000000000..580cd08749 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_FingerTests.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_FingerTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Finger))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Finger).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(Finger), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_GUIDTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_GUIDTests.gen.cs new file mode 100644 index 0000000000..89593ed46a --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_GUIDTests.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_GUIDTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Guid))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Guid).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(Guid), Is.EqualTo(16)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadAxisEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadAxisEventTests.gen.cs new file mode 100644 index 0000000000..830d669e7f --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadAxisEventTests.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_GamepadAxisEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(GamepadAxisEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(GamepadAxisEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(GamepadAxisEvent), Is.EqualTo(32)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadBindingTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadBindingTests.gen.cs new file mode 100644 index 0000000000..90545bd1c5 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadBindingTests.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_GamepadBindingTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(GamepadBinding))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(GamepadBinding).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(GamepadBinding), Is.EqualTo(32)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonEventTests.gen.cs new file mode 100644 index 0000000000..b17cc79741 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadButtonEventTests.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_GamepadButtonEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(GamepadButtonEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(GamepadButtonEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(GamepadButtonEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadDeviceEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadDeviceEventTests.gen.cs new file mode 100644 index 0000000000..598c5b2232 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadDeviceEventTests.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_GamepadDeviceEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(GamepadDeviceEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(GamepadDeviceEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(GamepadDeviceEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadSensorEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadSensorEventTests.gen.cs new file mode 100644 index 0000000000..c757a398a5 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadSensorEventTests.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_GamepadSensorEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(GamepadSensorEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(GamepadSensorEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(GamepadSensorEvent), Is.EqualTo(48)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadTouchpadEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadTouchpadEventTests.gen.cs new file mode 100644 index 0000000000..ce14caf5e2 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_GamepadTouchpadEventTests.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_GamepadTouchpadEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That( + Marshal.SizeOf(), + Is.EqualTo(sizeof(GamepadTouchpadEvent)) + ); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(GamepadTouchpadEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(GamepadTouchpadEvent), Is.EqualTo(40)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_HapticConditionTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticConditionTests.gen.cs new file mode 100644 index 0000000000..3ea5ea7d9f --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticConditionTests.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_HapticConditionTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(HapticCondition))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(HapticCondition).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(HapticCondition), Is.EqualTo(68)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_HapticConstantTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticConstantTests.gen.cs new file mode 100644 index 0000000000..8e775f2950 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticConstantTests.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_HapticConstantTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(HapticConstant))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(HapticConstant).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(HapticConstant), Is.EqualTo(40)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_HapticCustomTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticCustomTests.gen.cs new file mode 100644 index 0000000000..56de8e2e4c --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticCustomTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_HapticCustomTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(HapticCustom))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(HapticCustom).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(HapticCustom), Is.EqualTo(56)); + } + else + { + Assert.That(sizeof(HapticCustom), Is.EqualTo(48)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_HapticDirectionTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticDirectionTests.gen.cs new file mode 100644 index 0000000000..a42c2d37ae --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticDirectionTests.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_HapticDirectionTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(HapticDirection))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(HapticDirection).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(HapticDirection), Is.EqualTo(16)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_HapticEffectTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticEffectTests.gen.cs new file mode 100644 index 0000000000..db62a44209 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticEffectTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_HapticEffectTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(HapticEffect))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutExplicitTest() + { + Assert.That(typeof(HapticEffect).IsExplicitLayout, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(HapticEffect), Is.EqualTo(72)); + } + else + { + Assert.That(sizeof(HapticEffect), Is.EqualTo(68)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_HapticLeftRightTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticLeftRightTests.gen.cs new file mode 100644 index 0000000000..ac1350a0f6 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticLeftRightTests.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_HapticLeftRightTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(HapticLeftRight))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(HapticLeftRight).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(HapticLeftRight), Is.EqualTo(12)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_HapticPeriodicTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticPeriodicTests.gen.cs new file mode 100644 index 0000000000..dfe89bf4bd --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticPeriodicTests.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_HapticPeriodicTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(HapticPeriodic))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(HapticPeriodic).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(HapticPeriodic), Is.EqualTo(48)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_HapticRampTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticRampTests.gen.cs new file mode 100644 index 0000000000..e54a7a6908 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_HapticRampTests.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_HapticRampTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(HapticRamp))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(HapticRamp).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(HapticRamp), Is.EqualTo(44)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_IOStreamInterfaceTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_IOStreamInterfaceTests.gen.cs new file mode 100644 index 0000000000..0ac24fe626 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_IOStreamInterfaceTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_IOStreamInterfaceTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(IOStreamInterface))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(IOStreamInterface).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(IOStreamInterface), Is.EqualTo(40)); + } + else + { + Assert.That(sizeof(IOStreamInterface), Is.EqualTo(20)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_JoyAxisEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyAxisEventTests.gen.cs new file mode 100644 index 0000000000..2f27f7573d --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyAxisEventTests.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_JoyAxisEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(JoyAxisEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(JoyAxisEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(JoyAxisEvent), Is.EqualTo(32)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_JoyBallEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyBallEventTests.gen.cs new file mode 100644 index 0000000000..151afa3322 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyBallEventTests.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_JoyBallEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(JoyBallEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(JoyBallEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(JoyBallEvent), Is.EqualTo(32)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_JoyBatteryEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyBatteryEventTests.gen.cs new file mode 100644 index 0000000000..076673aa7c --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyBatteryEventTests.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_JoyBatteryEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(JoyBatteryEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(JoyBatteryEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(JoyBatteryEvent), Is.EqualTo(32)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_JoyButtonEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyButtonEventTests.gen.cs new file mode 100644 index 0000000000..e8e8552f19 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyButtonEventTests.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_JoyButtonEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(JoyButtonEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(JoyButtonEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(JoyButtonEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_JoyDeviceEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyDeviceEventTests.gen.cs new file mode 100644 index 0000000000..dfb3a7d3af --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyDeviceEventTests.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_JoyDeviceEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(JoyDeviceEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(JoyDeviceEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(JoyDeviceEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_JoyHatEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyHatEventTests.gen.cs new file mode 100644 index 0000000000..48c2070a53 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_JoyHatEventTests.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_JoyHatEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(JoyHatEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(JoyHatEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(JoyHatEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_KeyboardDeviceEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_KeyboardDeviceEventTests.gen.cs new file mode 100644 index 0000000000..e31b857d08 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_KeyboardDeviceEventTests.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_KeyboardDeviceEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(KeyboardDeviceEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(KeyboardDeviceEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(KeyboardDeviceEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_KeyboardEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_KeyboardEventTests.gen.cs new file mode 100644 index 0000000000..b7d36516c7 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_KeyboardEventTests.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_KeyboardEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(KeyboardEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(KeyboardEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(KeyboardEvent), Is.EqualTo(48)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_KeysymTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_KeysymTests.gen.cs new file mode 100644 index 0000000000..d36abe2a6b --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_KeysymTests.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_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/SDL3/SDL_LocaleTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_LocaleTests.gen.cs new file mode 100644 index 0000000000..c312b231c2 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_LocaleTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_LocaleTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Locale))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Locale).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(Locale), Is.EqualTo(16)); + } + else + { + Assert.That(sizeof(Locale), Is.EqualTo(8)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonDataTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonDataTests.gen.cs new file mode 100644 index 0000000000..e901b1fc42 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxButtonDataTests.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_MessageBoxButtonDataTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That( + Marshal.SizeOf(), + Is.EqualTo(sizeof(MessageBoxButtonData)) + ); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(MessageBoxButtonData).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(MessageBoxButtonData), Is.EqualTo(16)); + } + else + { + Assert.That(sizeof(MessageBoxButtonData), Is.EqualTo(12)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorSchemeTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorSchemeTests.gen.cs new file mode 100644 index 0000000000..deffd6bfab --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorSchemeTests.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_MessageBoxColorSchemeTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That( + Marshal.SizeOf(), + Is.EqualTo(sizeof(MessageBoxColorScheme)) + ); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(MessageBoxColorScheme).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(MessageBoxColorScheme), Is.EqualTo(15)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorTests.gen.cs new file mode 100644 index 0000000000..644dbeb334 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxColorTests.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_MessageBoxColorTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(MessageBoxColor))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(MessageBoxColor).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(MessageBoxColor), Is.EqualTo(3)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxDataTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxDataTests.gen.cs new file mode 100644 index 0000000000..6f0e3e34cd --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_MessageBoxDataTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_MessageBoxDataTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(MessageBoxData))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(MessageBoxData).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(MessageBoxData), Is.EqualTo(56)); + } + else + { + Assert.That(sizeof(MessageBoxData), Is.EqualTo(28)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_MouseButtonEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_MouseButtonEventTests.gen.cs new file mode 100644 index 0000000000..d95e967f7c --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_MouseButtonEventTests.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_MouseButtonEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(MouseButtonEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(MouseButtonEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(MouseButtonEvent), Is.EqualTo(40)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_MouseDeviceEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_MouseDeviceEventTests.gen.cs new file mode 100644 index 0000000000..28a1833d1d --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_MouseDeviceEventTests.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_MouseDeviceEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(MouseDeviceEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(MouseDeviceEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(MouseDeviceEvent), Is.EqualTo(24)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_MouseMotionEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_MouseMotionEventTests.gen.cs new file mode 100644 index 0000000000..c3c8a87e1a --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_MouseMotionEventTests.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_MouseMotionEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(MouseMotionEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(MouseMotionEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(MouseMotionEvent), Is.EqualTo(48)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_MouseWheelEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_MouseWheelEventTests.gen.cs new file mode 100644 index 0000000000..0b4514d76f --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_MouseWheelEventTests.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_MouseWheelEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(MouseWheelEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(MouseWheelEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(MouseWheelEvent), Is.EqualTo(48)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_PaletteTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_PaletteTests.gen.cs new file mode 100644 index 0000000000..a67419410b --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_PaletteTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_PaletteTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Palette))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Palette).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(Palette), Is.EqualTo(24)); + } + else + { + Assert.That(sizeof(Palette), Is.EqualTo(16)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_PathInfoTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_PathInfoTests.gen.cs new file mode 100644 index 0000000000..ec11e366f1 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_PathInfoTests.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_PathInfoTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PathInfo))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(PathInfo).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(PathInfo), Is.EqualTo(40)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_PenButtonEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_PenButtonEventTests.gen.cs new file mode 100644 index 0000000000..d19b6b7a32 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_PenButtonEventTests.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_PenButtonEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PenButtonEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(PenButtonEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(PenButtonEvent), Is.EqualTo(64)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_PenCapabilityInfoTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_PenCapabilityInfoTests.gen.cs new file mode 100644 index 0000000000..29cb5f4d76 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_PenCapabilityInfoTests.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_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/SDL3/SDL_PenMotionEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_PenMotionEventTests.gen.cs new file mode 100644 index 0000000000..3b8db4f604 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_PenMotionEventTests.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_PenMotionEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(PenMotionEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(PenMotionEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(PenMotionEvent), Is.EqualTo(64)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_PenTipEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_PenTipEventTests.gen.cs new file mode 100644 index 0000000000..0d2f725cd0 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_PenTipEventTests.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_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/SDL3/SDL_PixelFormatTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_PixelFormatTests.gen.cs new file mode 100644 index 0000000000..bcbfc1bb28 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_PixelFormatTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_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/SDL3/SDL_PointTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_PointTests.gen.cs new file mode 100644 index 0000000000..353832d1b2 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_PointTests.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_PointTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Point))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Point).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(Point), Is.EqualTo(8)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_QuitEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_QuitEventTests.gen.cs new file mode 100644 index 0000000000..d3a7cb55d9 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_QuitEventTests.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_QuitEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(QuitEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(QuitEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(QuitEvent), Is.EqualTo(16)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_RectTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_RectTests.gen.cs new file mode 100644 index 0000000000..7d711d64bc --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_RectTests.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_RectTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Rect))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Rect).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(Rect), Is.EqualTo(16)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_RendererInfoTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_RendererInfoTests.gen.cs new file mode 100644 index 0000000000..7615e57f76 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_RendererInfoTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_RendererInfoTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(RendererInfo))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(RendererInfo).IsLayoutSequential, Is.True); + } + + /// 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)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_SensorEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_SensorEventTests.gen.cs new file mode 100644 index 0000000000..21f1941f2f --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_SensorEventTests.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_SensorEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(SensorEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(SensorEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(SensorEvent), Is.EqualTo(56)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_StorageInterfaceTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_StorageInterfaceTests.gen.cs new file mode 100644 index 0000000000..1da5f632dc --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_StorageInterfaceTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_StorageInterfaceTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(StorageInterface))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(StorageInterface).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(StorageInterface), Is.EqualTo(80)); + } + else + { + Assert.That(sizeof(StorageInterface), Is.EqualTo(40)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_SurfaceTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_SurfaceTests.gen.cs new file mode 100644 index 0000000000..229a4557fb --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_SurfaceTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_SurfaceTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Surface))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Surface).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(Surface), Is.EqualTo(96)); + } + else + { + Assert.That(sizeof(Surface), Is.EqualTo(60)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_TextEditingEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_TextEditingEventTests.gen.cs new file mode 100644 index 0000000000..1ab94ba14e --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_TextEditingEventTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_TextEditingEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(TextEditingEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(TextEditingEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(TextEditingEvent), Is.EqualTo(40)); + } + else + { + Assert.That(sizeof(TextEditingEvent), Is.EqualTo(32)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_TextInputEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_TextInputEventTests.gen.cs new file mode 100644 index 0000000000..85f19d4632 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_TextInputEventTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_TextInputEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(TextInputEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(TextInputEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(TextInputEvent), Is.EqualTo(32)); + } + else + { + Assert.That(sizeof(TextInputEvent), Is.EqualTo(24)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_TouchFingerEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_TouchFingerEventTests.gen.cs new file mode 100644 index 0000000000..3792bd554a --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_TouchFingerEventTests.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_TouchFingerEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(TouchFingerEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(TouchFingerEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(TouchFingerEvent), Is.EqualTo(56)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_UserEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_UserEventTests.gen.cs new file mode 100644 index 0000000000..d86af74fc8 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_UserEventTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_UserEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(UserEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(UserEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(UserEvent), Is.EqualTo(40)); + } + else + { + Assert.That(sizeof(UserEvent), Is.EqualTo(32)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_VersionTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_VersionTests.gen.cs new file mode 100644 index 0000000000..02837dce58 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_VersionTests.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_VersionTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Version))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Version).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(Version), Is.EqualTo(3)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_VertexTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_VertexTests.gen.cs new file mode 100644 index 0000000000..455a7e792e --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_VertexTests.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_VertexTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(Vertex))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(Vertex).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(Vertex), Is.EqualTo(32)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_VirtualJoystickDescTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_VirtualJoystickDescTests.gen.cs new file mode 100644 index 0000000000..a3d17eec5a --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_VirtualJoystickDescTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_VirtualJoystickDescTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(VirtualJoystickDesc))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(VirtualJoystickDesc).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(VirtualJoystickDesc), Is.EqualTo(88)); + } + else + { + Assert.That(sizeof(VirtualJoystickDesc), Is.EqualTo(56)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_WindowEventTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_WindowEventTests.gen.cs new file mode 100644 index 0000000000..b21ad65882 --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_WindowEventTests.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_WindowEventTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(WindowEvent))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(WindowEvent).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + Assert.That(sizeof(WindowEvent), Is.EqualTo(32)); + } +} diff --git a/tests/SDL/SDL/SDL3/SDL3/SDL_hid_device_infoTests.gen.cs b/tests/SDL/SDL/SDL3/SDL3/SDL_hid_device_infoTests.gen.cs new file mode 100644 index 0000000000..0ffaadf66e --- /dev/null +++ b/tests/SDL/SDL/SDL3/SDL3/SDL_hid_device_infoTests.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// Ported from SDL.h and corresponding dependencies of SDL3. +// Original source is Copyright (C) 1997-2024 Sam Lantinga. Licensed under the zlib license. +using System; +using System.Runtime.InteropServices; +using NUnit.Framework; + +namespace Silk.NET.SDL.UnitTests; + +/// Provides validation of the struct. +public static unsafe partial class SDL_hid_device_infoTests +{ + /// Validates that the struct is blittable. + + [Test] + public static void IsBlittableTest() + { + Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(HidDeviceInfo))); + } + + /// Validates that the struct has the right . + + [Test] + public static void IsLayoutSequentialTest() + { + Assert.That(typeof(HidDeviceInfo).IsLayoutSequential, Is.True); + } + + /// Validates that the struct has the correct size. + + [Test] + public static void SizeOfTest() + { + if (Environment.Is64BitProcess) + { + Assert.That(sizeof(HidDeviceInfo), Is.EqualTo(80)); + } + else + { + Assert.That(sizeof(HidDeviceInfo), Is.EqualTo(52)); + } + } +} diff --git a/tests/SDL/SDL/SDL3/SDL_DateTimeTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_DateTimeTests.gen.cs index 60ea2381fc..1c67899097 100644 --- a/tests/SDL/SDL/SDL3/SDL_DateTimeTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_DateTimeTests.gen.cs @@ -7,10 +7,10 @@ namespace Silk.NET.SDL.UnitTests; -/// Provides validation of the struct. +/// Provides validation of the struct. public static unsafe partial class SDL_DateTimeTests { - /// Validates that the struct is blittable. + /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() @@ -18,7 +18,7 @@ public static void IsBlittableTest() Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(System.DateTime))); } - /// Validates that the struct has the right . + /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() @@ -26,7 +26,7 @@ public static void IsLayoutSequentialTest() Assert.That(typeof(System.DateTime).IsLayoutSequential, Is.True); } - /// Validates that the struct has the correct size. + /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() diff --git a/tests/SDL/SDL/SDL3/SDL_GUIDTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_GUIDTests.gen.cs index e2633b73b9..778e4078c4 100644 --- a/tests/SDL/SDL/SDL3/SDL_GUIDTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_GUIDTests.gen.cs @@ -7,10 +7,10 @@ namespace Silk.NET.SDL.UnitTests; -/// Provides validation of the struct. +/// Provides validation of the struct. public static unsafe partial class SDL_GUIDTests { - /// Validates that the struct is blittable. + /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() @@ -18,7 +18,7 @@ public static void IsBlittableTest() Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(System.Guid))); } - /// Validates that the struct has the right . + /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() @@ -26,7 +26,7 @@ public static void IsLayoutSequentialTest() Assert.That(typeof(System.Guid).IsLayoutSequential, Is.True); } - /// Validates that the struct has the correct size. + /// Validates that the struct has the correct size. [Test] public static void SizeOfTest() diff --git a/tests/SDL/SDL/SDL3/SDL_VersionTests.gen.cs b/tests/SDL/SDL/SDL3/SDL_VersionTests.gen.cs index 37e5787ecd..068ea7e0c8 100644 --- a/tests/SDL/SDL/SDL3/SDL_VersionTests.gen.cs +++ b/tests/SDL/SDL/SDL3/SDL_VersionTests.gen.cs @@ -7,10 +7,10 @@ namespace Silk.NET.SDL.UnitTests; -/// Provides validation of the struct. +/// Provides validation of the struct. public static unsafe partial class SDL_VersionTests { - /// Validates that the struct is blittable. + /// Validates that the struct is blittable. [Test] public static void IsBlittableTest() @@ -18,7 +18,7 @@ public static void IsBlittableTest() Assert.That(Marshal.SizeOf(), Is.EqualTo(sizeof(System.Version))); } - /// Validates that the struct has the right . + /// Validates that the struct has the right . [Test] public static void IsLayoutSequentialTest() @@ -26,7 +26,7 @@ public static void IsLayoutSequentialTest() Assert.That(typeof(System.Version).IsLayoutSequential, Is.True); } - /// Validates that the struct has the correct size. + /// Validates that the struct has the correct size. [Test] public static void SizeOfTest()