(int unit, boolean mips, String filename)
| 121 | @Override |
| 122 | public Texture.TextureSpecification loadTexture(int unit, boolean mips, String filename) { |
| 123 | |
| 124 | int[] d = dimensions(filename); |
| 125 | if (d == null) return null; |
| 126 | |
| 127 | ByteBuffer b = ByteBuffer.allocateDirect(3 * d[0] * d[1]); |
| 128 | decompress(filename, b, d[0], d[1]); |
| 129 | b.rewind(); |
| 130 | |
| 131 | return Texture.TextureSpecification.byte3(unit, d[0], d[1], b, mips); |
| 132 | } |
| 133 | |
| 134 | } |
nothing calls this directly
no test coverage detected