Line buffer / triangle buffer, refactoring, prototyping grid