Module Expr Str ImportFrom alias Import alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad keyword Num keyword Num keyword Num keyword Num keyword Num keyword Num keyword NameLoad keyword NameLoad keyword Num Assign NameStore ListLoad FunctionDef arguments args defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore ListComp Call NameLoad comprehension NameStore NameLoad CompareIsNot Call NameLoad NameLoad If NameLoad body Return SubscriptLoad NameLoad Index Num orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad CompareIs Call SubscriptLoad NameLoad Index Num NameLoad body Return Assign NameStore ListComp Call NameLoad comprehension NameStore NameLoad CompareIsNot Call NameLoad NameLoad While CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Slice ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad comprehension NameStore NameLoad CompareIsNot Call NameLoad NameLoad While CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Slice ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp CompareIsNot NameLoad NameLoad NameLoad Call NameLoad Assert Call NameLoad AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr NameLoad Dict For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareNotIn NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad body Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr ListLoad TupleLoad Str Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Assert BoolOpOr Call NameLoad NameLoad NameLoad CompareIs NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse If CompareNotEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr CompareIsNot Call NameLoad NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr Call SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad If CompareIsNot NameLoad NameLoad body Return NameLoad orelse Raise Call NameLoad Str decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list
N/A N/A 
Functionality to deal with GL Contexts in vispy. This module is defined
in gloo, because gloo (and the layers that depend on it) need to be
context aware. The vispy.app module "provides" a context, and therefore
depends on this module. Although the GLContext class is aimed for use
by vispy.app (for practical reasons), it should be possible to use
GLContext without using vispy.app by overloading it in an appropriate
manner.

An GLContext object acts as a placeholder on which different parts
of vispy (or other systems) can keep track of information related to
an OpenGL context.
 copy deepcopy N/A weakref glir GlirQueue BaseGlirParser GlirParser glir_logger wrappers BaseGlooFunctions N/A config N/A _default_dict N/A dict red_size 8 green_size 8 blue_size 8 alpha_size 8 depth_size 24 stencil_size 0 double_buffer True stereo False samples 0 N/A canvasses N/A get_default_config N/A N/A N/A N/A N/A Get the default OpenGL context configuration

    Returns
    -------
    config : dict
        Dictionary of config values.
     N/A N/A deepcopy _default_dict N/A get_current_canvas N/A N/A N/A N/A N/A  Get the currently active canvas
    
    Returns None if there is no canvas available. A canvas is made
    active on initialization and before the draw event is emitted.
    
    When a gloo object is created, it is associated with the currently
    active Canvas, or with the next Canvas to be created if there is
    no current Canvas. Use Canvas.set_current() to manually activate a
    canvas.
     N/A cc N/A N/A c N/A c canvasses N/A N/A c None N/A cc N/A N/A N/A cc N/A -1 N/A N/A None N/A set_current_canvas N/A N/A canvas N/A N/A N/A  Make a canvas active. Used primarily by the canvas itself.
     N/A N/A N/A canvas context _do_CURRENT_command True N/A N/A canvasses N/A N/A N/A canvasses N/A -1 canvas N/A N/A N/A cc N/A N/A c N/A c canvasses N/A N/A c None N/A N/A canvas cc N/A N/A N/A N/A cc remove canvas N/A N/A N/A cc append canvas N/A N/A canvasses N/A N/A N/A N/A weakref ref c N/A c cc N/A forget_canvas N/A N/A canvas N/A N/A N/A  Forget about the given canvas. Used by the canvas when closed.
     N/A cc N/A N/A c N/A c canvasses N/A N/A c None N/A N/A canvas cc N/A N/A N/A N/A cc remove canvas N/A N/A canvasses N/A N/A N/A N/A weakref ref c N/A c cc N/A GLContext N/A BaseGlooFunctions N/A N/A An object encapsulating data necessary for a OpenGL context

    Parameters
    ----------
    config : dict | None
        The requested configuration.
    shared : instance of GLContext | None
        The shared context.
     __init__ N/A N/A self config shared N/A None None N/A N/A N/A N/A self _set_config config N/A N/A self _shared N/A N/A shared None shared N/A GLShared N/A N/A isinstance N/A self _shared GLShared N/A N/A self _glir N/A GlirQueue N/A N/A self _do_CURRENT_command False N/A N/A self _last_viewport None N/A __repr__ N/A N/A self N/A N/A N/A N/A <GLContext at 0x%x> N/A id self N/A _set_config N/A N/A self config N/A N/A N/A N/A self _config N/A deepcopy _default_dict N/A N/A N/A N/A self _config update N/A config N/A N/A N/A key val N/A N/A N/A self _config items N/A N/A N/A key _default_dict N/A N/A N/A KeyError N/A Key %r is not a valid GL config key. key N/A N/A N/A isinstance val N/A type N/A _default_dict N/A key N/A N/A N/A TypeError N/A Context value of %r has invalid type. key N/A create_shared N/A N/A self name ref N/A N/A N/A  For the app backends to create the GLShared object.

        Parameters
        ----------
        name : str
            The name.
        ref : object
            The reference.
         N/A N/A N/A self _shared None N/A N/A N/A RuntimeError Can only set_shared once. N/A N/A self _shared N/A GLShared name ref N/A config N/A N/A self N/A N/A N/A  A dictionary describing the configuration of this GL context.
         N/A N/A self _config N/A property glir N/A N/A self N/A N/A N/A  The glir queue for the context. This queue is for objects
        that can be shared accross canvases (if they share a contex).
         N/A N/A self _glir N/A property shared N/A N/A self N/A N/A N/A  Get the object that represents the namespace that can
        potentially be shared between multiple contexts.
         N/A N/A self _shared N/A property capabilities N/A N/A self N/A N/A N/A  The OpenGL capabilities
         N/A N/A deepcopy N/A N/A N/A self shared parser capabilities N/A property flush_commands N/A N/A self event N/A None N/A N/A  Flush

        Parameters
        ----------
        event : instance of Event
            The event.
         N/A N/A self _do_CURRENT_command N/A N/A N/A self _do_CURRENT_command False N/A N/A N/A N/A N/A self shared parser parse N/A N/A CURRENT 0 N/A N/A N/A N/A self glir flush N/A N/A self shared parser N/A set_viewport N/A N/A self N/A args N/A N/A N/A N/A BaseGlooFunctions set_viewport self args N/A N/A self _last_viewport args N/A get_viewport N/A N/A self N/A N/A N/A N/A self _last_viewport N/A N/A GLShared N/A object N/A N/A  Representation of a "namespace" that can be shared between
    different contexts. App backends can associate themselves with this
    object via add_ref().
    
    This object can be used to establish whether two contexts/canvases
    share objects, and can be used as a placeholder to store shared
    information, such as glyph atlasses.
     __init__ N/A N/A self N/A N/A N/A glir_file N/A config N/A glir_file N/A parser_cls GlirParser N/A glir_file N/A N/A parser_cls N/A glir_logger parser_cls glir_file N/A N/A self _parser N/A parser_cls N/A N/A self _name None N/A N/A self _refs N/A N/A __repr__ N/A N/A self N/A N/A N/A N/A <GLShared of %s backend at 0x%x> N/A N/A str N/A self name N/A id self N/A parser N/A N/A self N/A N/A N/A The GLIR parser (shared between contexts)  N/A N/A self _parser N/A property parser N/A N/A self parser N/A N/A N/A N/A N/A isinstance parser BaseGlirParser N/A parser None N/A N/A self _parser parser N/A N/A parser setter add_ref N/A N/A self name ref N/A N/A N/A  Add a reference for the backend object that gives access
        to the low level context. Used in vispy.app.canvas.backends.
        The given name must match with that of previously added
        references.
         N/A N/A N/A self _name None N/A N/A N/A self _name name N/A N/A N/A name N/A self _name N/A N/A N/A RuntimeError Contexts can only share between backends of the same type N/A N/A N/A N/A self _refs append N/A N/A weakref ref ref N/A name N/A N/A self N/A N/A N/A  The name of the canvas backend that this shared namespace is
        associated with. Can be None.
         N/A N/A self _name N/A property ref N/A N/A self N/A N/A N/A  A reference (stored internally via a weakref) to an object
        that the backend system can use to obtain the low-level
        information of the "reference context". In Vispy this will
        typically be the CanvasBackend object.
         N/A N/A self _refs N/A r N/A r N/A self _refs N/A N/A r None N/A ref N/A N/A self _refs N/A N/A N/A self _refs N/A 0 None N/A N/A ref None N/A N/A ref N/A N/A N/A RuntimeError No reference for available for GLShared N/A property N/A FakeCanvas N/A object N/A N/A  Fake canvas to allow using gloo without vispy.app
    
    Instantiate this class to collect GLIR commands from gloo
    interactions. Call flush() in your draw event handler to execute
    the commands in the active contect.
     __init__ N/A N/A self N/A N/A N/A N/A self context N/A GLContext N/A N/A set_current_canvas self N/A flush N/A N/A self N/A N/A N/A  Flush commands. Call this after setting to context to current.
         N/A N/A N/A N/A self context flush_commands N/A N/A