Skip to main content
Module

x/gluten/mod.ts>WebGLRenderingContext#scissor

OpenGL bindings & WebGL API implementation for Deno.
Go to Latest
method WebGLRenderingContext.prototype.scissor
import { WebGLRenderingContext } from "https://deno.land/x/gluten@0.1.5/mod.ts";

Sets a scissor box, which limits the drawing to a specified rectangle.

Parameters

x: number
y: number
width: number
height: number