Merge pull request #2626 from Tyriar/2634_texture_atlas

Expose texture atlas as API and use in demo
This commit is contained in:
Daniel Imms
2019-12-12 09:45:19 +11:00
committed by GitHub
5 changed files with 22 additions and 4 deletions
@@ -86,9 +86,6 @@ export class WebglCharAtlas implements IDisposable {
this._tmpCanvas.width = this._config.scaledCharWidth * 2 + TMP_CANVAS_GLYPH_PADDING * 2;
this._tmpCanvas.height = this._config.scaledCharHeight + TMP_CANVAS_GLYPH_PADDING * 2;
this._tmpCtx = throwIfFalsy(this._tmpCanvas.getContext('2d', {alpha: this._config.allowTransparency}));
// This is useful for debugging
document.body.appendChild(this.cacheCanvas);
}
public dispose(): void {