(int loc, Texture tex)
| 731 | |
| 732 | |
| 733 | protected void setUniformTex(int loc, Texture tex) { |
| 734 | if (texUnits != null) { |
| 735 | Integer unit = texUnits.get(loc); |
| 736 | if (unit != null) { |
| 737 | pgl.activeTexture(PGL.TEXTURE0 + unit); |
| 738 | tex.bind(); |
| 739 | } else { |
| 740 | throw new RuntimeException("Cannot find unit for texture " + tex); |
| 741 | } |
| 742 | } |
| 743 | } |
| 744 | |
| 745 | |
| 746 | protected void setUniformImpl(String name, int type, Object value) { |
nothing calls this directly
no test coverage detected