Split Gfx api into several files for ease of editing.