Package glitter :: Package contexts :: Module contextmanager :: Class ContextManager
[hide private]
[frames] | no frames]

Class ContextManager

source code

object --+
         |
        ContextManager

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
push(self, context) source code
 
pop(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
create_default_context()
Create a default offscreen rendering context.
source code
Class Variables [hide private]
  current_context = proxy for context binding
The currently active context.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

create_default_context()
Static Method

source code 

Create a default offscreen rendering context.

To Do:
  • This is window system dependent; create an appropriate context dynamically.
  • When no context exists, create a raw offscreen context instead of a hidden GLUT window so that rendering is possible without an X connection.