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

Method setUniformTex

core/src/processing/opengl/PShader.java:724–734  ·  view source on GitHub ↗
(int loc, Texture tex)

Source from the content-addressed store, hash-verified

722
723
724 protected void setUniformTex(int loc, Texture tex) {
725 if (texUnits != null) {
726 Integer unit = texUnits.get(loc);
727 if (unit != null) {
728 pgl.activeTexture(PGL.TEXTURE0 + unit);
729 tex.bind();
730 } else {
731 throw new RuntimeException("Cannot find unit for texture " + tex);
732 }
733 }
734 }
735
736
737 protected void setUniformImpl(String name, int type, Object value) {

Callers

nothing calls this directly

Calls 3

activeTextureMethod · 0.80
getMethod · 0.65
bindMethod · 0.45

Tested by

no test coverage detected