Class WebGL
Represents a container for the static method that retrieves a WebGL context.
Defined in: benchgl.js.
Constructor Attributes | Constructor Name and Description |
---|---|
WebGL()
The WebGL container.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
WebGL.getContext(The, Options)
Tries to retrieve a WebGL, if availale.
|
Method Detail
<static>
{WebGLRenderingContext}
WebGL.getContext(The, Options)
Tries to retrieve a WebGL, if availale.
- Parameters:
- {String|HTMLCanvasElement} The
- canvas id or element to leverage.
- {Object} Options
- for creating the context.
- Returns:
- {WebGLRenderingContext} A WebGL rendering context or null if not available.