function Renderer(options) {
        var _this = _super.call(this, _pixi_constants__WEBPACK_IMPORTED_MODULE_1__.RENDERER_TYPE.WEBGL, options) || this;
        // the options will have been modified here in the super constructor with pixi's default settings..
        options = _this.options;
        _this.gl = null;
        _this.CONTEXT_UID = 0;
        _this.runners = {
            destroy: new _pixi_runner__WEBPACK_IMPORTED_MODULE_4__.Runner('destroy'),
            contextChange: new _pixi_runner__WEBPACK_IMPORTED_MODULE_4__.Runner('contextChange'),
            reset: new _pixi_runner__WEBPACK_IMPORTED_MODULE_4__.Runner('reset'),
            update: new _pixi_runner__WEBPACK_IMPORTED_MODULE_4__.Runner('update'),
            postrender: new _pixi_runner__WEBPACK_IMPORTED_MODULE_4__.Runner('postrender'),
            prerender: new _pixi_runner__WEBPACK_IMPORTED_MODULE_4__.Runner('prerender'),
            resize: new _pixi_runner__WEBPACK_IMPORTED_MODULE_4__.Runner('resize'),
        };
        _this.runners.contextChange.add(_this);
        _this.globalUniforms = new UniformGroup({
            projectionMatrix: new _pixi_math__WEBPACK_IMPORTED_MODULE_6__.Matrix(),
        }, true);
        _this.addSystem(MaskSystem, 'mask')
            .addSystem(ContextSystem, 'context')
            .addSystem(StateSystem, 'state')
            .addSystem(ShaderSystem, 'shader')
            .addSystem(TextureSystem, 'texture')
            .addSystem(BufferSystem, 'buffer')
            .addSystem(GeometrySystem, 'geometry')
            .addSystem(FramebufferSystem, 'framebuffer')
            .addSystem(ScissorSystem, 'scissor')
            .addSystem(StencilSystem, 'stencil')
            .addSystem(ProjectionSystem, 'projection')
            .addSystem(TextureGCSystem, 'textureGC')
            .addSystem(FilterSystem, 'filter')
            .addSystem(RenderTextureSystem, 'renderTexture')
            .addSystem(BatchSystem, 'batch');
        _this.initPlugins(Renderer.__plugins);
        _this.multisample = undefined;
        /*
         * The options passed in to create a new WebGL context.
         */
        if (options.context) {
            _this.context.initFromContext(options.context);
        }
        else {
            _this.context.initFromOptions({
                alpha: !!_this.useContextAlpha,
                antialias: options.antialias,
                premultipliedAlpha: _this.useContextAlpha && _this.useContextAlpha !== 'notMultiplied',
                stencil: true,
                preserveDrawingBuffer: options.preserveDrawingBuffer,
                powerPreference: _this.options.powerPreference,
            });
        }
        _this.renderingToScreen = true;
        (0,_pixi_utils__WEBPACK_IMPORTED_MODULE_2__.sayHello)(_this.context.webGLVersion === 2 ? 'WebGL 2' : 'WebGL 1');
        _this.resize(_this.options.width, _this.options.height);
        return _this;
    }
@param [options] - The optional renderer parameters.
@param {number} [options.width=800] - The width of the screen.
@param {number} [options.height=600] - The height of the screen.
@param {HTMLCanvasElement} [options.view] - The canvas to use as a view, optional.
@param {boolean} [options.useContextAlpha=true] - Pass-through value for canvas' context `alpha` property.
  If you want to set transparency, please use `backgroundAlpha`. This option is for cases where the
  canvas needs to be opaque, possibly for performance reasons on some older devices.
@param {boolean} [options.autoDensity=false] - Resizes renderer view in CSS pixels to allow for
  resolutions other than 1.
@param {boolean} [options.antialias=false] - Sets antialias. If not available natively then FXAA
 antialiasing is used.
@param {number} [options.resolution=PIXI.settings.RESOLUTION] - The resolution / device pixel ratio of the renderer.
@param {boolean} [options.clearBeforeRender=true] - This sets if the renderer will clear
 the canvas or not before the new render pass. If you wish to set this to false, you *must* set
 preserveDrawingBuffer to `true`.
@param {boolean} [options.preserveDrawingBuffer=false] - Enables drawing buffer preservation,
 enable this if you need to call toDataUrl on the WebGL context.
@param {number} [options.backgroundColor=0x000000] - The background color of the rendered area
 (shown if not transparent).
@param {number} [options.backgroundAlpha=1] - Value from 0 (fully transparent) to 1 (fully opaque).
@param {string} [options.powerPreference] - Parameter passed to WebGL context, set to "high-performance"
 for devices with dual graphics card.
@param {object} [options.context] - If WebGL context already exists, all parameters must be taken from it.