Moving more functions to the RenderDevice class