Add matrix class; use a fixed vertex array for drawing sprites.