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#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.0/src/webgl/renderingContext.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