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