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