Texture: ctx: GfxCtxsrc: null | ImageSourceglTex: WebGLTexturewidth: numberheight: numberfromImage(ctx: GfxCtx, img: ImageSource, opt?: TextureOpt): Textureupdate(img: ImageSource, x?: number, y?: number): voidbind(): voidunbind(): voidfree(): voidFrees up texture memory. Call this once the texture is no longer being used to avoid memory leaks.
free(): voidFrees up texture memory. Call this once the texture is no longer being used to avoid memory leaks.