Firefox Tomorrow

webgl extension method

OES_vertex_array_object: isVertexArrayOES() method

View on MDN ↗

The OES_vertex_array_object.isVertexArrayOES() method of the WebGL API returns true if the passed object is a WebGLVertexArrayObject object.

Syntax

isVertexArrayOES(arrayObject)

Parameters

Return value

A GLboolean indicating whether the given object is a WebGLVertexArrayObject object (true) or not (false).

Examples

const ext = gl.getExtension("OES_vertex_array_object");
const vao = ext.createVertexArrayOES();
ext.bindVertexArrayOES(vao);

// …

ext.isVertexArrayOES(vao);

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also