pixi.js
    Preparing search index...

    Interface DefaultBatchableMeshElementAdvanced

    Represents a batchable mesh element with default batch properties.

    interface DefaultBatchableMeshElement {
        attributeOffset: number;
        attributeSize: number;
        batcherName: string;
        blendMode: BLEND_MODES;
        color: number;
        indexOffset: number;
        indexSize: number;
        indices: Uint16Array | Uint32Array | number[];
        packAsQuad: false;
        positions: Float32Array | number[];
        roundPixels: 0 | 1;
        texture: Texture;
        topology: Topology;
        transform: Matrix;
        uvs: Float32Array | number[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    attributeOffset: number

    The offset in the attribute buffer.

    attributeSize: number

    The size of the attribute data.

    batcherName: string

    The name of the batcher to use. Must be registered.

    blendMode: BLEND_MODES

    The blend mode to be applied.

    color: number

    The color of the element that will be multiplied with the texture color. This is typically represented as a 32-bit integer in RGBA format.

    indexOffset: number

    The offset in the index buffer.

    indexSize: number

    The size of the index data.

    indices: Uint16Array | Uint32Array | number[]

    The indices of the mesh.

    packAsQuad: false

    Indicates that this element should not be packed as a quad.

    positions: Float32Array | number[]

    The vertex positions of the mesh.

    roundPixels: 0 | 1

    Determines whether the element should be rounded to the nearest pixel.

    • 0: No rounding (default)
    • 1: Round to nearest pixel This can help with visual consistency, especially for pixel art styles.
    texture: Texture

    The texture to be used for rendering.

    topology: Topology

    The topology to be used for rendering.

    transform: Matrix

    The transform matrix of the element. This matrix represents the position, scale, rotation, and skew of the element.

    uvs: Float32Array | number[]

    The UV coordinates of the mesh.