How to draw geometry shapes in SDL

Hi, I was wondering how can I draw geometry shapes like lines, rectangles,
circle, etc. I know that there’s the SDL_FillRect method so that’ll cover
up the lines (at least horizontal / vertical) and rectangles. But how do I
draw the rest?

Thanks.

Hi, I was wondering how can I draw geometry shapes like lines, rectangles,
circle, etc.

http://www.ferzkopp.net/Software/SDL_gfx-2.0/

I know this is a very old thread, but it might be worth mentioning SDL_RenderGeometry() here because this came up in a recent search.

1 Like