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

Method bind

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

Initializes (if needed) and binds the shader program.

()

Source from the content-addressed store, hash-verified

348 * Initializes (if needed) and binds the shader program.
349 */
350 public void bind() {
351 init();
352 if (!bound) {
353 pgl.useProgram(glProgram);
354 bound = true;
355 consumeUniforms();
356 bindTextures();
357 }
358
359 if (hasType()) bindTyped();
360 }
361
362
363 /**

Callers 10

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
startMethod · 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