(self, max_width, max_height)
Initializes this context.

    Args:
      max_width: Integer specifying the maximum framebuffer width in pixels.
      max_height: Integer specifying the maximum framebuffer height in pixels.
Initializes this context.
Initializes this context .
def _platform_init(self, max_width, max_height):
    """Initializes this context.

    Args:
      max_width: Integer specifying the maximum framebuffer width in pixels.
      max_height: Integer specifying the maximum framebuffer height in pixels.
    """
    glfw.window_hint(glfw.VISIBLE, 0)
    glfw.window_hint(glfw.DOUBLEBUFFER, 0)
    self._context = glfw.create_window(width=max_width, height=max_height,
                                       title='Invisible window', monitor=None,
                                       share=None)
    # This reference prevents `glfw.destroy_window` from being garbage-collected
    # before the last window is destroyed, otherwise we may get
    # `AttributeError`s when the `__del__` method is later called.
    self._destroy_window = glfw.destroy_window
def _platform_init ( self , max_width , max_height ) : glfw . window_hint ( glfw . VISIBLE , 0 ) glfw . window_hint ( glfw . DOUBLEBUFFER , 0 ) self . _context = glfw . create_window ( width = max_width , height = max_height , title = 'Invisible window' , monitor = None , share = None ) # This reference prevents `glfw.destroy_window` from being garbage-collected # before the last window is destroyed, otherwise we may get # `AttributeError`s when the `__del__` method is later called. self . _destroy_window = glfw . destroy_window