[name]

Module for checking if certain features are available, and for getting WebGL context parameters.

Methods

[method:Boolean checkWebGL]()

Checks if a WebGL context can be obtained.

[method:Boolean checkWorkers]()

Checks if Worker API is available.

[method:Object checkFileAPI]()

Returns last API namespace found in the list: File, FileReader, FileList, Blob.

[method:HTMLElement genWebGLErrorMessage]()

Creates an HTML element with the WebGL non-availability message and the link to the troubleshooting page.

[method:undefined showWebGLErrorMessage]([param:HTMLElement elem])

Generates and shows the WebGL non-availability message by appending it as child to the specified element (or document body if no element is specified).

[method:Boolean checkIOS]()

Retrieves user agent information and finds if it is running on iPhone, iPad or iPod.

[method:Boolean checkAndroid]()

Retrieves user agent information and finds if it is running on Android.

[method:Boolean checkHDR]([param:Object renderer])

Checks if both OES_texture_half_float and OES_texture_half_float_linear extensions are offered by the WebGL context.

[method:String getGPUVendor]([param:Object renderer])

Returns the UNMASKED_VENDOR_WEBGL parameter of the WEBGL_debug_renderer_info extension. If the latter is not present, returns empty string value.

[method:String getGPUModel]([param:Object renderer])

Returns the UNMASKED_RENDERER_WEBGL parameter of the WEBGL_debug_renderer_info extension. If the latter is not present, returns empty string value.

[sourceHint]