Phaser API Documentation

  Version: 
Filter
Namespace: Events
Phaser.Renderer.WebGL.Pipelines.Events

Events

AFTER_FLUSH
Focus
Focus

Description:

The WebGLPipeline After Flush Event.

This event is dispatched by a WebGLPipeline right after it has issued a drawArrays command and cleared its vertex count.

Parameters:

name type description
pipeline Phaser.Renderer.WebGL.WebGLPipeline

The pipeline that has flushed.

isPostFlush boolean

Was this flush invoked as part of a post-process, or not?

Focus
Focus
BEFORE_FLUSH
Focus
Focus

Description:

The WebGLPipeline Before Flush Event.

This event is dispatched by a WebGLPipeline right before it is about to flush and issue a bufferData and drawArrays command.

Parameters:

name type description
pipeline Phaser.Renderer.WebGL.WebGLPipeline

The pipeline that is about to flush.

isPostFlush boolean

Was this flush invoked as part of a post-process, or not?

Focus
Focus
BIND
Focus
Focus

Description:

The WebGLPipeline Bind Event.

This event is dispatched by a WebGLPipeline when it is bound by the Pipeline Manager.

Parameters:

name type description
pipeline Phaser.Renderer.WebGL.WebGLPipeline

The pipeline that was bound.

currentShader Phaser.Renderer.WebGL.WebGLShader

The shader that was set as being current.

Focus
Focus
BOOT
Focus
Focus

Description:

The WebGLPipeline Boot Event.

This event is dispatched by a WebGLPipeline when it has completed its boot phase.

Parameters:

name type description
pipeline Phaser.Renderer.WebGL.WebGLPipeline

The pipeline that booted.

Focus
Focus
DESTROY
Focus
Focus

Description:

The WebGLPipeline Destroy Event.

This event is dispatched by a WebGLPipeline when it is starting its destroy process.

Parameters:

name type description
pipeline Phaser.Renderer.WebGL.WebGLPipeline

The pipeline that has flushed.

Focus
Focus
REBIND
Focus
Focus

Description:

The WebGLPipeline ReBind Event.

This event is dispatched by a WebGLPipeline when it is re-bound by the Pipeline Manager.

Parameters:

name type description
pipeline Phaser.Renderer.WebGL.WebGLPipeline

The pipeline that was rebound.

currentShader Phaser.Renderer.WebGL.WebGLShader

The shader that was set as being current.

Focus
Focus
RESIZE
Focus
Focus

Description:

The WebGLPipeline Resize Event.

This event is dispatched by a WebGLPipeline when it is resized, usually as a result of the Renderer resizing.

Parameters:

name type description
width number

The new width of the pipeline.

height number

The new height of the pipeline.

pipeline Phaser.Renderer.WebGL.WebGLPipeline

The pipeline that was resized.

Focus
Focus