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

x/gluten/src/webgl/mod.ts>WebGLRenderingContext#getExtension

OpenGL bindings & WebGL API implementation for Deno.
Latest
method WebGLRenderingContext.prototype.getExtension
import { WebGLRenderingContext } from "https://deno.land/x/gluten@0.1.7/src/webgl/mod.ts";

Returns an object if, and only if, name is an ASCII case-insensitive match [HTML] for one of the names returned from getSupportedExtensions; otherwise, returns null. The object returned from getExtension contains any constants or functions provided by the extension. A returned object may have no constants or functions if the extension does not define any, but a unique object must still be returned. That object is used to indicate that the extension has been enabled.

Parameters

name: string