(gl, source, i)
| 4756 | } |
| 4757 | |
| 4758 | function createTexture(gl, source, i) { |
| 4759 | var texture = gl.createTexture(); |
| 4760 | activeTexture(gl, i); |
| 4761 | gl.bindTexture(gl.TEXTURE_2D, texture); |
| 4762 | |
| 4763 | // Set the parameters so we can render any size image. |
| 4764 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); |
| 4765 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); |
| 4766 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); |
| 4767 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); |
| 4768 | |
| 4769 | updateTexture(gl, source); |
| 4770 | |
| 4771 | return texture; |
| 4772 | } |
| 4773 | |
| 4774 | function createUniform(gl, program, type, name) { |
| 4775 | var location = gl.getUniformLocation(program, "u_" + name); |
nothing calls this directly
no test coverage detected