Takes a renderer instance instead of a constructor.