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

Method setOverlayTexture

src/tools/texture-lab/renderer.js:288–297  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

286 }
287
288 setOverlayTexture(image) {
289 if (this.textures.overlay) {
290 this.gl.deleteTexture(this.textures.overlay);
291 }
292 if (image) {
293 this.textures.overlay = this._createTexture(image);
294 } else {
295 this.textures.overlay = null;
296 }
297 }
298
299 _updateCharacterAtlas(charset) {
300 if (this.currentCharset === charset) return;

Callers

nothing calls this directly

Calls 1

_createTextureMethod · 0.95

Tested by

no test coverage detected