WebGLContextAttributes

The WebGLContextAttributes interface contains drawing surface attributes and is passed as the second parameter to getContext


Supported Platform(s)

- BlackBerry PlayBook 2.0
- BlackBerry 10
- Ripple Emulator
View Supported Platform Table
APIBB5.0BB6.0BB7.0PB1.0PB2.0BB10Ripple
antialias         Y YY
depth         Y YY
premultipliedAlpha         Y YY
stencil         Y YY

Configuration Document Settings

To use all of the API described for this object, you must ensure the following settings are in your configuration document:

This API does not require a <feature> element to be declared in the configuration document of your BlackBerry WebWorks Application.

Permission Elements (PlayBook and BlackBerry 10+)
This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application.

Properties

boolean antialias
boolean depth
boolean premultipliedAlpha
boolean stencil

Properties

boolean antialias


If the value is true and the implementation supports antialiasing the drawing buffer will perform antialiasing using its choice of technique (multisample/supersample) and quality. If the value is false or the implementation does not support antialiasing, no antialiasing is performed


Supported Platforms
 - BlackBerry PlayBook 2.0
 - BlackBerry 10
 - Ripple Emulator


Default Value:

true


boolean depth


If the value is true, the drawing buffer has a depth buffer of at least 16 bits. If the value is false, no depth buffer is available


Supported Platforms
 - BlackBerry PlayBook 2.0
 - BlackBerry 10
 - Ripple Emulator


Default Value:

true


boolean premultipliedAlpha


If the value is true the page compositor will assume the drawing buffer contains colors with premultiplied alpha. If the value is false the page compositor will assume that colors in the drawing buffer are not premultiplied


Supported Platforms
 - BlackBerry PlayBook 2.0
 - BlackBerry 10
 - Ripple Emulator


Default Value:

true


boolean stencil


If the value is true, the drawing buffer has a stencil buffer of at least 8 bits. If the value is false, no stencil buffer is available


Supported Platforms
 - BlackBerry PlayBook 2.0
 - BlackBerry 10
 - Ripple Emulator


Default Value:

false


Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:45 GMT-0500 (EST)