Package glitter :: Package contexts :: Module drawbuffers :: Class DrawBufferList
[hide private]
[frames] | no frames]

Class DrawBufferList

source code

object --+
         |
        DrawBufferList

Instance Methods [hide private]
 
__init__(self, _context)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__set__(self, obj, value)
Set all draw buffers.
source code
draw_buffers or int
__getitem__(self, index)
Get the draw buffer attached to this target.
source code
 
__setitem__(self, index, value)
Set a draw buffer.
source code
 
__delitem__(self, index)
Unbind a draw buffer.
source code
 
__len__(self) source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, _context)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__set__(self, obj, value)

source code 

Set all draw buffers.

Parameters:
  • obj (any type) - Ignored.
  • value (draw_buffers or int) - The enum of the draw buffer to bind, a number if it is a color attachment.

__getitem__(self, index)
(Indexing operator)

source code 

Get the draw buffer attached to this target.

Parameters:
  • index (int) - Index of the draw buffer to query.
Returns: draw_buffers or int
The enum of the currently bound draw buffer enum, a number if it is a color attachment.

__setitem__(self, index, value)
(Index assignment operator)

source code 

Set a draw buffer.

Parameters:
  • index (int) - Index of the draw buffer to set.
  • value (draw_buffers or int) - The enum of the draw buffer to bind, a number if it is a color attachment.

__delitem__(self, index)
(Index deletion operator)

source code 

Unbind a draw buffer.

Parameters:
  • index (int) - Index of the draw buffer to unbind.

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)