(gl, source, i)
| 4822 | } |
| 4823 | |
| 4824 | function createTexture(gl, source, i) { |
| 4825 | var texture = gl.createTexture(); |
| 4826 | activeTexture(gl, i); |
| 4827 | gl.bindTexture(gl.TEXTURE_2D, texture); |
| 4828 | |
| 4829 | // Set the parameters so we can render any size image. |
| 4830 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); |
| 4831 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); |
| 4832 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); |
| 4833 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); |
| 4834 | |
| 4835 | updateTexture(gl, source); |
| 4836 | |
| 4837 | return texture; |
| 4838 | } |
| 4839 | |
| 4840 | function createUniform(gl, program, type, name) { |
| 4841 | var location = gl.getUniformLocation(program, "u_" + name); |
nothing calls this directly
no test coverage detected