LogoPixi’VN
pixi-jsClasses

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

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

System.destroy


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

GraphicsContext

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

GraphicsContext

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

GraphicsContext

The GraphicsContext to update.

Returns

GpuGraphicsContext

The updated GpuGraphicsContext.