StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
StackGenVis/frontend/node_modules/gl-vao/vao.js

28 lines
702 B

4 years ago
"use strict"
var createVAONative = require("./lib/vao-native.js")
var createVAOEmulated = require("./lib/vao-emulated.js")
function ExtensionShim (gl) {
this.bindVertexArrayOES = gl.bindVertexArray.bind(gl)
this.createVertexArrayOES = gl.createVertexArray.bind(gl)
this.deleteVertexArrayOES = gl.deleteVertexArray.bind(gl)
}
function createVAO(gl, attributes, elements, elementsType) {
var ext = gl.createVertexArray
? new ExtensionShim(gl)
: gl.getExtension('OES_vertex_array_object')
var vao
if(ext) {
vao = createVAONative(gl, ext)
} else {
vao = createVAOEmulated(gl)
}
vao.update(attributes, elements, elementsType)
return vao
}
module.exports = createVAO