Interface ITypedArray

PixiJS classes use this type instead of ArrayBuffer and typed arrays to support expressions like geometry.buffers[0].data[0] = position.x.

Gives access to indexing and length field.

  • @popelyshev: If data is actually ArrayBuffer and throws Exception on indexing - its user problem :)

Memberof

PIXI

interface ITypedArray {
    BYTES_PER_ELEMENT: number;
    [toStringTag]: string;
    byteLength: number;
    length: number;
    slice(begin, end?): ArrayBuffer;
    [index: number]: number;
}

Hierarchy (view full)

Indexable

[index: number]: number

Properties

BYTES_PER_ELEMENT: number
[toStringTag]: string
byteLength: number

Read-only. The length of the ArrayBuffer (in bytes).

length: number

Methods

  • Returns a section of an ArrayBuffer.

    Parameters

    • begin: number
    • Optional end: number

    Returns ArrayBuffer

Generated using TypeDoc