SDL/examples/renderer/02-primitives
..
README.txt
renderer-primitives.c

This example creates an SDL window and renderer, and then draws some lines,
rectangles and points to it every frame.