move sdl texture stuff in the SDL class