EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

scissor method

Sets the dimensions of the scissor box.

IE11

 

Syntax

WebGLRenderingContext.scissor(x, y, width, height);

Parameters

x [in]

Type: Number

The horizontal coordinate for the lower left corner of the box. Initially 0.

y [in]

Type: Number

The vertical coordinate for the lower left corner of the box. Initially 0.

width [in]

Type: Number

The width of the scissor box. For a WebGL context attached to a canvas, this value is the width of the canvas.

height [in]

Type: Number

The height of the scissor box. For a WebGL context attached to a canvas, this value is the height of the canvas.

Return value

This method does not return a value.

Remarks

WebGL errorDescription
gl.INVALID_VALUEEither width or height is a negative value.

 

See also

WebGLRenderingContext

 

 

표시:
© 2014 Microsoft