Class: createContext

createContext

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,
see https://developer.mozilla.org/en/docs/Web/API/HTMLCanvasElement/getContext for the options available

Returns:
Type Description
WebGLRenderingContext the WebGL context