(int loc, int[] vec, int ncoords,
int length)
| 674 | |
| 675 | |
| 676 | protected void setUniformVector(int loc, int[] vec, int ncoords, |
| 677 | int length) { |
| 678 | if (-1 < loc) { |
| 679 | updateIntBuffer(vec); |
| 680 | if (ncoords == 1) { |
| 681 | pgl.uniform1iv(loc, length, intBuffer); |
| 682 | } else if (ncoords == 2) { |
| 683 | pgl.uniform2iv(loc, length, intBuffer); |
| 684 | } else if (ncoords == 3) { |
| 685 | pgl.uniform3iv(loc, length, intBuffer); |
| 686 | } else if (ncoords == 4) { |
| 687 | pgl.uniform3iv(loc, length, intBuffer); |
| 688 | } |
| 689 | } |
| 690 | } |
| 691 | |
| 692 | |
| 693 | protected void setUniformVector(int loc, float[] vec, int ncoords, |
no test coverage detected