LogoPixi’VN
pixi-jsClasses

Class: CanvasGraphicsContextSystem

Defined in: node_modules/pixi.js/lib/scene/graphics/canvas/CanvasGraphicsContextSystem.d.ts:57

A system that manages the rendering of GraphicsContexts for Canvas2D.

Advanced

Implements

Constructors

Constructor

> new CanvasGraphicsContextSystem(renderer): CanvasGraphicsContextSystem

Defined in: node_modules/pixi.js/lib/scene/graphics/canvas/CanvasGraphicsContextSystem.d.ts:67

Parameters

renderer

Renderer

Returns

CanvasGraphicsContextSystem

Properties

defaultOptions

> readonly static defaultOptions: GraphicsContextSystemOptions

Defined in: node_modules/pixi.js/lib/scene/graphics/canvas/CanvasGraphicsContextSystem.d.ts:64

The default options for the GraphicsContextSystem.

Methods

destroy()

> destroy(): void

Defined in: node_modules/pixi.js/lib/scene/graphics/canvas/CanvasGraphicsContextSystem.d.ts:96

Generic destroy methods to be overridden by the subclass

Returns

void

Implementation of

System.destroy


getContextRenderData()

> getContextRenderData(context): CanvasGraphicsContextRenderData

Defined in: node_modules/pixi.js/lib/scene/graphics/canvas/CanvasGraphicsContextSystem.d.ts:78

Internal

Returns the render data for a given GraphicsContext.

Parameters

context

GraphicsContext

The GraphicsContext to get the render data for.

Returns

CanvasGraphicsContextRenderData


getGpuContext()

> getGpuContext(context): CanvasGraphicsContext

Defined in: node_modules/pixi.js/lib/scene/graphics/canvas/CanvasGraphicsContextSystem.d.ts:93

Internal

Returns the CanvasGraphicsContext for a given GraphicsContext. If it does not exist, it will initialize a new one.

Parameters

context

GraphicsContext

The GraphicsContext to get the CanvasGraphicsContext for.

Returns

CanvasGraphicsContext

The CanvasGraphicsContext for the given GraphicsContext.


updateGpuContext()

> updateGpuContext(context): CanvasGraphicsContext

Defined in: node_modules/pixi.js/lib/scene/graphics/canvas/CanvasGraphicsContextSystem.d.ts:85

Internal

Updates the GPU context for a given GraphicsContext.

Parameters

context

GraphicsContext

The GraphicsContext to update.

Returns

CanvasGraphicsContext

The updated CanvasGraphicsContext.