The SDL_gfx library evolved out of the SDL_gfxPrimitives code which provided basic drawing routines such as lines, circles or polygons, and SDL_rotozoom which implemented a interpolating rotozoomer for SDL surfaces.