made apply_ methods of render_context public