Modern SDL2

A lot of people begin game programming via SDL2, and a lot of them use the venerable LazyFoo tutorials to learn that. Lazyfoo is good still, but SDL2 has added several features since Lazyfoo wrote their tutorials. I see a lot of people writing old SDL code that could be made more succinct with some modern functions, or can otherwise be made faster: Initialization Old way :…