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 |
API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
---|---|---|---|---|---|---|---|
antialias | Y | Y | Y | ||||
depth | Y | Y | Y | ||||
premultipliedAlpha | Y | Y | Y | ||||
stencil | Y | Y | Y |
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