Expand Minimize

getExtension method

Enables a passed extension, otherwise returns null.

IE11

Syntax

var retVal = WebGLRenderingContext.getExtension(name);

Parameters

name [in]

Type: String

A case-insensitive name of the extension.

ValueMeaning
OES_texture_float

When enabled, allows 128bits-per-pixel texture components rather than 32bit to be used with texImage2D and texSubImage2D. Call getExtension("gl.OES_texture_float"). When using floating-point textures, linear filtering isn't supported, only nearest filtering.

EXT_texture_filter_anisotropic
0x84FE

Call getExtension("gl.EXT_texture_filter_anisotropic") to enable. When enabled provides anisotropic filtering functionality. Anisotropic filtering enhances image quality for textures at oblique viewing angles. For more info, see Anisotropic filtering.

 

Return value

Type: Object

Object that contains any existing constants or functions defined in the extension, or null.

Remarks

Returns null if an extension isn't supported.

See also

WebGLRenderingContext

 

 

Show:
© 2014 Microsoft