 | 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)
Syntaxpublic static void ColorMask(
bool red,
bool green,
bool blue,
bool alpha
)
Public Shared Sub ColorMask (
red As Boolean,
green As Boolean,
blue As Boolean,
alpha As Boolean
)
public:
static void ColorMask(
bool red,
bool green,
bool blue,
bool alpha
)
static member ColorMask :
red : bool *
green : bool *
blue : bool *
alpha : bool -> unit
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