Initial port to using SDL2.