(int loc, Texture tex)
| 722 | |
| 723 | |
| 724 | protected void setUniformTex(int loc, Texture tex) { |
| 725 | if (texUnits != null) { |
| 726 | Integer unit = texUnits.get(loc); |
| 727 | if (unit != null) { |
| 728 | pgl.activeTexture(PGL.TEXTURE0 + unit); |
| 729 | tex.bind(); |
| 730 | } else { |
| 731 | throw new RuntimeException("Cannot find unit for texture " + tex); |
| 732 | } |
| 733 | } |
| 734 | } |
| 735 | |
| 736 | |
| 737 | protected void setUniformImpl(String name, int type, Object value) { |
nothing calls this directly
no test coverage detected