/**
* Initializes the graphics system.
*
* @static
* @method initialize
* @param {Number} width The width of the game screen
* @param {Number} height The height of the game screen
* @param {String} type The type of the renderer.
* 'canvas', 'webgl', or 'auto'.
*/
Graphics.initialize = function(width, height, type) {
this._width = width || this.defaultWidth;
this._height = height || this.defaultHeight;
this._rendererType = type || 'auto';
this._boxWidth = this._width;
this._boxHeight = this._height;
this._scale = 1;
this._realScale = 1;
this._errorPrinter = null;
this._canvas = null;
this._video = null;
this._upperCanvas = null;
this._renderer = null;
this._fpsMeter = null;
this._modeBox = null;
this._skipCount = 0;
this._maxSkip = 3;
this._rendered = false;
this._loadingImage = null;
this._loadingCount = 0;
this._fpsMeterToggled = false;
this._stretchEnabled = this._defaultStretchMode();
this._canUseDifferenceBlend = false;
this._canUseSaturationBlend = false;
this._hiddenCanvas = null;
this._testCanvasBlendModes();
this._modifyExistingElements();
this._updateRealScale();
this._createAllElements();
this._disableTextSelection();
this._disableContextMenu();
this._setupEventHandlers();
};
Graphics.defaultWidth = function() {
return $dataSystem.screenResolutionWidth;
};
Graphics.defaultHeight = function() {
return $dataSystem.screenResolutionHeight;
};