Graphics
#ADD: Can now scale rendering to fit the viewport.

This is important in games where you want to get the benefits of
higher resolutions without stretching the viewport, which would
show more of the game world at higher resolutions. This code
allows games to render to arbitrarily sized viewports/render targets
but have everything scaled to fit a nominal viewport resolution, by
default 1280x720.