@xeokit/xeokit-sdk
Version:
3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision
25 lines (18 loc) • 462 B
JavaScript
import {VBORenderer} from "../../VBORenderer.js";
/**
* @private
*/
export class VBOBatchingPointsRenderer extends VBORenderer {
_draw(drawCfg) {
const {gl} = this._scene.canvas;
const {
state,
frameCtx,
incrementDrawState,
} = drawCfg;
gl.drawArrays(gl.POINTS, 0, state.positionsBuf.numItems);
if (incrementDrawState) {
frameCtx.drawArrays++;
}
}
}