moved some gfx system functions to Renderer