Is there any SDL_FillRectEx? (for rotate rects)

I want to rotate a rect (filled) by I cannot found any googd example that was with just rotate textures.
Is there some proper way to fill a rect and draw it in a angle? Like something SDL_FillRectEx a rect version of SDL_RenderCopyEx?

SDL_RenderGeometry() is what you’d use. Calculated the rotated vertex coordinates would be up to you, however.


Thanks man! I will search about it and write a simple example.

I saw it but I have a question:
-does SDL_RenderGeometry needs a tetxture to render? Or can I render a triangle with just color setted by SDL_SetRenderDrawColor?

Sorry, I’ve seen it in the doc as optional. Solved!