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

Method addTexture

core/src/processing/opengl/PShapeOpenGL.java:853–861  ·  view source on GitHub ↗
(PImage tex)

Source from the content-addressed store, hash-verified

851
852
853 protected void addTexture(PImage tex) {
854 if (textures == null) {
855 textures = new HashSet<>();
856 }
857 textures.add(tex);
858 if (parent != null) {
859 ((PShapeOpenGL)parent).addTexture(tex);
860 }
861 }
862
863
864 protected void removeTexture(PImage tex, PShapeOpenGL caller) {

Callers 3

addChildMethod · 0.95
setTextureImplMethod · 0.45
tessellateImplMethod · 0.45

Calls 1

addMethod · 0.45

Tested by

no test coverage detected