gameforge - v0.1.12
    Preparing search index...

    Class Attribute

    Holds the information for a single attribute structure required to render geometry.

    This does not contain the actual data, but instead has a buffer id that maps to a PIXI.Buffer This can include anything from positions, uvs, normals, colors etc.

    PIXI

    Index

    Constructors

    • Parameters

      • buffer: number

        the id of the buffer that this attribute will look for

      • Optionalsize: number

        the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2.

      • Optionalnormalized: boolean

        should the data be normalized.

      • Optionaltype: TYPES

        what type of number is the attribute. Check PIXI.TYPES to see the ones available

      • Optionalstride: number

        How far apart, in bytes, the start of each value is. (used for interleaving data)

      • Optionalstart: number

        How far into the array to start reading values (used for interleaving data)

      • Optionalinstance: boolean

        Whether the geometry is instanced.

      • Optionaldivisor: number

        Divisor to use when doing instanced rendering

      Returns Attribute

    Properties

    buffer: number
    divisor: number
    instance: boolean
    normalized: boolean
    size: number
    start: number
    stride: number
    type: TYPES

    Methods

    • Destroys the Attribute.

      Returns void

    • Helper function that creates an Attribute based on the information provided

      Parameters

      • buffer: number

        the id of the buffer that this attribute will look for

      • Optionalsize: number

        the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2

      • Optionalnormalized: boolean

        should the data be normalized.

      • Optionaltype: TYPES

        what type of number is the attribute. Check PIXI.TYPES to see the ones available

      • Optionalstride: number

        How far apart, in bytes, the start of each value is. (used for interleaving data)

      Returns Attribute

      • A new PIXI.Attribute based on the information provided