Interface Primitive

The data corresponding to a drawArrays or drawElements call to the WebGL API. This data is not interleaved.

interface Primitive {
    attributes: {
        [name: string]: Attribute;
    };
    indices?: number[];
    mode: BeginMode;
}

Properties

attributes: {
    [name: string]: Attribute;
}

A mapping from attribute name to attribute data.

indices?: number[]

Optional indices for the attribute data.

mode: BeginMode

The mode used to draw the attribute data.