textmode.js / media / TextmodeSource / dispose
Method: dispose()
ts
dispose(): void;Dispose of the resource and free associated WebGL textures.
This should be called when the resource is no longer needed to prevent memory leaks. Resources created via Textmodifier.loadImage, Textmodifier.loadVideo, and Textmodifier.createTexture are automatically disposed when the Textmodifier instance is destroyed, but you can call this manually to free memory earlier.
Returns
void
Example
Overrides
ts
Disposable.dispose