-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to SDL3 #153
Comments
You can take look here for sdl3 bindings: |
Thanks! I'll check it out. Ultraviolet currently uses a patched build of SDL2 for Android. |
I'll also need bindings for the gesture detection functionality that was dropped in SDL3. |
@tlgkccampbell Do you remember why you patched SDL instead of using the standard SDL main? |
@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. |
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. |
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. |
https://github.com/libsdl-org/SDL/blob/main/docs/README-migration.md
The text was updated successfully, but these errors were encountered: