Options
All
  • Public
  • Public/Protected
  • All
Menu

System plugin to the renderer to manage batching.

memberof

PIXI

Hierarchy

Index

Constructors

constructor

Properties

currentRenderer

currentRenderer: ObjectRenderer

Readonly emptyRenderer

emptyRenderer: ObjectRenderer

renderer

renderer: Renderer

Methods

boundArray

  • Assigns batch locations to textures in array based on boundTextures state. All textures in texArray should have _batchEnabled = _batchId, and their count should be less than maxTextures.

    Parameters

    • texArray: BatchTextureArray

      textures to bound

    • boundTextures: BaseTexture<Resource, IAutoDetectOptions>[]

      current state of bound textures

    • batchId: number

      marker for _batchEnabled param of textures in texArray

    • maxTextures: number

      number of texture locations to manipulate

    Returns void

copyBoundTextures

  • Handy function for batch renderers: copies bound textures in first maxTextures locations to array sets actual _batchLocation for them

    Parameters

    Returns void

destroy

  • destroy(): void
  • Generic destroy methods to be overridden by the subclass

    Returns void

flush

  • flush(): void
  • This should be called if you wish to do some custom rendering It will basically render anything that may be batched up such as sprites

    Returns void

reset

  • reset(): void
  • Reset the system to an empty renderer

    Returns void

setObjectRenderer

  • Changes the current renderer to the one given in parameter

    Parameters

    Returns void

Generated using TypeDoc