Merge pull request #243 from smoogipoo/update-bindings

Update bindings
This commit is contained in:
Dan Balasescu 2025-08-26 08:25:50 +09:00 committed by GitHub
commit 4f19a14331
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 31 additions and 8 deletions

View File

@ -106,12 +106,17 @@ jobs:
build-ios: build-ios:
name: ios name: ios
runs-on: macos-latest runs-on: macos-15
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
# https://github.com/dotnet/macios/issues/19157
# https://github.com/actions/runner-images/issues/12758
- name: Use Xcode 16.4
run: sudo xcode-select -switch /Applications/Xcode_16.4.app
- name: Build (iOS) - name: Build (iOS)
run: | run: |
modules=("SDL3" "SDL3_image" "SDL3_ttf" "SDL3_mixer") modules=("SDL3" "SDL3_image" "SDL3_ttf" "SDL3_mixer")

2
External/SDL vendored

@ -1 +1 @@
Subproject commit 29cff6e2645cd7d637c502af11a9e3cf8063ccdf Subproject commit 1fbed16cb0512e08651b99f7b0a6c1db4b0b61c6

2
External/SDL_image vendored

@ -1 +1 @@
Subproject commit 90e8ee775595fee870325fc11b8e0291d84a8a6b Subproject commit 68e4836aa83830024672b3fb44516d7d307d5602

2
External/SDL_mixer vendored

@ -1 +1 @@
Subproject commit f9566f4dd643cd5dd6e136e4779fe49fa8c4e3d7 Subproject commit 7bd8237b55e3c4d76f80968e17205f67a76320c1

2
External/SDL_ttf vendored

@ -1 +1 @@
Subproject commit 67eced52533771474d38e38c348eba7c1fc2bbea Subproject commit be945666cab3ad72f42ba19651f7e466cd56bd12

View File

@ -53,6 +53,13 @@ namespace SDL
SDL_CAMERA_POSITION_BACK_FACING, 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 public static unsafe partial class SDL3
{ {
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [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); 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)] [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)] [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
public static extern SDL_CameraID SDL_GetCameraID(SDL_Camera* camera); public static extern SDL_CameraID SDL_GetCameraID(SDL_Camera* camera);

View File

@ -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 public partial struct IMG_AnimationDecoder
{ {
} }
@ -309,7 +317,7 @@ namespace SDL
[DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
[return: NativeTypeName("bool")] [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)] [DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
[return: NativeTypeName("bool")] [return: NativeTypeName("bool")]
@ -329,7 +337,10 @@ namespace SDL
[DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] [DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
[return: NativeTypeName("bool")] [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)] [DllImport("SDL3_image", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
[return: NativeTypeName("bool")] [return: NativeTypeName("bool")]