MCPcopy Index your code
hub / github.com/spritejs/spritejs / setProgram

Method setProgram

src/node/node.js:456–459  ·  view source on GitHub ↗
(program)

Source from the content-addressed store, hash-verified

454
455 // layer.renderer.createProgram(fragmentShader, vertexShader, attributeOptions)
456 setProgram(program) {
457 this[_program] = program;
458 this.forceUpdate();
459 }
460
461 setShaderAttribute(attrName, setter) {
462 this[_shaderAttrs] = this[_shaderAttrs] || {};

Callers

nothing calls this directly

Calls 1

forceUpdateMethod · 0.95

Tested by

no test coverage detected