SDL/examples/renderer/10-geometry
..
geometry.c
README.txt

This example creates an SDL window and renderer, loads a texture from a .bmp
file, and then draws geometry (arbitrary polygons) using it.