pixi.js
    Preparing search index...

    Class DefaultBatcherAdvanced

    The default batcher is used to batch quads and meshes. This batcher will batch the following elements:

    • tints
    • roundPixels
    • texture
    • transform

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    attributeBuffer: ViewableBuffer

    The buffer containing attribute data for all elements in the batch.

    attributeSize: number

    The current size of the attribute data in the batch.

    batches: Batch[] = []

    An array of all batches created during the current rendering process.

    batchIndex: number = 0

    The current index of the batch being processed.

    dirty: boolean = true

    Indicates whether the batch data has been modified and needs updating.

    elementSize: number

    The total number of elements currently in the batch.

    elementStart: number

    The starting index of elements in the current batch.

    geometry: BatchGeometry = ...

    The geometry used by this batcher. Must be implemented by subclasses.

    indexBuffer: IndexBufferArray

    The buffer containing index data for all elements in the batch.

    indexSize: number

    The current size of the index data in the batch.

    maxTextures: number

    The maximum number of textures per batch.

    name: "default" = DefaultBatcher.extension.name

    The name of the batcher. Must be implemented by subclasses.

    The shader used by this batcher. Must be implemented by subclasses. this can be shared by multiple batchers of the same type.

    uid: number = ...

    unique id for this batcher

    vertexSize: number = 6

    The size of one attribute. 1 = 32 bit. x, y, u, v, color, textureIdAndRound -> total = 6

    defaultOptions: Partial<BatcherOptions> = ...

    Methods

    • breaks the batcher. This happens when a batch gets too big, or we need to switch to a different type of rendering (a filter for example)

      Parameters

      Returns void

    • Resizes the attribute buffer to the given size (1 = 1 float32)

      Parameters

      • size: number

        the size in vertices to ensure (not bytes!)

      Returns void

    • Resizes the index buffer to the given size (1 = 1 float32)

      Parameters

      • size: number

        the size in vertices to ensure (not bytes!)

      Returns void