({ texture, glFormat, glDataType }, source)
| 1200 | } |
| 1201 | |
| 1202 | uploadTextureFromSource({ texture, glFormat, glDataType }, source) { |
| 1203 | const gl = this.GL; |
| 1204 | gl.texImage2D(gl.TEXTURE_2D, 0, glFormat, glFormat, glDataType, source); |
| 1205 | } |
| 1206 | |
| 1207 | uploadTextureFromData({ texture, glFormat, glDataType }, data, width, height) { |
| 1208 | const gl = this.GL; |