Class VAO

A collection of attribute state; a vertex attribute array.

Hierarchy

  • VAO

Constructors

Properties

attributesPrivate: AttributeState[]

The attributes associated with this VAO.

elementArrayBuffer: undefined | Buffer

The element array buffer of this VAO if its data is indexed.

gl: WebGL2RenderingContext

The rendering context of this VAO.

program: Program

The program that this VAO is used with.

vao: WebGLVertexArrayObject

The WebGL API interface of this VAO.

Accessors

Methods

  • Rasterizes the vertex data stored in this VAO.

    Parameters

    • Optional uniforms: UniformSource

      A map of uniform variable names to their values to use when rasterizing.

    • primitive: Primitive = Primitive.TRIANGLES

      The type of primitive to rasterize.

    • offset: number = 0

      The number of elements to skip when rasterizing arrays.

    Returns void

Generated using TypeDoc