Expose texture atlas as API and use in demo

Part of #2623
This commit is contained in:
Daniel Imms
2019-12-11 14:26:12 -08:00
parent 050d9ff04d
commit 31669cbad6
5 changed files with 22 additions and 4 deletions
@@ -100,6 +100,10 @@ export class WebglRenderer extends Disposable implements IRenderer {
super.dispose();
}
public get textureAtlas(): HTMLCanvasElement | undefined {
return this._charAtlas?.cacheCanvas;
}
public setColors(colors: IColorSet): void {
this._colors = colors;
// Clear layers and force a full render