Events
-
AFTER_FLUSH
-
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?
- Since: 3.50.0
- Source: src/renderer/webgl/pipelines/events/AFTER_FLUSH_EVENT.js (Line 7)
-
BEFORE_FLUSH
-
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?
- Since: 3.50.0
- Source: src/renderer/webgl/pipelines/events/BEFORE_FLUSH_EVENT.js (Line 7)
-
BIND
-
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.
- Since: 3.50.0
- Source: src/renderer/webgl/pipelines/events/BIND_EVENT.js (Line 7)
-
BOOT
-
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.
- Since: 3.50.0
- Source: src/renderer/webgl/pipelines/events/BOOT_EVENT.js (Line 7)
-
DESTROY
-
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.
- Since: 3.50.0
- Source: src/renderer/webgl/pipelines/events/DESTROY_EVENT.js (Line 7)
-
REBIND
-
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.
- Since: 3.50.0
- Source: src/renderer/webgl/pipelines/events/REBIND_EVENT.js (Line 7)
-
RESIZE
-
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.
- Since: 3.50.0
- Source: src/renderer/webgl/pipelines/events/RESIZE_EVENT.js (Line 7)