Skip to content
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

Upgrade to SDL3 #618

Open
lukewilson2002 opened this issue Jan 23, 2025 · 2 comments
Open

Upgrade to SDL3 #618

lukewilson2002 opened this issue Jan 23, 2025 · 2 comments

Comments

@lukewilson2002
Copy link

lukewilson2002 commented Jan 23, 2025

SDL3 released on Jan 21. Are there any plans to upgrade this project, and how would that be done with the current name? Would there be a new repository go-sdl3?

https://github.com/libsdl-org/SDL/releases/tag/release-3.2.0

@veeableful
Copy link
Contributor

Hi @lukewilson2002, thank you for asking! There's no plan yet to update the project to SDL3 due to limited resources 💦 but I'm considering setting up dedicated directory if we do plan on implementing it and perhaps eventually restructuring and renaming the project to go-sdl.

@JupiterRider
Copy link

JupiterRider commented Jan 25, 2025

Hey @veeableful ,
what do you think about making making the new SDL3 binding cgo-free?

I created a PoC if someone is interested:
https://github.com/JupiterRider/purego-sdl3

flibitijibibo uses c2ffi to create a json of the SDL3 API: https://github.com/flibitijibibo/SDL3-CS/blob/main/GenerateBindings/assets/ffi.json

With the help of that json and the go source code generator jennifer https://github.com/dave/jennifer, it should be possible to auto-generate the bindings (or at least a nasty part).

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

No branches or pull requests

3 participants