MCPcopy Index your code
hub / github.com/processing/p5.js / useProgram

Method useProgram

src/webgl/p5.Shader.js:866–872  ·  view source on GitHub ↗

* @chainable * @private

(options)

Source from the content-addressed store, hash-verified

864 * @private
865 */
866 useProgram(options) {
867 if (this._renderer._curShader !== this) {
868 this._renderer._useShader(this);
869 this._renderer._curShader = this;
870 }
871 return this;
872 }
873
874 /**
875 * Sets the shader’s uniform (global) variables.

Callers 4

bindShaderMethod · 0.95
constructorMethod · 0.80
setWebGLUniformValueFunction · 0.80
_useShaderMethod · 0.80

Calls 1

_useShaderMethod · 0.45

Tested by

no test coverage detected