diff --git a/ext/SDL b/ext/SDL index c39d772a..57cd131b 160000 --- a/ext/SDL +++ b/ext/SDL @@ -1 +1 @@ -Subproject commit c39d772a07b57e841be4f46e81f72b4d3b6316a8 +Subproject commit 57cd131b7afaf9513eabfbfea7306429c3ba2f03 diff --git a/src/cs/production/SDL.Interop/Generated/AssemblyAttributes.g.cs b/src/cs/production/SDL.Interop/Generated/AssemblyAttributes.g.cs index 6c91941c..c59bedfd 100644 --- a/src/cs/production/SDL.Interop/Generated/AssemblyAttributes.g.cs +++ b/src/cs/production/SDL.Interop/Generated/AssemblyAttributes.g.cs @@ -1,5 +1,5 @@ // -// This code was generated by the following tool on 2025-09-25 23:37:28 GMT+00:00: +// This code was generated by the following tool on 2025-10-13 22:11:34 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v2025.9.8.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/src/cs/production/SDL.Interop/Generated/Runtime.g.cs b/src/cs/production/SDL.Interop/Generated/Runtime.g.cs index 4fdf538e..d26ab3e6 100644 --- a/src/cs/production/SDL.Interop/Generated/Runtime.g.cs +++ b/src/cs/production/SDL.Interop/Generated/Runtime.g.cs @@ -1,5 +1,5 @@ // -// This code was generated by the following tool on 2025-09-25 23:37:28 GMT+00:00: +// This code was generated by the following tool on 2025-10-13 22:11:34 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v2025.9.8.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/src/cs/production/SDL.Interop/Generated/SDL.g.cs b/src/cs/production/SDL.Interop/Generated/SDL.g.cs index 0e1bf1dc..c72e3d35 100644 --- a/src/cs/production/SDL.Interop/Generated/SDL.g.cs +++ b/src/cs/production/SDL.Interop/Generated/SDL.g.cs @@ -1,5 +1,5 @@ // -// This code was generated by the following tool on 2025-09-25 23:37:28 GMT+00:00: +// This code was generated by the following tool on 2025-10-13 22:11:34 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v2025.9.8.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. @@ -347,7 +347,7 @@ public static unsafe partial class SDL [LibraryImport(LibraryName, EntryPoint = "SDL_CreateGPURenderer")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial SDL_Renderer* SDL_CreateGPURenderer(SDL_Window* window, SDL_GPUShaderFormat format_flags, SDL_GPUDevice** device); + public static partial SDL_Renderer* SDL_CreateGPURenderer(SDL_GPUDevice* device, SDL_Window* window); [LibraryImport(LibraryName, EntryPoint = "SDL_CreateGPURenderState")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] @@ -1149,6 +1149,10 @@ public static unsafe partial class SDL [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CString SDL_GetGPUDriver(int index); + [LibraryImport(LibraryName, EntryPoint = "SDL_GetGPURendererDevice")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial SDL_GPUDevice* SDL_GetGPURendererDevice(SDL_Renderer* renderer); + [LibraryImport(LibraryName, EntryPoint = "SDL_GetGPUShaderFormats")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial SDL_GPUShaderFormat SDL_GetGPUShaderFormats(SDL_GPUDevice* device); @@ -1801,6 +1805,10 @@ public static unsafe partial class SDL [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial SDL_PropertiesID SDL_GetSurfaceProperties(SDL_Surface* surface); + [LibraryImport(LibraryName, EntryPoint = "SDL_GetSystemPageSize")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial int SDL_GetSystemPageSize(); + [LibraryImport(LibraryName, EntryPoint = "SDL_GetSystemRAM")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial int SDL_GetSystemRAM(); @@ -1833,6 +1841,10 @@ public static unsafe partial class SDL [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CBool SDL_GetTextureColorModFloat(SDL_Texture* texture, float* r, float* g, float* b); + [LibraryImport(LibraryName, EntryPoint = "SDL_GetTexturePalette")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial SDL_Palette* SDL_GetTexturePalette(SDL_Texture* texture); + [LibraryImport(LibraryName, EntryPoint = "SDL_GetTextureProperties")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial SDL_PropertiesID SDL_GetTextureProperties(SDL_Texture* texture); @@ -2437,6 +2449,14 @@ public static unsafe partial class SDL [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial SDL_SharedObject* SDL_LoadObject(CString sofile); + [LibraryImport(LibraryName, EntryPoint = "SDL_LoadPNG")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial SDL_Surface* SDL_LoadPNG(CString file); + + [LibraryImport(LibraryName, EntryPoint = "SDL_LoadPNG_IO")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial SDL_Surface* SDL_LoadPNG_IO(SDL_IOStream* src, CBool closeio); + [LibraryImport(LibraryName, EntryPoint = "SDL_LockJoysticks")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial void SDL_LockJoysticks(); @@ -3041,6 +3061,14 @@ public static unsafe partial class SDL [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CBool SDL_SaveFile_IO(SDL_IOStream* src, void* data, ulong datasize, CBool closeio); + [LibraryImport(LibraryName, EntryPoint = "SDL_SavePNG")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial CBool SDL_SavePNG(SDL_Surface* surface, CString file); + + [LibraryImport(LibraryName, EntryPoint = "SDL_SavePNG_IO")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial CBool SDL_SavePNG_IO(SDL_Surface* surface, SDL_IOStream* dst, CBool closeio); + [LibraryImport(LibraryName, EntryPoint = "SDL_ScaleSurface")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial SDL_Surface* SDL_ScaleSurface(SDL_Surface* surface, int width, int height, SDL_ScaleMode scaleMode); @@ -3157,6 +3185,10 @@ public static unsafe partial class SDL [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial void SDL_SetGPUBufferName(SDL_GPUDevice* device, SDL_GPUBuffer* buffer, CString text); + [LibraryImport(LibraryName, EntryPoint = "SDL_SetGPURenderState")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial CBool SDL_SetGPURenderState(SDL_Renderer* renderer, SDL_GPURenderState* state); + [LibraryImport(LibraryName, EntryPoint = "SDL_SetGPURenderStateFragmentUniforms")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CBool SDL_SetGPURenderStateFragmentUniforms(SDL_GPURenderState* state, uint slot_index, void* data, uint length); @@ -3301,10 +3333,6 @@ public static unsafe partial class SDL [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CBool SDL_SetRenderDrawColorFloat(SDL_Renderer* renderer, float r, float g, float b, float a); - [LibraryImport(LibraryName, EntryPoint = "SDL_SetRenderGPUState")] - [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] - public static partial CBool SDL_SetRenderGPUState(SDL_Renderer* renderer, SDL_GPURenderState* state); - [LibraryImport(LibraryName, EntryPoint = "SDL_SetRenderLogicalPresentation")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CBool SDL_SetRenderLogicalPresentation(SDL_Renderer* renderer, int w, int h, SDL_RendererLogicalPresentation mode); @@ -3393,6 +3421,10 @@ public static unsafe partial class SDL [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CBool SDL_SetTextureColorModFloat(SDL_Texture* texture, float r, float g, float b); + [LibraryImport(LibraryName, EntryPoint = "SDL_SetTexturePalette")] + [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] + public static partial CBool SDL_SetTexturePalette(SDL_Texture* texture, SDL_Palette* palette); + [LibraryImport(LibraryName, EntryPoint = "SDL_SetTextureScaleMode")] [UnmanagedCallConv(CallConvs = new[] { typeof(CallConvCdecl) })] public static partial CBool SDL_SetTextureScaleMode(SDL_Texture* texture, SDL_ScaleMode scaleMode); @@ -3917,6 +3949,12 @@ public static unsafe partial class SDL public static readonly int SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE = (int)8; + public static readonly CString SDL_ELF_NOTE_DLOPEN_PRIORITY_RECOMMENDED = (CString)"recommended"u8; + + public static readonly CString SDL_ELF_NOTE_DLOPEN_PRIORITY_REQUIRED = (CString)"required"u8; + + public static readonly CString SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED = (CString)"suggested"u8; + public static readonly float SDL_FLT_EPSILON = (float)1.1920928955078125E-07; public static readonly int SDL_GL_CONTEXT_DEBUG_FLAG = (int)1; @@ -3963,6 +4001,8 @@ public static unsafe partial class SDL public static readonly uint SDL_GPU_COLORCOMPONENT_R = (uint)1; + public static readonly CString SDL_GPU_RENDERER = (CString)"gpu"u8; + public static readonly uint SDL_GPU_SHADERFORMAT_DXBC = (uint)4; public static readonly uint SDL_GPU_SHADERFORMAT_DXIL = (uint)8; @@ -4091,6 +4131,8 @@ public static unsafe partial class SDL public static readonly CString SDL_HINT_AUDIO_DEVICE_APP_ICON_NAME = (CString)"SDL_AUDIO_DEVICE_APP_ICON_NAME"u8; + public static readonly CString SDL_HINT_AUDIO_DEVICE_RAW_STREAM = (CString)"SDL_AUDIO_DEVICE_RAW_STREAM"u8; + public static readonly CString SDL_HINT_AUDIO_DEVICE_SAMPLE_FRAMES = (CString)"SDL_AUDIO_DEVICE_SAMPLE_FRAMES"u8; public static readonly CString SDL_HINT_AUDIO_DEVICE_STREAM_NAME = (CString)"SDL_AUDIO_DEVICE_STREAM_NAME"u8; @@ -4123,8 +4165,6 @@ public static unsafe partial class SDL public static readonly CString SDL_HINT_CPU_FEATURE_MASK = (CString)"SDL_CPU_FEATURE_MASK"u8; - public static readonly CString SDL_HINT_DEBUG_LOGGING = (CString)"SDL_DEBUG_LOGGING"u8; - public static readonly CString SDL_HINT_DISPLAY_USABLE_BOUNDS = (CString)"SDL_DISPLAY_USABLE_BOUNDS"u8; public static readonly CString SDL_HINT_EGL_LIBRARY = (CString)"SDL_EGL_LIBRARY"u8; @@ -4133,6 +4173,8 @@ public static unsafe partial class SDL public static readonly CString SDL_HINT_EMSCRIPTEN_CANVAS_SELECTOR = (CString)"SDL_EMSCRIPTEN_CANVAS_SELECTOR"u8; + public static readonly CString SDL_HINT_EMSCRIPTEN_FILL_DOCUMENT = (CString)"SDL_EMSCRIPTEN_FILL_DOCUMENT"u8; + public static readonly CString SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT = (CString)"SDL_EMSCRIPTEN_KEYBOARD_ELEMENT"u8; public static readonly CString SDL_HINT_ENABLE_SCREEN_KEYBOARD = (CString)"SDL_ENABLE_SCREEN_KEYBOARD"u8; @@ -4471,6 +4513,8 @@ public static unsafe partial class SDL public static readonly CString SDL_HINT_VIDEO_MATCH_EXCLUSIVE_MODE_ON_MOVE = (CString)"SDL_VIDEO_MATCH_EXCLUSIVE_MODE_ON_MOVE"u8; + public static readonly CString SDL_HINT_VIDEO_METAL_AUTO_RESIZE_DRAWABLE = (CString)"SDL_VIDEO_METAL_AUTO_RESIZE_DRAWABLE"u8; + public static readonly CString SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS = (CString)"SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS"u8; public static readonly CString SDL_HINT_VIDEO_OFFSCREEN_SAVE_FRAMES = (CString)"SDL_VIDEO_OFFSCREEN_SAVE_FRAMES"u8; @@ -4727,6 +4771,14 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_DEBUGMODE_BOOLEAN = (CString)"SDL.gpu.device.create.debugmode"u8; + public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN = (CString)"SDL.gpu.device.create.feature.anisotropy"u8; + + public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_FEATURE_CLIP_DISTANCE_BOOLEAN = (CString)"SDL.gpu.device.create.feature.clip_distance"u8; + + public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_FEATURE_DEPTH_CLAMPING_BOOLEAN = (CString)"SDL.gpu.device.create.feature.depth_clamping"u8; + + public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_FEATURE_INDIRECT_DRAW_FIRST_INSTANCE_BOOLEAN = (CString)"SDL.gpu.device.create.feature.indirect_draw_first_instance"u8; + public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_NAME_STRING = (CString)"SDL.gpu.device.create.name"u8; public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_PREFERLOWPOWER_BOOLEAN = (CString)"SDL.gpu.device.create.preferlowpower"u8; @@ -4745,14 +4797,6 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_VERBOSE_BOOLEAN = (CString)"SDL.gpu.device.create.verbose"u8; - public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_VULKAN_DEPTHCLAMP_BOOLEAN = (CString)"SDL.gpu.device.create.vulkan.depthclamp"u8; - - public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_VULKAN_DRAWINDIRECTFIRST_BOOLEAN = (CString)"SDL.gpu.device.create.vulkan.drawindirectfirstinstance"u8; - - public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_VULKAN_SAMPLERANISOTROPY_BOOLEAN = (CString)"SDL.gpu.device.create.vulkan.sampleranisotropy"u8; - - public static readonly CString SDL_PROP_GPU_DEVICE_CREATE_VULKAN_SHADERCLIPDISTANCE_BOOLEAN = (CString)"SDL.gpu.device.create.vulkan.shaderclipdistance"u8; - public static readonly CString SDL_PROP_GPU_DEVICE_DRIVER_INFO_STRING = (CString)"SDL.gpu.device.driver_info"u8; public static readonly CString SDL_PROP_GPU_DEVICE_DRIVER_NAME_STRING = (CString)"SDL.gpu.device.driver_name"u8; @@ -4813,6 +4857,8 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_JOYSTICK_CAP_TRIGGER_RUMBLE_BOOLEAN = (CString)"SDL.joystick.cap.trigger_rumble"u8; + public static readonly CString SDL_PROP_NAME_STRING = (CString)"SDL.name"u8; + public static readonly CString SDL_PROP_PROCESS_BACKGROUND_BOOLEAN = (CString)"SDL.process.background"u8; public static readonly CString SDL_PROP_PROCESS_CREATE_ARGS_POINTER = (CString)"SDL.process.create.args"u8; @@ -4847,6 +4893,8 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_PROCESS_STDOUT_POINTER = (CString)"SDL.process.stdout"u8; + public static readonly CString SDL_PROP_RENDERER_CREATE_GPU_DEVICE_POINTER = (CString)"SDL.renderer.create.gpu.device"u8; + public static readonly CString SDL_PROP_RENDERER_CREATE_GPU_SHADERS_DXIL_BOOLEAN = (CString)"SDL.renderer.create.gpu.shaders_dxil"u8; public static readonly CString SDL_PROP_RENDERER_CREATE_GPU_SHADERS_MSL_BOOLEAN = (CString)"SDL.renderer.create.gpu.shaders_msl"u8; @@ -4905,6 +4953,8 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_RENDERER_TEXTURE_FORMATS_POINTER = (CString)"SDL.renderer.texture_formats"u8; + public static readonly CString SDL_PROP_RENDERER_TEXTURE_WRAPPING_BOOLEAN = (CString)"SDL.renderer.texture_wrapping"u8; + public static readonly CString SDL_PROP_RENDERER_VSYNC_NUMBER = (CString)"SDL.renderer.vsync"u8; public static readonly CString SDL_PROP_RENDERER_VULKAN_DEVICE_POINTER = (CString)"SDL.renderer.vulkan.device"u8; @@ -4965,6 +5015,14 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_TEXTURE_CREATE_FORMAT_NUMBER = (CString)"SDL.texture.create.format"u8; + public static readonly CString SDL_PROP_TEXTURE_CREATE_GPU_TEXTURE_POINTER = (CString)"SDL.texture.create.gpu.texture"u8; + + public static readonly CString SDL_PROP_TEXTURE_CREATE_GPU_TEXTURE_U_POINTER = (CString)"SDL.texture.create.gpu.texture_u"u8; + + public static readonly CString SDL_PROP_TEXTURE_CREATE_GPU_TEXTURE_UV_POINTER = (CString)"SDL.texture.create.gpu.texture_uv"u8; + + public static readonly CString SDL_PROP_TEXTURE_CREATE_GPU_TEXTURE_V_POINTER = (CString)"SDL.texture.create.gpu.texture_v"u8; + public static readonly CString SDL_PROP_TEXTURE_CREATE_HDR_HEADROOM_FLOAT = (CString)"SDL.texture.create.HDR_headroom"u8; public static readonly CString SDL_PROP_TEXTURE_CREATE_HEIGHT_NUMBER = (CString)"SDL.texture.create.height"u8; @@ -4987,6 +5045,8 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_TEXTURE_CREATE_OPENGLES2_TEXTURE_V_NUMBER = (CString)"SDL.texture.create.opengles2.texture_v"u8; + public static readonly CString SDL_PROP_TEXTURE_CREATE_PALETTE_POINTER = (CString)"SDL.texture.create.palette"u8; + public static readonly CString SDL_PROP_TEXTURE_CREATE_SDR_WHITE_POINT_FLOAT = (CString)"SDL.texture.create.SDR_white_point"u8; public static readonly CString SDL_PROP_TEXTURE_CREATE_VULKAN_TEXTURE_NUMBER = (CString)"SDL.texture.create.vulkan.texture"u8; @@ -5009,6 +5069,12 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_TEXTURE_GPU_TEXTURE_POINTER = (CString)"SDL.texture.gpu.texture"u8; + public static readonly CString SDL_PROP_TEXTURE_GPU_TEXTURE_U_POINTER = (CString)"SDL.texture.gpu.texture_u"u8; + + public static readonly CString SDL_PROP_TEXTURE_GPU_TEXTURE_UV_POINTER = (CString)"SDL.texture.gpu.texture_uv"u8; + + public static readonly CString SDL_PROP_TEXTURE_GPU_TEXTURE_V_POINTER = (CString)"SDL.texture.gpu.texture_v"u8; + public static readonly CString SDL_PROP_TEXTURE_HDR_HEADROOM_FLOAT = (CString)"SDL.texture.HDR_headroom"u8; public static readonly CString SDL_PROP_TEXTURE_HEIGHT_NUMBER = (CString)"SDL.texture.height"u8; @@ -5063,6 +5129,8 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_CANVAS_ID_STRING = (CString)"SDL.window.create.emscripten.canvas_id"u8; + public static readonly CString SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_FILL_DOCUMENT_BOOLEAN = (CString)"SDL.window.create.emscripten.fill_document"u8; + public static readonly CString SDL_PROP_WINDOW_CREATE_EMSCRIPTEN_KEYBOARD_ELEMENT_STRING = (CString)"SDL.window.create.emscripten.keyboard_element"u8; public static readonly CString SDL_PROP_WINDOW_CREATE_EXTERNAL_GRAPHICS_CONTEXT_BOOLEAN = (CString)"SDL.window.create.external_graphics_context"u8; @@ -5127,6 +5195,8 @@ public static unsafe partial class SDL public static readonly CString SDL_PROP_WINDOW_EMSCRIPTEN_CANVAS_ID_STRING = (CString)"SDL.window.emscripten.canvas_id"u8; + public static readonly CString SDL_PROP_WINDOW_EMSCRIPTEN_FILL_DOCUMENT_BOOLEAN = (CString)"SDL.window.emscripten.fill_document"u8; + public static readonly CString SDL_PROP_WINDOW_EMSCRIPTEN_KEYBOARD_ELEMENT_STRING = (CString)"SDL.window.emscripten.keyboard_element"u8; public static readonly CString SDL_PROP_WINDOW_HDR_ENABLED_BOOLEAN = (CString)"SDL.window.HDR_enabled"u8; @@ -8035,6 +8105,25 @@ public partial struct SDL_PenTouchEvent public CBool down; // size = 1 } + [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)] + public partial struct SDL_PinchFingerEvent + { + [FieldOffset(0)] + public SDL_EventType type; // size = 4 + + [FieldOffset(4)] + public uint reserved; // size = 4 + + [FieldOffset(8)] + public ulong timestamp; // size = 8 + + [FieldOffset(16)] + public float scale; // size = 4 + + [FieldOffset(20)] + public SDL_WindowID windowID; // size = 4 + } + [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 4)] public partial struct SDL_PixelFormatDetails { @@ -8621,6 +8710,9 @@ public partial struct SDL_Event [FieldOffset(0)] public SDL_TouchFingerEvent tfinger; // size = 56 + [FieldOffset(0)] + public SDL_PinchFingerEvent pinch; // size = 24 + [FieldOffset(0)] public SDL_PenProximityEvent pproximity; // size = 24 @@ -8807,8 +8899,9 @@ public enum SDL_EventType : int SDL_EVENT_DISPLAY_DESKTOP_MODE_CHANGED = 341, SDL_EVENT_DISPLAY_CURRENT_MODE_CHANGED = 342, SDL_EVENT_DISPLAY_CONTENT_SCALE_CHANGED = 343, + SDL_EVENT_DISPLAY_USABLE_BOUNDS_CHANGED = 344, SDL_EVENT_DISPLAY_FIRST = 337, - SDL_EVENT_DISPLAY_LAST = 343, + SDL_EVENT_DISPLAY_LAST = 344, SDL_EVENT_WINDOW_SHOWN = 514, SDL_EVENT_WINDOW_HIDDEN = 515, SDL_EVENT_WINDOW_EXPOSED = 516, @@ -8844,6 +8937,8 @@ public enum SDL_EventType : int SDL_EVENT_KEYBOARD_ADDED = 773, SDL_EVENT_KEYBOARD_REMOVED = 774, SDL_EVENT_TEXT_EDITING_CANDIDATES = 775, + SDL_EVENT_SCREEN_KEYBOARD_SHOWN = 776, + SDL_EVENT_SCREEN_KEYBOARD_HIDDEN = 777, SDL_EVENT_MOUSE_MOTION = 1024, SDL_EVENT_MOUSE_BUTTON_DOWN = 1025, SDL_EVENT_MOUSE_BUTTON_UP = 1026, @@ -8875,6 +8970,9 @@ public enum SDL_EventType : int SDL_EVENT_FINGER_UP = 1793, SDL_EVENT_FINGER_MOTION = 1794, SDL_EVENT_FINGER_CANCELED = 1795, + SDL_EVENT_PINCH_BEGIN = 1808, + SDL_EVENT_PINCH_UPDATE = 1809, + SDL_EVENT_PINCH_END = 1810, SDL_EVENT_CLIPBOARD_UPDATE = 2304, SDL_EVENT_DROP_FILE = 4096, SDL_EVENT_DROP_TEXT = 4097, diff --git a/src/cs/production/SDL.Interop/Generated/SourceGenerators/Microsoft.Interop.LibraryImportGenerator/Microsoft.Interop.LibraryImportGenerator/LibraryImports.g.cs b/src/cs/production/SDL.Interop/Generated/SourceGenerators/Microsoft.Interop.LibraryImportGenerator/Microsoft.Interop.LibraryImportGenerator/LibraryImports.g.cs index 53703e3a..47d61b61 100644 --- a/src/cs/production/SDL.Interop/Generated/SourceGenerators/Microsoft.Interop.LibraryImportGenerator/Microsoft.Interop.LibraryImportGenerator/LibraryImports.g.cs +++ b/src/cs/production/SDL.Interop/Generated/SourceGenerators/Microsoft.Interop.LibraryImportGenerator/Microsoft.Interop.LibraryImportGenerator/LibraryImports.g.cs @@ -644,7 +644,7 @@ namespace bottlenoselabs.Interop public static unsafe partial class SDL { [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_CreateGPURenderer", ExactSpelling = true)] - public static extern partial global::bottlenoselabs.Interop.SDL.SDL_Renderer* SDL_CreateGPURenderer(global::bottlenoselabs.Interop.SDL.SDL_Window* window, global::bottlenoselabs.Interop.SDL.SDL_GPUShaderFormat format_flags, global::bottlenoselabs.Interop.SDL.SDL_GPUDevice** device); + public static extern partial global::bottlenoselabs.Interop.SDL.SDL_Renderer* SDL_CreateGPURenderer(global::bottlenoselabs.Interop.SDL.SDL_GPUDevice* device, global::bottlenoselabs.Interop.SDL.SDL_Window* window); } } namespace bottlenoselabs.Interop @@ -2248,6 +2248,14 @@ public static unsafe partial class SDL } } namespace bottlenoselabs.Interop +{ + public static unsafe partial class SDL + { + [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_GetGPURendererDevice", ExactSpelling = true)] + public static extern partial global::bottlenoselabs.Interop.SDL.SDL_GPUDevice* SDL_GetGPURendererDevice(global::bottlenoselabs.Interop.SDL.SDL_Renderer* renderer); + } +} +namespace bottlenoselabs.Interop { public static unsafe partial class SDL { @@ -3552,6 +3560,14 @@ public static unsafe partial class SDL } } namespace bottlenoselabs.Interop +{ + public static unsafe partial class SDL + { + [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_GetSystemPageSize", ExactSpelling = true)] + public static extern partial int SDL_GetSystemPageSize(); + } +} +namespace bottlenoselabs.Interop { public static unsafe partial class SDL { @@ -3616,6 +3632,14 @@ public static unsafe partial class SDL } } namespace bottlenoselabs.Interop +{ + public static unsafe partial class SDL + { + [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_GetTexturePalette", ExactSpelling = true)] + public static extern partial global::bottlenoselabs.Interop.SDL.SDL_Palette* SDL_GetTexturePalette(global::bottlenoselabs.Interop.SDL.SDL_Texture* texture); + } +} +namespace bottlenoselabs.Interop { public static unsafe partial class SDL { @@ -4824,6 +4848,22 @@ public static unsafe partial class SDL } } namespace bottlenoselabs.Interop +{ + public static unsafe partial class SDL + { + [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_LoadPNG", ExactSpelling = true)] + public static extern partial global::bottlenoselabs.Interop.SDL.SDL_Surface* SDL_LoadPNG(global::Interop.Runtime.CString file); + } +} +namespace bottlenoselabs.Interop +{ + public static unsafe partial class SDL + { + [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_LoadPNG_IO", ExactSpelling = true)] + public static extern partial global::bottlenoselabs.Interop.SDL.SDL_Surface* SDL_LoadPNG_IO(global::bottlenoselabs.Interop.SDL.SDL_IOStream* src, global::Interop.Runtime.CBool closeio); + } +} +namespace bottlenoselabs.Interop { public static unsafe partial class SDL { @@ -6032,6 +6072,22 @@ public static unsafe partial class SDL } } namespace bottlenoselabs.Interop +{ + public static unsafe partial class SDL + { + [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_SavePNG", ExactSpelling = true)] + public static extern partial global::Interop.Runtime.CBool SDL_SavePNG(global::bottlenoselabs.Interop.SDL.SDL_Surface* surface, global::Interop.Runtime.CString file); + } +} +namespace bottlenoselabs.Interop +{ + public static unsafe partial class SDL + { + [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_SavePNG_IO", ExactSpelling = true)] + public static extern partial global::Interop.Runtime.CBool SDL_SavePNG_IO(global::bottlenoselabs.Interop.SDL.SDL_Surface* surface, global::bottlenoselabs.Interop.SDL.SDL_IOStream* dst, global::Interop.Runtime.CBool closeio); + } +} +namespace bottlenoselabs.Interop { public static unsafe partial class SDL { @@ -6264,6 +6320,14 @@ public static unsafe partial class SDL } } namespace bottlenoselabs.Interop +{ + public static unsafe partial class SDL + { + [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_SetGPURenderState", ExactSpelling = true)] + public static extern partial global::Interop.Runtime.CBool SDL_SetGPURenderState(global::bottlenoselabs.Interop.SDL.SDL_Renderer* renderer, global::bottlenoselabs.Interop.SDL.SDL_GPURenderState* state); + } +} +namespace bottlenoselabs.Interop { public static unsafe partial class SDL { @@ -6552,14 +6616,6 @@ public static unsafe partial class SDL } } namespace bottlenoselabs.Interop -{ - public static unsafe partial class SDL - { - [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_SetRenderGPUState", ExactSpelling = true)] - public static extern partial global::Interop.Runtime.CBool SDL_SetRenderGPUState(global::bottlenoselabs.Interop.SDL.SDL_Renderer* renderer, global::bottlenoselabs.Interop.SDL.SDL_GPURenderState* state); - } -} -namespace bottlenoselabs.Interop { public static unsafe partial class SDL { @@ -6736,6 +6792,14 @@ public static unsafe partial class SDL } } namespace bottlenoselabs.Interop +{ + public static unsafe partial class SDL + { + [global::System.Runtime.InteropServices.DllImportAttribute("SDL3", EntryPoint = "SDL_SetTexturePalette", ExactSpelling = true)] + public static extern partial global::Interop.Runtime.CBool SDL_SetTexturePalette(global::bottlenoselabs.Interop.SDL.SDL_Texture* texture, global::bottlenoselabs.Interop.SDL.SDL_Palette* palette); + } +} +namespace bottlenoselabs.Interop { public static unsafe partial class SDL { diff --git a/src/cs/production/SDL_image.Interop/Generated/AssemblyAttributes.g.cs b/src/cs/production/SDL_image.Interop/Generated/AssemblyAttributes.g.cs index 8ead9a9d..3a12d288 100644 --- a/src/cs/production/SDL_image.Interop/Generated/AssemblyAttributes.g.cs +++ b/src/cs/production/SDL_image.Interop/Generated/AssemblyAttributes.g.cs @@ -1,5 +1,5 @@ // -// This code was generated by the following tool on 2025-09-25 23:37:35 GMT+00:00: +// This code was generated by the following tool on 2025-10-13 22:11:45 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v2025.9.8.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/src/cs/production/SDL_image.Interop/Generated/SDL_image.g.cs b/src/cs/production/SDL_image.Interop/Generated/SDL_image.g.cs index 4c4954a7..feaf0523 100644 --- a/src/cs/production/SDL_image.Interop/Generated/SDL_image.g.cs +++ b/src/cs/production/SDL_image.Interop/Generated/SDL_image.g.cs @@ -1,5 +1,5 @@ // -// This code was generated by the following tool on 2025-09-25 23:37:35 GMT+00:00: +// This code was generated by the following tool on 2025-10-13 22:11:45 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v2025.9.8.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/src/cs/production/SDL_ttf.Interop/Generated/AssemblyAttributes.g.cs b/src/cs/production/SDL_ttf.Interop/Generated/AssemblyAttributes.g.cs index 3f171f86..c59bedfd 100644 --- a/src/cs/production/SDL_ttf.Interop/Generated/AssemblyAttributes.g.cs +++ b/src/cs/production/SDL_ttf.Interop/Generated/AssemblyAttributes.g.cs @@ -1,5 +1,5 @@ // -// This code was generated by the following tool on 2025-09-25 23:37:30 GMT+00:00: +// This code was generated by the following tool on 2025-10-13 22:11:34 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v2025.9.8.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/src/cs/production/SDL_ttf.Interop/Generated/SDL_ttf.g.cs b/src/cs/production/SDL_ttf.Interop/Generated/SDL_ttf.g.cs index 64fd4d4a..383f97c0 100644 --- a/src/cs/production/SDL_ttf.Interop/Generated/SDL_ttf.g.cs +++ b/src/cs/production/SDL_ttf.Interop/Generated/SDL_ttf.g.cs @@ -1,5 +1,5 @@ // -// This code was generated by the following tool on 2025-09-25 23:37:30 GMT+00:00: +// This code was generated by the following tool on 2025-10-13 22:11:34 GMT+00:00: // https://github.com/bottlenoselabs/c2cs (v2025.9.8.0) // // Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.