Class Texture: ctx: GfxCtx src: null | ImageSource glTex: WebGLTexture width: number height: number static fromImage(ctx: GfxCtx, img: ImageSource, opt?: TextureOpt) => Texture update(img: ImageSource, x?: number, y?: number) => void bind() => void unbind() => void free() => void Frees up texture memory. Call this once the texture is no longer being used to avoid memory leaks.