I'd like to use Matricies to transform primitive geometric shapes and draw them using the Allegro library using version 4.2 (I can not switch to 5.x just yet). This works fine for non-filled objects that are just a series of lines and any filled object that require explicitly telling allegro each point in the shape (triangles and polygons).
However, I want to be able to draw a filled rectangle that is not axis-aligned.
Is there an algorithm that given the pixel locations of the four corners of a rectangle, allow drawing individual lines to fill it? That would solve the problem for the time being.