new PIXI.glCore.createContext(canvas, options){WebGLRenderingContext}
Helper class to create a webGL Context
| Name | Type | Description |
|---|---|---|
canvas |
HTMLCanvasElement |
the canvas element that we will get the context from |
options |
Object |
An options object that gets passed in to the canvas element containing the context attributes, |
Returns:
| Type | Description |
|---|---|
| WebGLRenderingContext | the WebGL context |