MCPcopy Index your code
hub / github.com/plotly/plotly.js / createVAO

Function createVAO

stackgl_modules/index.js:24750–24763  ·  view source on GitHub ↗
(gl, attributes, elements, elementsType)

Source from the content-addressed store, hash-verified

24748}
24749
24750function createVAO(gl, attributes, elements, elementsType) {
24751 var ext = gl.createVertexArray
24752 ? new ExtensionShim(gl)
24753 : gl.getExtension('OES_vertex_array_object')
24754 var vao
24755
24756 if(ext) {
24757 vao = createVAONative(gl, ext)
24758 } else {
24759 vao = createVAOEmulated(gl)
24760 }
24761 vao.update(attributes, elements, elementsType)
24762 return vao
24763}
24764
24765module.exports = createVAO
24766

Callers 11

createABigTriangleFunction · 0.85
createBackgroundCubeFunction · 0.85
createLinesFunction · 0.85
createTextSpritesFunction · 0.85
createVectorMeshFunction · 0.85
createErrorBarsFunction · 0.85
createLinePlotFunction · 0.85
createSimplicialMeshFunction · 0.85
createPointCloudFunction · 0.85
createSpikesFunction · 0.85
createSurfacePlotFunction · 0.85

Calls 2

createVAONativeFunction · 0.85
createVAOEmulatedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…