Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gluten/src/webgl/renderingContext.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.0/src/webgl/renderingContext.ts";

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

Parameters

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