glColorMask Function

Syntax

GL_APICALL void GL_APIENTRY glColorMask(
     GLboolean red,
     GLboolean green,
     GLboolean blue,
     GLboolean alpha
);

Parameters

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.

Return Values

No values are returned.

Description

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_OPERATIONThis function was called without any command-list objects bound.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL