glScissor Function

Syntax

GL_APICALL void GL_APIENTRY glScissor(
     GLint x,
     GLint y,
     GLsizei width,
     GLsizei height
);

Parameters

Name Description
in x X coordinate of the lower-left corner of the color buffer's scissor rectangle
in y Y coordinate of the lower-left corner of the color buffer's scissor rectangle
in width Width of the scissor rectangle
in height Height of the scissor rectangle

Return Values

No values are returned.

Description

Configures the scissor rectangle.

This function generates the following errors.

GL_INVALID_VALUEThe width or height argument is negative.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL