MCPcopy Index your code
hub / github.com/processing/p5.js / uploadTextureFromSource

Method uploadTextureFromSource

src/webgl/p5.RendererGL.js:1202–1205  ·  view source on GitHub ↗
({ texture, glFormat, glDataType }, source)

Source from the content-addressed store, hash-verified

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;

Callers 2

initMethod · 0.45
updateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected