>I'd like to understand what all that setup does and why it's done a particular way.
That's something you'll only understand after trying to build something non-trivial with an older graphics API like OpenGL.