setDrawingBufferSize method

void setDrawingBufferSize(
  1. double width,
  2. double height,
  3. double pixelRatio
)

Implementation

void setDrawingBufferSize(double width, double height, double pixelRatio) {
  _width = width;
  _height = height;

  _pixelRatio = pixelRatio;

  print(" WebGLRenderer setDrawingBufferSize ");

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

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