Class: GraphicsContextSystem
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/GraphicsContextSystem.d.ts:60
A system that manages the rendering of GraphicsContexts.
Advanced
Implements
Constructors
Constructor
> new GraphicsContextSystem(renderer): GraphicsContextSystem
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/GraphicsContextSystem.d.ts:70
Parameters
renderer
Returns
GraphicsContextSystem
Properties
defaultOptions
> readonly static defaultOptions: GraphicsContextSystemOptions
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/GraphicsContextSystem.d.ts:67
The default options for the GraphicsContextSystem.
Methods
destroy()
> destroy(): void
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/GraphicsContextSystem.d.ts:100
Generic destroy methods to be overridden by the subclass
Returns
void
Implementation of
getContextRenderData()
> getContextRenderData(context): GraphicsContextRenderData
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/GraphicsContextSystem.d.ts:81
Internal
Returns the render data for a given GraphicsContext.
Parameters
context
The GraphicsContext to get the render data for.
Returns
GraphicsContextRenderData
getGpuContext()
> getGpuContext(context): GpuGraphicsContext
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/GraphicsContextSystem.d.ts:97
Internal
Returns the GpuGraphicsContext for a given GraphicsContext. If it does not exist, it will initialize a new one.
Parameters
context
The GraphicsContext to get the GpuGraphicsContext for.
Returns
GpuGraphicsContext
The GpuGraphicsContext for the given GraphicsContext.
updateGpuContext()
> updateGpuContext(context): GpuGraphicsContext
Defined in: node_modules/pixi.js/lib/scene/graphics/shared/GraphicsContextSystem.d.ts:89
Internal
Updates the GPU context for a given GraphicsContext. If the context is dirty, it will rebuild the batches and geometry data.
Parameters
context
The GraphicsContext to update.
Returns
GpuGraphicsContext
The updated GpuGraphicsContext.