-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Translated backend from SDL2 to SDL3 #6146
Conversation
Hello. Thanks for the PR. EDIT my bad, more changes than I saw at first glance. |
Also it seems like you copied the file but also based your work on a very old version of the SDL2 backend. We unfortunately cannot make use of any of it. You would need to start from latest version and make change in the same file. Thank you. |
Yeah, I just now realised that it's an old backend. I could translate the current SDL backend to SDL3, since I still need it myself and could be of some use to others. The question now becomes, how do I fit both SDL2 and SDL3 backends in the same file, since a lot of enums and functions were updated in the 3.0 version. Should I use some sort of a macro for that, such as IMGUI_SDL_3? |
I don’t have an answer to your question since I don’t know what has changed yet, since we don’t have a diff. I’ll investigate later. |
Looks like more than I expected has changed. I'll be taking over this, thanks for the base PR! |
No problem! (Should I close this PR?, I don't know how this works haha) |
I close when done, i just want to check if some of the workarounds for older SDL may be removed/simplified now. |
…sdl2.cpp/.h. (#6146) + CI: Update Windows CI to update SDL 2.26.3 instead of 2.0.10
Tangential: pushed 6e976e5 to rename everything from "sdl" to "sdl2" in filenames that didn't have that previously. |
…sdl2.cpp/.h. (#6146) + CI: Update Windows CI to update SDL 2.26.3 instead of 2.0.10
…replaced strings (1/2). (#6146) NO OTHER CHANGES. This WILL NOT compile with SDL3. This intermediate commit designed to make it easier to visualize the meaningful channges commit in the next commit.
…e. Remove some version checks. (#6146) More update upcoming in docking branch.
I can see a new issue that SDL2 backend didn't have: newly created and destroyed Windows are now subject to a very short appear/disappear "animation" in Windows 11, which didn't happen with the SDL2. It makes dragging backends feel quite bad. It's something somewhere in Closing this as merged but I expect SDL3 backend to require further changes. |
My bad, it IS exactly this commit (my build scripts weren't setup ideally for SDL3 and my mod wasn't reflected when I attempted the change. I will open an issue on SDL3 repo. |
SDL 3 Backend
I literally just today wanted to update my engine to SDL3 and found that ImGui backend no longer works, therefore I translated the backend according to SDL3 rules, and as far as I've tested things, everything seems to work.
Screenshots: