Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

Gl.ReadBuffer (gb.opengl)

Static Sub ReadBuffer ( Mode As Integer )

Select a color buffer source for pixels.

Parameters

mode

Specifies a color buffer. Accepted values are Gl.FRONT_LEFT, Gl.FRONT_RIGHT, Gl.BACK_LEFT, Gl.BACK_RIGHT, Gl.FRONT, Gl.BACK, Gl.LEFT, and Gl.RIGHT.

Description

Gl.ReadBuffer specifies a color buffer as the source for subsequent Gl.ReadPixels, Gl.CopyTexImage1D, Gl.CopyTexImage2D, Gl.CopyTexSubImage1D, Gl.CopyTexSubImage2D, and Gl.CopyTexSubImage3D commands. mode accepts one of twelve or more predefined values. In a fully configured system, Gl.FRONT, Gl.LEFT, and Gl.FRONT_LEFT all name the front left buffer, Gl.FRONT_RIGHT and Gl.RIGHT name the front right buffer, and Gl.BACK_LEFT and Gl.BACK name the back left buffer.

Nonstereo double-buffered configurations have only a front left and a back left buffer. Single-buffered configurations have a front left and a front right buffer if stereo, and only a front left buffer if nonstereo. It is an error to specify a nonexistent buffer to Gl.ReadBuffer.

mode is initially Gl.FRONT in single-buffered configurations and Gl.BACK in double-buffered configurations.

Errors

Gl.INVALID_ENUM is generated if mode is not one of the twelve (or more) accepted values.

Gl.INVALID_OPERATION is generated if mode specifies a buffer that does not exist.

Associated Gets

Gl.Get with argument Gl.READ_BUFFER

See also

Gl.CopyTexSubImage1D, Gl.CopyTexSubImage2D, Gl.CopyTexSubImage3D, Gl.ReadPixels

See original documentation on OpenGL website