Drawing pipeline

Begun implementation of drawing pipeline.
Implemented matrix pipeline.