@lakuna/ugl
    Preparing search index...

    Class VertexArray

    A vertex attribute array; a collection of attribute state.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    context: Context

    The rendering context.

    program: Program

    The shader program associated with this VAO.

    Accessors

    Methods

    • Rasterize the vertex data contained within this VAO.

      Parameters

      • Optionaluniforms: UniformMap

        A collection of uniform values to set prior to rasterization.

      • primitive: Primitive = Primitive.TRIANGLES

        The type of primitive to rasterize.

      • offset: number = 0

        The number of elements to skip when rasterizing arrays, or the number of indices to skip when rasterizing elements.

      • framebuffer: null | Framebuffer = null

        The framebuffer to rasterize to, or null for the default framebuffer (canvas).

      • countOverride: undefined | number = ...

        The number of indices or elements to be rendered. Automatically renders all supplied data if undefined.

      Returns void

      BadValueError if a uniform is passed undefined as a value or if an unknown uniform is specified.

    • Get the value of an attribute in this VAO.

      Parameters

      • name: string

        The name of the attribute.

      Returns undefined | VertexBuffer

      The vertex buffer that is bound to the specified attribute.