SDL2 for macOS 9 "rough draft"

https://news.ycombinator.com/rss Hits: 14
Summary

This page is a wiki. Please login or create an account to begin editing. SDL2 for MacOS 9 "rough draft" This is a "rough draft" of SDL2 for MacOS 9, using CodeWarrior Pro 6 and 7. Enough was done to get it building in CW, and the start of a "macosclassic" video driver was created. It DOES seem to basically work, but much still needs to be done. Event handling is just enough to handling Command-Q, there is no audio, etc etc etc. ---- Dev notes: Getting just SDL2 itself building, did take a lot of effort, but it was mostly "mechanical", dealing with the foibles of CodeWarrior, creating project files from scratch, things it couldn't handle, "simple" things like headers missing that are standard on more modern systems, etc. The first step was doing that with all "dummy" drivers. Was a bit shocked I got even that far. The results did absolutely NOTHING in the test programs. With a dummy video driver, they don't even try to set up textures, etc. The key missing part was a Classic MacOS "video" driver, which also includes event handling. I determined it was not possible to "port" the SDL1 driver due to too many changes in paradigms of SDL itself. Once I'd sketched a new one out, and got it hooked into the proper places, the debug output showed the test programs actually working. I then started adding basic MacOS implementations. This effort is in src/video/macosclassic. (I used the QNX driver as a skeleton as it was the smallest and easier to understand.) Compatibility Architecture: 68k PPCMacOS 9 PPC, MacOS 7.6 M68k, using CodeWarrior 6 and 7 Pro.

First seen: 2025-04-10 18:45

Last seen: 2025-04-11 07:47