Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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:
© 2015 Microsoft