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

Method uploadTextureFromData

src/webgl/p5.RendererGL.js:1207–1220  ·  view source on GitHub ↗
({ texture, glFormat, glDataType }, data, width, height)

Source from the content-addressed store, hash-verified

1205 }
1206
1207 uploadTextureFromData({ texture, glFormat, glDataType }, data, width, height) {
1208 const gl = this.GL;
1209 gl.texImage2D(
1210 gl.TEXTURE_2D,
1211 0,
1212 glFormat,
1213 width,
1214 height,
1215 0,
1216 glFormat,
1217 glDataType,
1218 data
1219 );
1220 }
1221
1222 getSampler(_texture) {
1223 return undefined;

Callers 1

initMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected