MCPcopy Create free account
hub / github.com/gre/gl-react / constructor

Method constructor

packages/tests/utils.js:389–392  ·  view source on GitHub ↗
(gl: WebGLRenderingContext)

Source from the content-addressed store, hash-verified

387class FakeTextureLoader extends WebGLTextureLoader<FakeTexture> {
388 textures: Array<WebGLTexture>;
389 constructor(gl: WebGLRenderingContext) {
390 super(gl);
391 this.textures = [];
392 }
393 dispose() {
394 const { gl } = this;
395 this.textures.forEach(t => gl.deleteTexture(t));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected