Home > comp > gb.opengl > gl > colormask 
 fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
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

Gl.Clear, Gl.DepthMask, Gl.StencilMask

See original documentation on OpenGL website