(program, flipY = 1.0)
| 214 | } |
| 215 | |
| 216 | _useProgram(program, flipY = 1.0) { |
| 217 | const gl = this.gl; |
| 218 | gl.useProgram(program); |
| 219 | |
| 220 | gl.bindBuffer(gl.ARRAY_BUFFER, this.quadBuffer); |
| 221 | gl.enableVertexAttribArray(program.attributes.position); |
| 222 | gl.vertexAttribPointer(program.attributes.position, 2, gl.FLOAT, false, 0, 0); |
| 223 | |
| 224 | gl.bindBuffer(gl.ARRAY_BUFFER, this.texCoordBuffer); |
| 225 | gl.enableVertexAttribArray(program.attributes.texCoord); |
| 226 | gl.vertexAttribPointer(program.attributes.texCoord, 2, gl.FLOAT, false, 0, 0); |
| 227 | |
| 228 | if (program.uniforms.u_flipY !== undefined) { |
| 229 | gl.uniform1f(program.uniforms.u_flipY, flipY); |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | _blendModeToInt(mode) { |
| 234 | switch (mode) { |
no outgoing calls
no test coverage detected