Creates a vertex array object.
The program that the VAO is used with.
The attributes associated with the VAO.
Optional
indices: UintTypedArrayThe indices to supply to the element array buffer of this VAO if the data should be indexed.
Private
attributesThe attributes associated with this VAO.
Readonly
contextThe rendering context of this VAO.
Private
elementThe element array buffer of this VAO if its data is indexed.
Readonly
internalThe WebGL API interface of this VAO.
Readonly
programThe program that this VAO is used with.
The attributes associated with this VAO.
The indices in the element array buffer of this VAO if the data is indexed.
The indices in the element array buffer of this VAO if the data is indexed.
Adds an attribute to this VAO.
The attribute to add.
Rasterizes the vertex data stored in this VAO.
Optional
uniforms: UniformSourceA map of uniform variable names to their values to use when rasterizing.
The type of primitive to rasterize.
The number of elements to skip when rasterizing arrays.
Executes the given function with this vertex array object bound, then re-binds the previously-bound vertex array object.
The function to execute.
The return value of the executed function.
Static
Private
bindBinds the given renderbuffer.
The rendering context.
Static
Private
getGets the currently-bound vertex array object.
The rendering context.
The vertex array object.
Static
unbindUnbinds all vertex array objects from the given rendering context.
The rendering context.
Generated using TypeDoc
A collection of attribute state; a vertex attribute array.
See
Attributes