Helper functions and wrappers for working with SDL2.