"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var WebglRenderer_1 = require("./WebglRenderer"); var WebglAddon = (function () { function WebglAddon(_preserveDrawingBuffer) { this._preserveDrawingBuffer = _preserveDrawingBuffer; } WebglAddon.prototype.activate = function (terminal) { if (!terminal.element) { throw new Error('Cannot activate WebglRendererAddon before Terminal.open'); } var renderService = terminal._core._renderService; var colors = terminal._core._colorManager.colors; renderService.setRenderer(new WebglRenderer_1.WebglRenderer(terminal, colors, this._preserveDrawingBuffer)); }; WebglAddon.prototype.dispose = function () { throw new Error('WebglRendererAddon.dispose Not yet implemented'); }; return WebglAddon; }()); exports.WebglAddon = WebglAddon; //# sourceMappingURL=WebglAddon.js.map