Skip to main content
Version: Phaser v3.88.2

Renderer.WebGL.Pipelines.Events

AFTER_FLUSH

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.

nametypeoptionaldescription
pipelinePhaser.Renderer.WebGL.WebGLPipelineNoThe pipeline that has flushed.
isPostFlushbooleanNoWas this flush invoked as part of a post-process, or not?

Member of: Phaser.Renderer.WebGL.Pipelines.Events

Source: src/renderer/webgl/pipelines/events/AFTER_FLUSH_EVENT.js#L7
Since: 3.50.0

BEFORE_FLUSH

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.

nametypeoptionaldescription
pipelinePhaser.Renderer.WebGL.WebGLPipelineNoThe pipeline that is about to flush.
isPostFlushbooleanNoWas this flush invoked as part of a post-process, or not?

Member of: Phaser.Renderer.WebGL.Pipelines.Events

Source: src/renderer/webgl/pipelines/events/BEFORE_FLUSH_EVENT.js#L7
Since: 3.50.0

BIND

Description: The WebGLPipeline Bind Event.

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

nametypeoptionaldescription
pipelinePhaser.Renderer.WebGL.WebGLPipelineNoThe pipeline that was bound.
currentShaderPhaser.Renderer.WebGL.WebGLShaderNoThe shader that was set as being current.

Member of: Phaser.Renderer.WebGL.Pipelines.Events

Source: src/renderer/webgl/pipelines/events/BIND_EVENT.js#L7
Since: 3.50.0

BOOT

Description: The WebGLPipeline Boot Event.

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

nametypeoptionaldescription
pipelinePhaser.Renderer.WebGL.WebGLPipelineNoThe pipeline that booted.

Member of: Phaser.Renderer.WebGL.Pipelines.Events

Source: src/renderer/webgl/pipelines/events/BOOT_EVENT.js#L7
Since: 3.50.0

DESTROY

Description: The WebGLPipeline Destroy Event.

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

nametypeoptionaldescription
pipelinePhaser.Renderer.WebGL.WebGLPipelineNoThe pipeline that has flushed.

Member of: Phaser.Renderer.WebGL.Pipelines.Events

Source: src/renderer/webgl/pipelines/events/DESTROY_EVENT.js#L7
Since: 3.50.0

REBIND

Description: The WebGLPipeline ReBind Event.

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

nametypeoptionaldescription
pipelinePhaser.Renderer.WebGL.WebGLPipelineNoThe pipeline that was rebound.
currentShaderPhaser.Renderer.WebGL.WebGLShaderNoThe shader that was set as being current.

Member of: Phaser.Renderer.WebGL.Pipelines.Events

Source: src/renderer/webgl/pipelines/events/REBIND_EVENT.js#L7
Since: 3.50.0

RESIZE

Description: The WebGLPipeline Resize Event.

This event is dispatched by a WebGLPipeline when it is resized, usually as a result

of the Renderer resizing.

nametypeoptionaldescription
widthnumberNoThe new width of the pipeline.
heightnumberNoThe new height of the pipeline.
pipelinePhaser.Renderer.WebGL.WebGLPipelineNoThe pipeline that was resized.

Member of: Phaser.Renderer.WebGL.Pipelines.Events

Source: src/renderer/webgl/pipelines/events/RESIZE_EVENT.js#L7
Since: 3.50.0