glClearColor Function

Syntax

GL_APICALL void GL_APIENTRY glClearColor(
     GLclampf red,
     GLclampf green,
     GLclampf blue,
     GLclampf alpha
);

Parameters

Name Description
in red Red component of the clear color
in green Green component of the clear color
in blue Blue component of the clear color
in alpha Alpha component of the clear color

Return Values

No values are returned.

Description

Sets the color that glClear uses to clear the color buffer.

Configured values are clamped between 0 and 1. No errors occur in this function.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL