MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / draw

Function draw

libs/mapv/mapv.3d.js:680–688  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

678 self.camera = new Camera(this.gl);
679
680 function draw() {
681 gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
682 // console.time('draw')
683 for (var i in renderList) {
684 renderList[i].render();
685 }
686 // console.timeEnd('draw')
687 requestAnimationFrame(draw);
688 }
689
690 requestAnimationFrame(draw);
691 }

Callers

nothing calls this directly

Calls 2

renderMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected