(gl, source, i)
| 12611 | } |
| 12612 | |
| 12613 | function createTexture(gl, source, i) { |
| 12614 | var texture = gl.createTexture(); |
| 12615 | activeTexture(gl, i); |
| 12616 | gl.bindTexture(gl.TEXTURE_2D, texture); |
| 12617 | |
| 12618 | // Set the parameters so we can render any size image. |
| 12619 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE); |
| 12620 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE); |
| 12621 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); |
| 12622 | gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR); |
| 12623 | |
| 12624 | updateTexture(gl, source); |
| 12625 | |
| 12626 | return texture; |
| 12627 | } |
| 12628 | |
| 12629 | function createUniform(gl, program, type, name) { |
| 12630 | var location = gl.getUniformLocation(program, "u_" + name); |
nothing calls this directly
no test coverage detected