(self)
Creates the OpenGL and MuJoCo rendering contexts.
Creates the OpenGL and MuJoCo rendering contexts.
Creates the OpenGL and MuJoCo rendering contexts .
def _make_rendering_contexts(self):
    """Creates the OpenGL and MuJoCo rendering contexts."""
    # Get the offscreen framebuffer size, as specified in the model XML.
    max_width = self.model.vis.global_.offwidth
    max_height = self.model.vis.global_.offheight
    # Create the OpenGL context.
    render_context = _render.Renderer(
        max_width=max_width, max_height=max_height)
    # Create the MuJoCo context.
    mujoco_context = wrapper.MjrContext(self.model, render_context)
    self._contexts = Contexts(gl=render_context, mujoco=mujoco_context)
def _make_rendering_contexts ( self ) : # Get the offscreen framebuffer size, as specified in the model XML. max_width = self . model . vis . global_ . offwidth max_height = self . model . vis . global_ . offheight # Create the OpenGL context. render_context = _render . Renderer ( max_width = max_width , max_height = max_height ) # Create the MuJoCo context. mujoco_context = wrapper . MjrContext ( self . model , render_context ) self . _contexts = Contexts ( gl = render_context , mujoco = mujoco_context )