Home / comp / gb.opengl / gl / drawbuffer 
Gl.DrawBuffer (gb.opengl)
Syntax
STATIC SUB DrawBuffer ( Mode AS Integer )

Specify which color buffers are to be drawn into

Parameters

Description

  When colors are written to the frame buffer, they are written into the color buffers specified by

If more than one color buffer is selected for drawing, then blending or logical operations are computed and applied independently for each color buffer and can produce different results in each buffer. Monoscopic contexts include only left buffers, and stereoscopic contexts include both left and right buffers. Likewise, single-buffered contexts include only front buffers, and double-buffered contexts include both front and back buffers. The context is selected at GL initialization.

It is always the case, that Gl.GL_AUXi = GL_AUX0 + i.

Errors

Gl.GL_INVALID_ENUM is generated if mode is not an accepted value.
Gl.GL_INVALID_OPERATION is generated if none of the buffers indicated by mode exists.
Gl.GL_INVALID_OPERATION is generated if Gl.DrawBuffer is called between a call to Gl.Begin and the corresponding call to Gl.End.

Associated Gets

Gl.GetDrawBuffer
Gl.GetAuxBuffers


See also
Gl.BlendFunc , Gl.ColorMask , Gl.IndexMask, Gl.LogicOp, Gl.ReadSource