libenv/libenv.py
def _render(self, mode) -> Union[bool, np.ndarray]:
        """Internal render method, returns is_open and updates the buffers in self._render"""
        assert self._state == STATE_WAIT_ACT
        assert mode in self.metadata["render.modes"], "unsupported render mode"

        c_mode = self._ffi.new("char[]", mode.encode("utf8"))
        # only pass the render buffers for the selected mode
        space_idx = list(self._render_space.spaces.keys()).index(mode)
        render_buffers = self._renders_buffers[
            space_idx * self.num_envs : (space_idx + 1) * self.num_envs
        ]
        return self._c_lib.libenv_render(self._c_env, c_mode, render_buffers)
Internal render method, returns is_open and updates the buffers in self._render
Internal render method, returns is_open and updates the buffers in self._render
Internal render method returns is_open and updates the buffers in self . _render
def _render(self, mode) -> Union[bool, np.ndarray]:
        assert self._state == STATE_WAIT_ACT
        assert mode in self.metadata["render.modes"], "unsupported render mode"
        c_mode = self._ffi.new("char[]", mode.encode("utf8"))
        space_idx = list(self._render_space.spaces.keys()).index(mode)
        render_buffers = self._renders_buffers[
            space_idx * self.num_envs : (space_idx + 1) * self.num_envs
        ]
        return self._c_lib.libenv_render(self._c_env, c_mode, render_buffers)
def _render ( self , mode ) -> Union [ bool , np . ndarray ] : assert self . _state == STATE_WAIT_ACT assert mode in self . metadata [ "render.modes" ] , "unsupported render mode" c_mode = self . _ffi . new ( "char[]" , mode . encode ( "utf8" ) ) space_idx = list ( self . _render_space . spaces . keys ( ) ) . index ( mode ) render_buffers = self . _renders_buffers [ space_idx * self . num_envs : ( space_idx + 1 ) * self . num_envs ] return self . _c_lib . libenv_render ( self . _c_env , c_mode , render_buffers )
Internal render method, returns is_open and updates the buffers in self._render
Internal render method returns is_open and updates the buffers in self . _render
"""Internal render method, returns is_open and updates the buffers in self._render""" # only pass the render buffers for the selected mode

self
mode