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

Method addTexture

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

Source from the content-addressed store, hash-verified

846
847
848 protected void addTexture(PImage tex) {
849 if (textures == null) {
850 textures = new HashSet<>();
851 }
852 textures.add(tex);
853 if (parent != null) {
854 ((PShapeOpenGL)parent).addTexture(tex);
855 }
856 }
857
858
859 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