MCPcopy Index your code
hub / github.com/benfry/processing4 / draw

Method draw

core/src/processing/opengl/PShader.java:589–594  ·  view source on GitHub ↗
(int idxId, int count, int offset)

Source from the content-addressed store, hash-verified

587
588
589 protected void draw(int idxId, int count, int offset) {
590 pgl.bindBuffer(PGL.ELEMENT_ARRAY_BUFFER, idxId);
591 pgl.drawElements(PGL.TRIANGLES, count, PGL.INDEX_TYPE,
592 offset * PGL.SIZEOF_INDEX);
593 pgl.bindBuffer(PGL.ELEMENT_ARRAY_BUFFER, 0);
594 }
595
596
597 /**

Callers 8

flushPolysMethod · 0.95
flushSortedPolysMethod · 0.95
flushLinesMethod · 0.95
flushPointsMethod · 0.95
renderPolysMethod · 0.95
renderLinesMethod · 0.95
renderPointsMethod · 0.95
shapeMethod · 0.45

Calls 2

drawElementsMethod · 0.80
bindBufferMethod · 0.45

Tested by

no test coverage detected