UNPKG

@vrame/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

24 lines (18 loc) 522 B
import {VBORenderer} from "../../../VBORenderer.js"; /** * @private */ export class VBOSceneModelLineBatchingRenderer extends VBORenderer { _draw(drawCfg) { const {gl} = this._scene.canvas; const { state, frameCtx, incrementDrawState } = drawCfg; gl.drawElements(gl.LINES, state.indicesBuf.numItems, state.indicesBuf.itemType, 0); if (incrementDrawState) { frameCtx.drawElements++; } } }