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-util/clear.js

30 lines
600 B

'use strict'
module.exports = function clear (gl, o) {
// TODO: add bg color setup gl.clearColor(r, g, b, a)
var mask = gl.COLOR_BUFFER_BIT
if (!o || o.depth) {
mask |= gl.DEPTH_BUFFER_BIT
}
if (!o || o.stencil) {
mask |= gl.STENCIL_BUFFER_BIT
}
var scissor
if (!o || (o.viewport || o.scissor)) {
// save scissor
scissor = gl.getParameter(gl.SCISSOR_BOX)
var vp = this.viewport
gl.enable(gl.SCISSOR_TEST)
gl.scissor(vp.x, vp.y, vp.width, vp.height)
}
gl.clear(mask)
// restore scissor
if (scissor) {
gl.scissor.apply(gl, scissor);
}
}