MCPcopy Index your code
hub / github.com/processing/processing / draw

Method draw

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

Source from the content-addressed store, hash-verified

578
579
580 protected void draw(int idxId, int count, int offset) {
581 pgl.bindBuffer(PGL.ELEMENT_ARRAY_BUFFER, idxId);
582 pgl.drawElements(PGL.TRIANGLES, count, PGL.INDEX_TYPE,
583 offset * PGL.SIZEOF_INDEX);
584 pgl.bindBuffer(PGL.ELEMENT_ARRAY_BUFFER, 0);
585 }
586
587
588 /**

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