Skip to main content
Module

x/gluten/mod.ts>WebGLRenderingContext#viewport

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

Sets the viewport, which specifies the affine transformation of x and y from normalized device coordinates to window coordinates.

Parameters

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