Search code examples
c++openglsdlpolygonsdl-2

How to draw polygons in SDL?


i would like to draw a polygon in SDL. The number of edges will be determined by the program at run time. Can anyone help me with this request?


Solution

  • It's not native SDL, but there's a library sdl_gfx which has a filledPolygonColour function.