Merge pull request #10549 from Pokechu22/sw-tev-enum-map Refactor various bits of graphics code for readability