I’ve thought about doing this for a while. Build a small toolkit (a library) of helper routines for any program that uses the SDL2 library. That means it will have functions to do the following:
- Draw horizontal and vertical lines in a specified colour.
- Draw coloured rectangles both filled in and empty.
- Draw Circles of specified radius and colour.
- Draw hexagons in either orientation and of a specified size, hollow or filled.
Plus any other things that occur to me. I’ll start on this shortly.