new PIXI.ContextSystem (renderer) overrides
Name | Type | Description |
---|---|---|
renderer |
PIXI.Renderer |
The renderer this System works for. |
Extends
Implements
Members
Extensions being used
Properties:
Name | Type | Description |
---|---|---|
anisotropicFiltering |
EXT_texture_filter_anisotropic |
WebGL v1 and v2 extension |
depthTexture |
WEBGL_depth_texture |
WebGL v1 extension |
drawBuffers |
WEBGL_draw_buffers |
WebGL v1 extension |
floatTexture |
OES_texture_float |
WebGL v1 extension |
loseContext |
WEBGL_lose_context |
WebGL v1 extension |
vertexArrayObject |
OES_vertex_array_object |
WebGL v1 extension |
true
if the context is lost
Either 1 or 2 to reflect the WebGL version being used
- Default Value:
- 1
Methods
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 |
Handle the context change event
Name | Type | Description |
---|---|---|
gl |
WebGLRenderingContext |
new webgl context |
Auto-populate the extensions
Handles a lost webgl context
Name | Type | Description |
---|---|---|
event |
WebGLContextEvent |
The context lost event. |
Handles a restored webgl context
Initialize the context
Name | Type | Description |
---|---|---|
gl |
WebGLRenderingContext |
WebGL context |
Initialize from context options
Name | Type | Description |
---|---|---|
options |
object |
context attributes |
Handle the post-render runner event
Validate context
Name | Type | Description |
---|---|---|
gl |
WebGLRenderingContext |
Render context |
Inherited Properties
From class PIXI.System
renderer Renderer inherited
Reference to the main renderer
Inherited Methods
From class PIXI.System
destroy () void inherited
Destroy and don't use after this.