Description
SDL3 is near release, with the 3.1.3 preview version having been released earlier this week. As such, we can start getting ready to work on the SDL3 units.
So, my question is - how should we start? I see three options here:
-
Base our SDL3 units on the SDL2 units we already have. Use the SDL3 migration guide to help us identify which parts need to be changed.
-
Start anew. Use some tool like h2pas to automatically convert the C headers into Pascal units and then tweak the output until we arrive at something we're satisfied with.
-
Start from scratch, manually.
Option 1) would definitely be the easiest, though I am rather worried about the risk of us missing things here and there, leading to hard-to-find bugs where the units compile fine, but the definitions don't match what's in the C headers. As such, I'd be willing to devote some time to try out option 2) and see how that works out.