setSize method

void setSize(
  1. double width,
  2. double height, [
  3. bool updateStyle = false
])

Implementation

void setSize(double width, double height, [bool updateStyle = false]) {
  // if ( xr.isPresenting ) {

  // 	print( 'three.WebGLRenderer: Can\'t change size while VR device is presenting.' );
  // 	return;

  // }

  _width = width;
  _height = height;

  // print(" WebGLRenderer setSize ......... ");

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

  // if ( updateStyle != false ) {

  // 	_canvas.style.width = width + 'px';
  // 	_canvas.style.height = height + 'px';

  // }

  setViewport(0, 0, width, height);
}