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

Gl.ColorMask (gb.opengl)

Static Sub ColorMask ( Red As Boolean, Green As Boolean, Blue As Boolean, Alpha As Boolean )

Parameters

buf

For Gl.ColorMaski, specifies the index of the draw buffer whose color mask to set.
red, green, blue, alpha

Specify whether red, green, blue, and alpha are to be written into the frame buffer. The initial values are all Gl.TRUE, indicating that the color components are written.

Description

Gl.ColorMask and Gl.ColorMaski specify whether the individual color components in the frame buffer can or cannot be written. Gl.ColorMaski sets the mask for a specific draw buffer, whereas Gl.ColorMask sets the mask for all draw buffers. If red is Gl.FALSE, for example, no change is made to the red component of any pixel in any of the color buffers, regardless of the drawing operation attempted.

Changes to individual bits of components cannot be controlled. Rather, changes are either enabled or disabled for entire color components.

Associated Gets

Gl.Get with argument Gl.COLOR_WRITEMASK

See also

See original documentation on OpenGL website