(Glide64) Refactor all CPU-bound vertex drawing/generating code