Skip to main content
Module

x/gluten/mod.ts>WebGLRenderingContext#bindFramebuffer

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

Bind the given WebGLFramebuffer object to the given binding point (target), which must be FRAMEBUFFER. If framebuffer is null, the default framebuffer provided by the context is bound and attempts to modify or query state on target FRAMEBUFFER will generate an INVALID_OPERATION error. An attempt to bind an object marked for deletion will generate an INVALID_OPERATION error, and the current binding will remain untouched.

Parameters

target: number
framebuffer: WebGLFramebuffer | null