Class: BitmapTextPipe
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/GpuBitmapTextPipe.d.ts:5
Internal
Extends
Constructors
Constructor
> new BitmapTextPipe(renderer): BitmapTextPipe
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/AbstractBitmapTextPipe.d.ts:16
Parameters
renderer
Returns
BitmapTextPipe
Inherited from
AbstractBitmapTextPipe.constructor
Properties
_renderer
> protected _renderer: Renderer
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/AbstractBitmapTextPipe.d.ts:14
Inherited from
AbstractBitmapTextPipe._renderer
Methods
addRenderable()
> addRenderable(bitmapText, instructionSet): void
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/AbstractBitmapTextPipe.d.ts:18
This is where the renderable is added to the instruction set. This is called once per renderable. For instance, a MeshRenderPipe could be used to enqueue a 'draw mesh' command to the rendering instruction set, catering to the rendering of mesh geometry. In more complex scenarios, such as the SpritePipe, this seamlessly coordinates with a batchPipe to efficiently batch and add batch instructions to the instructions set
Add is called when the instructions set is being built.
Parameters
bitmapText
instructionSet
the instruction set currently being built
Returns
void
Inherited from
AbstractBitmapTextPipe.addRenderable
destroy()
> destroy(): void
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/AbstractBitmapTextPipe.d.ts:25
Returns
void
Inherited from
AbstractBitmapTextPipe.destroy
getSdfShader()
> protected getSdfShader(): SdfShader | null
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/GpuBitmapTextPipe.d.ts:11
Returns
SdfShader | null
Overrides
AbstractBitmapTextPipe.getSdfShader
initGpuText()
> initGpuText(bitmapText): BitmapTextGraphics
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/AbstractBitmapTextPipe.d.ts:23
Parameters
bitmapText
Returns
Inherited from
AbstractBitmapTextPipe.initGpuText
updateRenderable()
> updateRenderable(bitmapText): void
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/AbstractBitmapTextPipe.d.ts:19
Called whenever a renderable has been been updated, eg its position has changed. This is only called in the render loop if the instructions set is being reused from the last frame. Otherwise addRenderable is called.
Parameters
bitmapText
Returns
void
Inherited from
AbstractBitmapTextPipe.updateRenderable
validateRenderable()
> validateRenderable(bitmapText): boolean
Defined in: node_modules/pixi.js/lib/scene/text-bitmap/AbstractBitmapTextPipe.d.ts:17
This function is called when the renderer is determining if it can use the same instruction set again to improve performance. If this function returns true, the renderer will rebuild the whole instruction set for the scene. This is only called if the scene has not its changed its structure .
Parameters
bitmapText
Returns
boolean