Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BatchToken

Points to a location within a list of MeshBatches.

Starling uses these tokens in its render cache. Each call to painter.pushState() or painter.popState() provides a token referencing the current location within the cache. In the next frame, if the relevant part of the display tree has not changed, these tokens can be used to render directly from the cache instead of constructing new MeshBatches.

@see Painter

Hierarchy

  • BatchToken

Index

Constructors

constructor

  • new BatchToken(batchID?: number, vertexID?: number, indexID?: number): BatchToken

Properties

batchID

batchID: number

The ID of the current MeshBatch.

indexID

indexID: number

The ID of the next index within the current MeshBatch.

vertexID

vertexID: number

The ID of the next vertex within the current MeshBatch.

Methods

copyFrom

equals

reset

  • reset(): void

setTo

  • setTo(batchID?: number, vertexID?: number, indexID?: number): void

toString

  • toString(): string

Generated using TypeDoc