maiko icon indicating copy to clipboard operation
maiko copied to clipboard

Update SDL dependent code and makefile segments to prepare for SDL3

Open nbriggs opened this issue 1 year ago • 1 comments

Many APIs have changed between SDL2 and SDL3. This update adds preprocessor conditionals to adapt the Maiko SDL code to allow selection of the SDL major version (2 or 3) from the -DSDL=n define. The expectation is that when SDL 3 is released and has become widely available the processor conditionals could be removed.

The SDL3 implementation is currently available as a preview release, 3.1.0, at SDL3 prerelease 3.1.0

nbriggs avatar Mar 28 '24 00:03 nbriggs

Needs CMake update to support SDL 2/3 choice. Marked as draft until that is completed.

nbriggs avatar Mar 28 '24 00:03 nbriggs

See CMake issue 25816

nbriggs avatar May 07 '24 21:05 nbriggs

NOTE that installing the SDL3 framework for macOS requires installing both the SDL3.xcframework AND share folders into /Library/Frameworks in order for CMake to work, though there is still an issue with CMake for which we have a workaround (noted in the CMakeLists.txt).

nbriggs avatar May 20 '24 06:05 nbriggs