SDL is a fantastic crossplatform window/input library. Here’s how to get it up
and running in 60 seconds on Mac.
First we need it installed.
Once we have that installed we can create a window with the following code.
Build and Run
You should have a Window now. MacOS makes some of this easy in particular OGL,
although the OGL is quite lacking on MacOS.
Some things to note
- You need to poll the events once a frame.
- Poll the events and swap the window on the same thread it was created on.