GL_APICALL void GL_APIENTRY glColorMask(
GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha
);
| Name | Description | |
|---|---|---|
| in | red | Enables or disables the red component. |
| in | green | Enables or disables the green component. |
| in | blue | Enables or disables the blue component. |
| in | alpha | Enables or disables the alpha component. |
Enables or disables writes to the color buffer.
This is configured individually for each component. Each one is enabled by a value of GL_TRUE or disabled by a value of GL_FALSE.
This function generates the following errors.
| GL_INVALID_OPERATION | This function was called without any command-list objects bound. |
|---|
CONFIDENTIAL