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

Method bind

core/src/processing/opengl/PShader.java:356–366  ·  view source on GitHub ↗

Initializes (if needed) and binds the shader program.

()

Source from the content-addressed store, hash-verified

354 * Initializes (if needed) and binds the shader program.
355 */
356 public void bind() {
357 init();
358 if (!bound) {
359 pgl.useProgram(glProgram);
360 bound = true;
361 consumeUniforms();
362 bindTextures();
363 }
364
365 if (hasType()) bindTyped();
366 }
367
368
369 /**

Callers 9

flushPolysMethod · 0.95
flushSortedPolysMethod · 0.95
flushLinesMethod · 0.95
flushPointsMethod · 0.95
renderPolysMethod · 0.95
renderLinesMethod · 0.95
renderPointsMethod · 0.95
setUniformTexMethod · 0.45
setTextureMethod · 0.45

Calls 6

initMethod · 0.95
consumeUniformsMethod · 0.95
bindTexturesMethod · 0.95
hasTypeMethod · 0.95
bindTypedMethod · 0.95
useProgramMethod · 0.45

Tested by

no test coverage detected