(self, context, viewport, location)
Renders the overlay on screen.

    Args:
      context: MjrContext instance.
      viewport: Viewport instance.
      location: Value defined in PanelLocation enum.
Renders the overlay on screen.
Renders the overlay on screen .
def render(self, context, viewport, location):
    """Renders the overlay on screen.

    Args:
      context: MjrContext instance.
      viewport: Viewport instance.
      location: Value defined in PanelLocation enum.
    """
    columns = self._model.get_columns()
    if not columns:
      return

    columns = np.asarray(columns)
    left_column = '\n'.join(columns[:, 0])
    right_column = '\n'.join(columns[:, 1])
    mjlib.mjr_overlay(
        enums.mjtFont.mjFONT_NORMAL, location.value,
        viewport.mujoco_rect, util.to_binary_string(left_column),
        util.to_binary_string(right_column), context.ptr)
def render ( self , context , viewport , location ) : columns = self . _model . get_columns ( ) if not columns : return columns = np . asarray ( columns ) left_column = '\n' . join ( columns [ : , 0 ] ) right_column = '\n' . join ( columns [ : , 1 ] ) mjlib . mjr_overlay ( enums . mjtFont . mjFONT_NORMAL , location . value , viewport . mujoco_rect , util . to_binary_string ( left_column ) , util . to_binary_string ( right_column ) , context . ptr )