BufferManager Class

Inheritance diagram of BufferManager

class BufferManager

Manages the set of framebuffers for a context.

Use get_buffer_manager to obtain the instance of this class for the current context.

Constructor:

__init__()

Methods:

get_aux_buffer() Get a free auxiliary buffer.
get_buffer_mask() Get a free bitmask buffer.
get_color_buffer() Get the color buffer.
get_depth_buffer() Get the depth buffer.
get_viewport() Get the current OpenGL viewport dimensions.

Methods

BufferManager.get_aux_buffer()

Get a free auxiliary buffer.

If not aux buffers are available, ImageException is raised. Buffers are released when they are garbage collected.

Return type:ColorBufferImage
BufferManager.get_buffer_mask()

Get a free bitmask buffer.

A bitmask buffer is a buffer referencing a single bit in the stencil buffer. If no bits are free, ImageException is raised. Bits are released when the bitmask buffer is garbage collected.

Return type:BufferImageMask
BufferManager.get_color_buffer()

Get the color buffer.

Return type:ColorBufferImage
BufferManager.get_depth_buffer()

Get the depth buffer.

Return type:DepthBufferImage
BufferManager.get_viewport()

Get the current OpenGL viewport dimensions.

Return type:4-tuple of float.
Returns:Left, top, right and bottom dimensions.

Table Of Contents

Previous topic

BufferImageMask Class

Next topic

CheckerImagePattern Class