MCPcopy
hub / github.com/processing/p5.js / bindTexture

Method bindTexture

src/webgl/p5.RendererGL.js:1165–1169  ·  view source on GitHub ↗
(tex)

Source from the content-addressed store, hash-verified

1163 }
1164
1165 bindTexture(tex) {
1166 // bind texture using gl context + glTarget and
1167 // generated gl texture object
1168 this.GL.bindTexture(this.GL.TEXTURE_2D, tex.getTexture().texture);
1169 }
1170
1171 unbindTexture() {
1172 // unbind per above, disable texturing on glTarget

Callers 8

_updateTextureMethod · 0.45
unbindTextureMethod · 0.45
createTextureMethod · 0.45
bindTextureToShaderMethod · 0.45

Calls 1

getTextureMethod · 0.45

Tested by

no test coverage detected