In a recent project, I wanted to have a scrollable background with a seamless texture. I did this using OpenGL using the below:
glTranslatef(x, y, 0);
(the above switches to the OpenGL texture mode, shifts the texture, and then switches back to Model View).
Is something like this possible in SDL2? I couldn’t find anything obvious and it seemed to me that the only way to achieve the same effect would be to either draw multiple textures, aligned side by side, or to do some maths and work out all the clipping.