Added sdl2 renderer interface. Closes #287.