From 742ac35cbc4a6e33d64ebf52e26b148602ded647 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Tue, 26 Aug 2025 07:57:26 +0900 Subject: [PATCH] Update bindings --- External/SDL | 2 +- External/SDL_image | 2 +- External/SDL_mixer | 2 +- External/SDL_ttf | 2 +- SDL3-CS/SDL3/ClangSharp/SDL_camera.g.cs | 9 ++++++++- .../SDL3_image/ClangSharp/SDL_image.g.cs | 15 +++++++++++++-- 6 files changed, 25 insertions(+), 7 deletions(-) diff --git a/External/SDL b/External/SDL index 29cff6e..1fbed16 160000 --- a/External/SDL +++ b/External/SDL @@ -1 +1 @@ -Subproject commit 29cff6e2645cd7d637c502af11a9e3cf8063ccdf +Subproject commit 1fbed16cb0512e08651b99f7b0a6c1db4b0b61c6 diff --git a/External/SDL_image b/External/SDL_image index 90e8ee7..68e4836 160000 --- a/External/SDL_image +++ b/External/SDL_image @@ -1 +1 @@ -Subproject commit 90e8ee775595fee870325fc11b8e0291d84a8a6b +Subproject commit 68e4836aa83830024672b3fb44516d7d307d5602 diff --git a/External/SDL_mixer b/External/SDL_mixer index f9566f4..7bd8237 160000 --- a/External/SDL_mixer +++ b/External/SDL_mixer @@ -1 +1 @@ -Subproject commit f9566f4dd643cd5dd6e136e4779fe49fa8c4e3d7 +Subproject commit 7bd8237b55e3c4d76f80968e17205f67a76320c1 diff --git a/External/SDL_ttf b/External/SDL_ttf index 67eced5..be94566 160000 --- a/External/SDL_ttf +++ b/External/SDL_ttf @@ -1 +1 @@ -Subproject commit 67eced52533771474d38e38c348eba7c1fc2bbea +Subproject commit be945666cab3ad72f42ba19651f7e466cd56bd12 diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_camera.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_camera.g.cs index 49740d7..2bcc233 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_camera.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_camera.g.cs @@ -53,6 +53,13 @@ namespace SDL SDL_CAMERA_POSITION_BACK_FACING, } + public enum SDL_CameraPermissionState + { + SDL_CAMERA_PERMISSION_STATE_DENIED = -1, + SDL_CAMERA_PERMISSION_STATE_PENDING, + SDL_CAMERA_PERMISSION_STATE_APPROVED, + } + public static unsafe partial class SDL3 { [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] @@ -83,7 +90,7 @@ namespace SDL public static extern SDL_Camera* SDL_OpenCamera(SDL_CameraID instance_id, [NativeTypeName("const SDL_CameraSpec *")] SDL_CameraSpec* spec); [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] - public static extern int SDL_GetCameraPermissionState(SDL_Camera* camera); + public static extern SDL_CameraPermissionState SDL_GetCameraPermissionState(SDL_Camera* camera); [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern SDL_CameraID SDL_GetCameraID(SDL_Camera* camera); diff --git a/SDL3_image-CS/SDL3_image/ClangSharp/SDL_image.g.cs b/SDL3_image-CS/SDL3_image/ClangSharp/SDL_image.g.cs index 1e2ba41..3f3c5b3 100644 --- a/SDL3_image-CS/SDL3_image/ClangSharp/SDL_image.g.cs +++ b/SDL3_image-CS/SDL3_image/ClangSharp/SDL_image.g.cs @@ -45,6 +45,14 @@ namespace SDL { } + public enum IMG_AnimationDecoderStatus + { + IMG_DECODER_STATUS_INVALID = -1, + IMG_DECODER_STATUS_OK, + IMG_DECODER_STATUS_FAILED, + IMG_DECODER_STATUS_COMPLETE, + } + public partial struct IMG_AnimationDecoder { } @@ -309,7 +317,7 @@ namespace SDL [DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("bool")] - public static extern SDLBool IMG_AddAnimationEncoderFrame(IMG_AnimationEncoder* encoder, SDL_Surface* surface, [NativeTypeName("Uint64")] ulong pts); + public static extern SDLBool IMG_AddAnimationEncoderFrame(IMG_AnimationEncoder* encoder, SDL_Surface* surface, [NativeTypeName("Uint64")] ulong duration); [DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("bool")] @@ -329,7 +337,10 @@ namespace SDL [DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("bool")] - public static extern SDLBool IMG_GetAnimationDecoderFrame(IMG_AnimationDecoder* decoder, SDL_Surface** frame, [NativeTypeName("Uint64 *")] ulong* pts); + public static extern SDLBool IMG_GetAnimationDecoderFrame(IMG_AnimationDecoder* decoder, SDL_Surface** frame, [NativeTypeName("Uint64 *")] ulong* duration); + + [DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] + public static extern IMG_AnimationDecoderStatus IMG_GetAnimationDecoderStatus(IMG_AnimationDecoder* decoder); [DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [return: NativeTypeName("bool")]