Skip to main content
Module

x/gluten/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/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