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

Method setUniformTex

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

Source from the content-addressed store, hash-verified

731
732
733 protected void setUniformTex(int loc, Texture tex) {
734 if (texUnits != null) {
735 Integer unit = texUnits.get(loc);
736 if (unit != null) {
737 pgl.activeTexture(PGL.TEXTURE0 + unit);
738 tex.bind();
739 } else {
740 throw new RuntimeException("Cannot find unit for texture " + tex);
741 }
742 }
743 }
744
745
746 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