Rotate triangle with Sdl_gfx

I do not understand why you think it is “insanely long and complicated”. Drawing the triangle each time, with different coordinates, is straightforward in terms of code and almost certainly computationally less effort than rotating a surface!

If for some reason you don’t want to do it this way, you could render the triangle once onto a target texture, and then rotate it using SDL_RenderCopyEx().

1 Like