Added another struct in the renderer to replace some lone global
variables.