Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update to SDL3 #153

Open
jayrulez opened this issue Aug 13, 2023 · 7 comments
Open

Update to SDL3 #153

jayrulez opened this issue Aug 13, 2023 · 7 comments

Comments

@jayrulez
Copy link
Contributor

https://github.com/libsdl-org/SDL/blob/main/docs/README-migration.md

@amerkoleci
Copy link

You can take look here for sdl3 bindings:
https://github.com/amerkoleci/Alimer.Bindings.SDL

@jayrulez
Copy link
Contributor Author

jayrulez commented Aug 13, 2023

You can take look here for sdl3 bindings: https://github.com/amerkoleci/Alimer.Bindings.SDL

Thanks!

I'll check it out.

Ultraviolet currently uses a patched build of SDL2 for Android.
I'll either needs to drop the patch and modify UV to use stock SDL on Android, or create a similar patch.

UltravioletFramework/ultraviolet-sdl2@53e4146

@jayrulez
Copy link
Contributor Author

I'll also need bindings for the gesture detection functionality that was dropped in SDL3.
Perhaps that could be implemented in C# instead of bindings.
https://github.com/libsdl-org/SDL_gesture

@jayrulez
Copy link
Contributor Author

@tlgkccampbell Do you remember why you patched SDL instead of using the standard SDL main?

@tlgkccampbell
Copy link
Collaborator

@jayrulez The unpatched version expects SDL_main to live in a dynamically-linked native library, which isn't something Ultraviolet can accomodate. I needed some way to bootstrap into the .NET code, so I changed the Activity's initialization process to invoke a Java method that could be overridden using the Xamarin bindings instead. I don't know if there's a better way to do this in modern .NET/SDL.

@jayrulez
Copy link
Contributor Author

Thanks! I will look into this in the next week or so. It would be ideal if I could drop the patch, but the patch is very small so it's not a big deal if I have to keep it around.

@jayrulez
Copy link
Contributor Author

https://github.com/dotnet/Silk.NET looks like this project uses an unpatched version of SDL for Android. I'll check out how they do it there.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants