الرئيسية > comp > gb.opengl > gl > colormask 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr fa id vi ko ja ru zh zh_TW eo
السابق  التالي  تحرير  إعادة تسمية  تراجع  بحث  الإدارة  
المستندات  
تحذير! هذه الصفحة لم يتم ترجمتها.  See english version 
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 المكوٍّن 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

إنظر أيضا

Gl.Clear, Gl.DepthMask, Gl.StencilMask

See original documentation on OpenGL website