setSize method
dynamic
setSize(
- dynamic width,
- dynamic height, [
- 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();
}