Hacking on a factored, all-template graphics core.