-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VL, SD, and IN backends for SDL3. We do this instead of using the combined SDL1/2 backends for SD and IN, as so many functions have been renamed. This does present some problems, as otherwise they share a lot of code, so one will likely end up outdated. Ideally, some of the 'generic' code, particularly in id_sd, can be split out a bit. Otherwise, this is still incomplete: - Some code, particularly in id_sd, is dead. - Graphics is probably broken on big-endian. (Though even SDL2 seemed broken on NetBSD/arm64eb, though that's weird enough I can't guarantee it'd work anyway.) - The pkg-config bits in the makefile are a bit ugly. - We'll possibly want support for vendored SDL3 at some point, too. - One day we'll want an SDL3_gpu based VL backend, but the renderer is good for now. - The SDL3 API is changing rapidly, so this needs to keep up One notable change is that all includes of "SDL.h" need to be replaced with an include of "ck_cross.h", which has the correct logic to include "SDL3/SDL.h" where needed. WITH_SDL is now set to 3 for SDL3 builds.
- Loading branch information
Showing
10 changed files
with
1,484 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.