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

Method bindTextures

core/src/processing/opengl/PShader.java:858–871  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

856
857
858 protected void bindTextures() {
859 if (textures != null && texUnits != null) {
860 for (int loc: textures.keySet()) {
861 Texture tex = textures.get(loc);
862 Integer unit = texUnits.get(loc);
863 if (unit != null) {
864 pgl.activeTexture(PGL.TEXTURE0 + unit);
865 tex.bind();
866 } else {
867 throw new RuntimeException("Cannot find unit for texture " + tex);
868 }
869 }
870 }
871 }
872
873
874 protected void unbindTextures() {

Callers 1

bindMethod · 0.95

Calls 3

bindMethod · 0.95
activeTextureMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected