MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / updateVideoFrame

Method updateVideoFrame

src/tools/texture-lab/renderer.js:281–286  ·  view source on GitHub ↗
(video)

Source from the content-addressed store, hash-verified

279 }
280
281 updateVideoFrame(video) {
282 if (!this.textures.source || !video) return;
283 const gl = this.gl;
284 gl.bindTexture(gl.TEXTURE_2D, this.textures.source);
285 gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, video);
286 }
287
288 setOverlayTexture(image) {
289 if (this.textures.overlay) {

Callers 2

TextureLabFunction · 0.80
renderLoopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected