Create a VAO.
The shader program associated with the VAO.
Optional
attributes: AttributeMapThe attributes to attach to the VAO.
Optional
ebo: ElementBufferThe element buffer object to attach to the VAO.
BadValueError if an attribute is passed undefined
as a value or if an unknown attribute is specified.
Readonly
contextThe rendering context.
Readonly
programThe shader program associated with this VAO.
The element buffer object that is attached to this VAO.
Rasterize the vertex data contained within this VAO.
Optional
uniforms: UniformMapA collection of uniform values to set prior to rasterization.
The type of primitive to rasterize.
The number of elements to skip when rasterizing arrays, or the number of indices to skip when rasterizing elements.
The framebuffer to rasterize to, or null
for the default framebuffer (canvas).
The number of indices or elements to be rendered. Automatically renders all supplied data if undefined
.
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.
The name of the attribute.
The vertex buffer that is bound to the specified attribute.
Set the value of an attribute in this VAO.
The name of the attribute.
The value to pass to the attribute.
BadValueError if an unknown attribute is specified.
A vertex attribute array; a collection of attribute state.
See
WebGLVertexArrayObject