scissor method

void scissor(
  1. GLint x,
  2. GLint y,
  3. GLsizei width,
  4. GLsizei height,
)

The WebGLRenderingContext.scissor() method of the WebGL API sets a scissor box, which limits the drawing to a specified rectangle.

Implementation

external void scissor(GLint x, GLint y, GLsizei width, GLsizei height);