(PImage tex)
| 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) { |
no test coverage detected