Add API to clear canvas renderer texture atlas

Fixes #3455
This commit is contained in:
Daniel Imms
2021-09-22 06:38:47 -07:00
parent be7fcbe485
commit 189ff56224
12 changed files with 56 additions and 0 deletions
+6
View File
@@ -149,6 +149,12 @@ export class Renderer extends Disposable implements IRenderer {
}
}
public clearTextureAtlas(): void {
for (const layer of this._renderLayers) {
layer.clearTextureAtlas();
}
}
/**
* Recalculates the character and canvas dimensions.
*/