Click or drag to resize

gl.ColorMask Method

Enable and disable writing of frame buffer color components.

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void ColorMask(
	bool red,
	bool green,
	bool blue,
	bool alpha
)

Parameters

red
Type: System.Boolean
whether red can or cannot be written into the frame buffer.
green
Type: System.Boolean
whether green can or cannot be written into the frame buffer.
blue
Type: System.Boolean
whether blue can or cannot be written into the frame buffer.
alpha
Type: System.Boolean
whether alpha can or cannot be written into the frame buffer.
Remarks
The initial values of the parameters are all True, indicating that the color components can be written.

This method specifies whether the individual color components in the frame buffer can or cannot be written. If red is 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.

OpenGL API: glColorMask

See Also