setSize method

dynamic setSize(
  1. dynamic width,
  2. dynamic height, [
  3. dynamic updateStyle = true
])

Implementation

setSize(width, height, [updateStyle = true]) {
  this._width = width;
  this._height = height;

  // this.domElement.width = Math.floor( width * this._pixelRatio );
  // this.domElement.height = Math.floor( height * this._pixelRatio );

  if (updateStyle == true) {
    // this.domElement.style.width = width + 'px';
    // this.domElement.style.height = height + 'px';

  }

  this._configureContext();
  this._setupColorBuffer();
  this._setupDepthBuffer();
}